Snmp infromation ASR9K subinterfaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2011 02:56 AM
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
- Labels:
-
XR OS and Platforms
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2011 06:24 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2011 03:03 AM
I cannot find the X id for the subinterfaces. Only the physical interfaces are listed, hence the problem.
/Andreas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2011 02:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2011 02:22 AM
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
