[j-nsp] poll physical GigE and all its VLAN sub-interfaces counters over SNMP with single SNMP GetRequest query

Martin T m4rtntns at gmail.com
Mon May 5 11:41:59 EDT 2014


Hi,

I have a GigE port with flexible-ethernet-services encapsulation and
bunch of VLAN sub-interfaces. I would like to poll this GigE interface
for troubleshooting purposes at certain times with 1s interval over
SNMP in order to understand traffic usage(both bps and pps) on this
interface. In "show interfaces ge-0/0/3 detail" output under "Traffic
statistics" section there are I/O byte and packet counters which
include all the sub-interfaces under the physical interface. Now if I
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?


regards,
Martin


More information about the juniper-nsp mailing list