Thanks, Kings, Your reply only partially answers my question. My point was whether IOS should show ifEntry in its MIBs in the first place or it's one of those numerous inconsistencies with Cisco docs. Their SNMP guide shows that this OID is available in the output of "show snmp mib"
http://www.cisco.com/en/US/docs/ios-xml/ios/snmp/configuration/12-4t/nm-snmp-cfg-snmp-support.html#GUID-63FAF526-B969-4EC2-9894-58D24772B2FA Find it somewhere below "Configuring Interface Index Display and Interface Indexes and Long Name Support" I tried it on three different routers, i.e. 1841 (12.4.15T), 2811 (12.4.22T) and 2911 (15.x) and it still doesn't show as a known OID. Then again, looking at the output of "show snmp mib" on the same page we see numbers after ifEntry. I assume those are interface indexes and it is still unclear how ifEntry.*.1 is formed as per my original email. Is there any other source in Cisco docs where it could be quickly accessed? Router# show snmp mib system.1 system.2 sysUpTime system.4 system.5 system.6 system.7 system.8 sysOREntry.2 sysOREntry.3 sysOREntry.4 interfaces.1 ifEntry.1 ifEntry.2 ifEntry.3 ifEntry.4 ifEntry.5 ifEntry.6 ifEntry.7 ifEntry.8 ifEntry.9 ifEntry.10 ifEntry.11 Eugene From: Kingsley Charles [mailto:[email protected]] Sent: Friday, June 29, 2012 9:09 PM To: Eugene Pefti Subject: Re: [OSL | CCIE_Security] SNMP OID revisited First get the SNMP MIB index number using "sh snmp mib ifmib ifindex" Then issue the following, so that the index number doesn't change across reloads. snmp-server ifindex persist The following gives access to all interface parameters of interface 1 ifEntry.*.1 The following gives access to physical address of all interfaces ifEntry.6.* The following gives access to physical address of interface 1 ifEntry.6.1 With regards Kings On Fri, Jun 29, 2012 at 11:56 PM, Eugene Pefti <[email protected]<mailto:[email protected]>> wrote: Guys, I'm trying to arrange and classify my knowledge on SNMP details and one of the challenges is again MIB OIDs. It's mostly about the OID to be included/excluded in the SNMP view. It has been said here ear lier that ifEntry is one of the most important and we have to know how to define it. Now, when the task explicitly says to use ISO subtree or something else it is straightforward. But if it is about collecting information from a specific interface I start scratching my head trying to remember the right syntax and build good mnemonics rules. I'm asking the router to show me all MIB OID starting with "if" and I don't see "ifEntry" in the output. Moreover, I don't even see ifTable if taking this OID browser as a reference: http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?objectInput=ifEntry&translate=Translate&submitValue=SUBMIT&submitClicked=true R4(config)#do sh snmp mib | inc if ifNumber ifIndex ifDescr ifType ifMtu ifSpeed ifPhysAddress ifAdminStatus ifOperStatus ifLastChange ifInOctets ifInUcastPkts ifInNUcastPkts ifInDiscards ifInErrors ifInUnknownProtos ifOutOctets ifOutUcastPkts ifOutNUcastPkts ifOutDiscards ifOutErrors ifOutQLen ifSpecific It's counter-intuitive, ifNumber and ifIndex are known to the router based on the output but it still excepts ifEntry as an OID. Secondly, what's the rule to define the specific interface, e.g. ifEntry.*.4 if 4 is the interface index? Why inserting * if ifIndex is right below ifEntry (see the above mentioned OID browser page) ? Eugene _______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com<http://www.ipexpert.com> Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com<http://www.PlatinumPlacement.com>
_______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com Are you a CCNP or CCIE and looking for a job? Check out www.PlatinumPlacement.com
