openwrt extended stats on switch0
I”ve got openwrt router netgear WNDR4300v1.
it contains switch. switch is controled by swconfig command :
root@my-home-wrt:~# swconfig list
Found: switch0 - ag71xx-mdio.0
default config of that switch doesn’t show any stats :
root@my-home-wrt:~# swconfig dev switch0 port 1 get mib
Failed to get attribute: Operation not supported
to enable stats on that switch you have to use command :
swconfig dev switch0 get ar8xxx_mib_poll_interval
swconfig dev switch0 set ar8xxx_mib_poll_interval 300
or to make this permanent change between reboots – use UCI:
uci set network.@switch[0].ar8xxx_mib_poll_interval='300'
uci set network.@switch[0].ar8xxx_mib_type='1'
now stats per port looks like this :
root@my-home-wrt:~# swconfig dev switch0 port 1 get mib
MIB counters
RxBroad : 779875
RxPause : 7771
RxMulti : 504114
RxFcsErr : 0
RxAlignErr : 0
RxRunt : 0
RxFragment : 0
Rx64Byte : 31376455
Rx128Byte : 71930802
Rx256Byte : 16088904
Rx512Byte : 1562670
Rx1024Byte : 998867
Rx1518Byte : 190126272
RxMaxByte : 0
RxTooLong : 0
RxGoodByte : 298938600957 (278.4 GiB)
RxBadByte : 497344
RxOverFlow : 0
Filtered : 6
TxBroad : 600681
TxPause : 953
TxMulti : 1282565
TxUnderRun : 0
Tx64Byte : 10658772
Tx128Byte : 54503715
Tx256Byte : 22269258
Tx512Byte : 4973296
Tx1024Byte : 4133447
Tx1518Byte : 324100239
TxMaxByte : 0
TxOverSize : 0
TxByte : 500203601610 (465.8 GiB)
TxCollision : 0
TxAbortCol : 0
TxMultiCol : 0
TxSingleCol : 0
TxExcDefer : 0
TxDefer : 0
TxLateCol : 0
now I’ve to pass this stats to librenms 🙂
stare forum / old forum ( /board3 )
ehlo.a.
stare wersje forum (/board3) w zwiazku z aktualizacja php przestalo dzialac. wiec zostalo usuniete.
old forum ( /board3 ) due to upgrade of php on server was not comatibile so I’ve removed it.
BR/pozd.r
maxilee
odtwarzanie pliku avi video – MPEG4, dzwiek – MP3… Czyli typowy divx.
top - 17:46:57 up 1:12, 1 user, load average: 0.21, 0.51, 0.47
Tasks: 63 total, 2 running, 61 sleeping, 0 stopped, 0 zombie
Cpu(s): 32.8%us, 17.7%sy, 8.5%ni, 30.6%id, 0.0%wa, 0.0%hi, 10.4%si, 0.0%st
Mem: 125900k total, 114968k used, 10932k free, 2800k buffers
Swap: 125948k total, 1536k used, 124412k free, 49656k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
965 pi 20 0 371m 57m 17m R 64.3 46.7 18:40.94 xbmc.bin
25 root 0 -20 0 0 0 S 3.1 0.0 1:34.08 VCHIQ-0
Ehlo.a.
nareszcie malinka dotarla do mnie.
Od wczoraj juz dwa systemy przetestowalem.
raspbian – jako pierwszy wylecial po 30 minutach 🙂 bo nie potrafil odtworzyc filmu na youtube.
drugi: raspbmc – z odpowiednim pluginem bez problemu FullHd wyciagnal.
ponizej zrzut z procesow na raspberry w momencie gdy lecial film.
top - 17:25:01 up 50 min, 1 user, load average: 0.10, 0.49, 0.57
Tasks: 63 total, 2 running, 61 sleeping, 0 stopped, 0 zombie
Cpu(s): 37.3%us, 13.8%sy, 10.3%ni, 36.4%id, 0.0%wa, 0.0%hi, 2.2%si, 0.0%st
Mem: 125900k total, 110736k used, 15164k free, 2236k buffers
Swap: 125948k total, 708k used, 125240k free, 44588k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
965 pi 20 0 367m 57m 17m R 61.1 46.9 4:47.78 xbmc.bin
25 root 0 -20 0 0 0 S 3.1 0.0 0:54.01 VCHIQ-0
1100 root 20 0 2608 1156 932 R 1.9 0.9 0:03.83 top
root@raspbmc:/var/log# uptime
17:27:38 up 53 min, 1 user, load average: 0.17, 0.37, 0.50
root@raspbmc:/var/log# free
total used free shared buffers cached
Mem: 125900 111828 14072 0 2148 42916
-/+ buffers/cache: 66764 59136
Swap: 125948 696 125252
New webpage – old forum is going read-only
hello.
I’ve decided to switch forum to read-only mode. From long time there was no new posts – only f**ed boots or spammers has created new topics. This forum will be moved to another subfolder on my server – so you will still have access to old data.
On url http://inbox.eu.org I’m planing to put my wordpress page.
thx all users for posting on my rtl8186 forum – maybe on new forum I’ll create subforum regarding this firmware 🙂
Old forum is accessible here
I’m not planing to migrate users to new wordpress engine – so if you want you have to reregister one more time.
Forum zostalo przelaczone w tryb tylko do oczytu.
Od jakiegos czasu nikt tu nie pisze – tylko spamerzy i niestety bot-y. Forum zostanie zdjete ze strony glownej i bedzie dostepne poprzez podkatalog strony glownej wiec bedzie dostep do danych archiwalnych.
W miejsce obecnej strony bedzie postawiona inna strona – poswiecona nie tylko tematyce rtl8186.
Stare forum jest dostepne tu
Dziekuje wszystkim uzytkownikow za aktywnosc na forum.
nie planuje migrowac uzytkownikow do nowego systemu WordPress – trzeba bedzie sie zarejstrowac ponownie
BR / z pozdroweniami.
—
maxilee – admin