cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Bookmark
|
Subscribe
|
2992
Views
0
Helpful
4
Replies

Snmp infromation ASR9K subinterfaces

Hi.

Is it possible to get in/out packets or octets via snmp from a subinterface in ASR9K ? I don't seem to find this in the mib, only the main interface.

Monitor interface * does not monitor subinterfaces either.

Anyone?

Regards

Andreas

4 Replies 4

simionov.adrian
Level 1
Level 1

you do not need the MIB, what you need is the OID.

Take the oid from the MIB, it will be one OID for in and one for out, and make a snmpwalk on this oid, in linux your command should be similar to:

snmpwalk -v 2c -c COMMUNITY IP OID

The answer from the device will be like:

OID.x

where X is the id of the interface. The reply from this walk will provide you a list of all oids from that box, one line for every interface. After you decide which one is the interesting interface, you can use snmpget exactly on that OID.

This is general stuff, and I did not tested this on ASR9K, but I do not think they have a different MIB, this device should work with default cisco MIBs.

I cannot find the X id for the subinterfaces. Only the physical interfaces are listed, hence the problem.

/Andreas

polling 1.3.6.1.2.1.2.2.1.2 should show you the OID for every subint:

snmpwalk -v 2c -c [community]  [router] 1.3.6.1.2.1.2.2.1.2 

(...)

IF-MIB::ifDescr.987 = STRING: GigabitEthernet0/0/0/3.119

IF-MIB::ifDescr.988 = STRING: GigabitEthernet0/0/0/3.120

IF-MIB::ifDescr.989 = STRING: GigabitEthernet0/0/0/3.121

IF-MIB::ifDescr.990 = STRING: GigabitEthernet0/0/0/3.122

IF-MIB::ifDescr.991 = STRING: GigabitEthernet0/0/0/3.123

IF-MIB::ifDescr.992 = STRING: GigabitEthernet0/0/0/3.124

Well, i finally got som response from TAC. The routers does not show oids for every sunbinterface. Only the ones that are routed, not l2transport subinterfaces. It is classified as a bug ID CSCtr88602.

Thanx