I think I know why ifEntry doesn't show (at least in my outputs).
The permission for this OID is "not-accessible" whereas other OID like ifIndex 
or ifNumber are "read-only" in the OID hierarchy.
And still the use of the asterisk in the " ifEntry.*.4" stays unclear. We know 
that "ifEntry.1" is the way to refer to the index of the interface in question. 
Then if we want to walk through all other OID below ifEntry we would indeed say 
"ifEntry.*".  I may not be very eloquent asking my question here. I initially 
asked why we have number 4 which stands for interface index after the DOT (.) ?

You say "ifEntry.1 is ifindex". Let's assume that 1 is ifIndex of Fa0/0 
interface. Then all metrics below ifEntry for this interface should be 
accessible via ifEntry.1.* (see the position of the asterisk ?)
So if I'm an idiot and don't see the obvious that others see than those who 
understand it please tell me what I'm missing ;)

From: Kingsley Charles 
<[email protected]<mailto:[email protected]>>
Date: Saturday, June 30, 2012 9:57 PM
To: Eugene Pefti <[email protected]<mailto:[email protected]>>
Cc: ccie security 
<[email protected]<mailto:[email protected]>>
Subject: Re: [OSL | CCIE_Security] SNMP OID revisited

From

http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en

ifEntry.1 is ifindex
ifEntry.2 is ifDescr 
(2)<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.2#oidContent>

Not sure, if it should show for each interfaces. That would be a blg list.


Object Information

        Specific Object Information
Object  ifEntry
OID     1.3.6.1.2.1.2.2.1
Type    IfEntry 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&typeName=IfEntry>

Permission      not-accessible
Status  current
Index   ifIndex 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=ifIndex>

MIB     IF-MIB 
<http://tools.cisco.com/Support/SNMP/do/BrowseMIB.do?local=en&step=2&mibName=IF-MIB>
 ;   -   View Supporting Images [this link will generate a new window]
Description     "An entry containing management information applicable to a
particular interface."









OID Tree

You are currently viewing your object with levels of hierarchy above your 
object.
. iso (1) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1>
 . org (3) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3>
 . dod (6) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6>
 . internet (1) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1>
 . mgmt (2) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2>
 . mib-2 (1) 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1>
   |
    - 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1#oidContent>
 -- interfaces (2)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2#oidContent>
      |
      | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifNumber (1)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.1#oidContent>
      |
       - 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2#oidContent>
 -- ifTable (2)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2#oidContent>
         |
          - 
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2#oidContent>
 --ifEntry (1) object Details
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=ifEntry#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifIndex (1)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.1#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifDescr (2)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.2#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifType (3)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.3#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifMtu (4)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.4#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifSpeed (5)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.5#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifPhysAddress (6)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.6#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifAdminStatus (7)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.7#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOperStatus (8)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.8#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifLastChange (9)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.9#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInOctets (10)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.10#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInUcastPkts (11)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.11#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInNUcastPkts (12)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.12#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInDiscards (13)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.13#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInErrors (14)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.14#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifInUnknownProtos (15)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.15#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutOctets (16)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.16#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutUcastPkts (17)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.17#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutNUcastPkts (18)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.18#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutDiscards (19)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.19#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutErrors (20)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.20#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifOutQLen (21)
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.21#oidContent>
            |
            | --   
<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=#oidContent>
 ifSpecific 
(22)<http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en&translate=Translate&objectInput=1.3.6.1.2.1.2.2.1.22#oidContent>


With regards
Kings

On Sat, Jun 30, 2012 at 11:00 PM, Eugene Pefti 
<[email protected]<mailto:[email protected]>> wrote:
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]<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

Reply via email to