On (2014-05-05 18:41 +0300), Martin T wrote: > poll the ifInOctets and ifInUcastPkts counters for ge-0/0/3(SNMP > IfIndex 723) over SNMP: > > $ for i in 0 1; do snmpget -Oq -v 2c -c public 10.10.10.254 > 1.3.6.1.2.1.2.2.1.1"$i".723; done > IF-MIB::ifInOctets.723 498087262 > IF-MIB::ifInUcastPkts.723 452255345 > $ > > ..it appears that VLAN sub-interfaces counters are not included. Is it > possible to request GigE and all its VLAN sub-interfaces counters over > SNMP with single SNMP GetRequest query? Or is the only option to poll > all the sub-interfaces and add the counter values together when using > SNMP?
The counters are not updated instantly, there is lag, about 5s or so. On some platform might be 30s. If you are polling IFD (as opposed to IFL) the IFD counters should include aggregate count from all the IFLs. I would also recommend polling 64b (H) versions of the counters, i.e. IF-MIB::ifHInOctets.723 IF-MIB::ifHInUcastPkts.723 -- ++ytti _______________________________________________ juniper-nsp mailing list [email protected] https://puck.nether.net/mailman/listinfo/juniper-nsp

