Hi,
If you are asking how to know what is the ifIndex of an interface then:
R1#*sh snmp mib ifmib ifindex*
Serial1/0.14-mpls layer: Ifindex = 12
FastEthernet0/1: Ifindex = 2
Serial1/3: Ifindex = 6
Serial1/1: Ifindex = 4
VoIP-Null0: Ifindex = 7
Loopback0: Ifindex = 10
Null0: Ifindex = 9
Serial1/0.14: Ifindex = 11
SSLVPN-VIF0: Ifindex = 8
FastEthernet0/0: Ifindex = 1
Serial1/2: Ifindex = 5
Serial1/0: Ifindex = 3
Remember to add the following command:
R1(config)#snmp-server ifindex persist
HTH,
Dan #13685 (RS/Sec/SP)
Troubleshooting blog: http://dans-net.com
On Fri, Mar 19, 2010 at 1:06 AM, Muzammil Malick <malickmuz_at_gmail.com>wrote:
> Its ok I answered my own question.
>
> By using
>
> snmp-server enable traps
>
> for all traps and then
>
> debug snmp packet
>
> you are able to see traps for specific interfaces which have their own
> ifIndex which in turn will be restricted by assigning a view
> ,that is specific for an ifEntry, to a community.
>
>
>
> On 18 March 2010 21:29, Muzammil Malick <malickmuz_at_gmail.com> wrote:
>
> > Hi All
> >
> > I came across an excellent example of how an SNMP view can be restricted
> to
> > show info about a particular interface.
> > However I cant seem to find it again
> > e.g.
> >
> > snmp-server view ccie ifEntry.*.1 included
> >
> > where 1 would relate to an interface. This example explained that later
> on
> > by using
> >
> > snmp-server enable traps linkup linkdown
> >
> > the view would send traps only for the ifIndex assigned earlier. Can
> > someone point me to an example that shows and verifies this?
> >
> > Thanks
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
Blogs and organic groups at http://www.ccie.net
Received on Sat Mar 20 2010 - 13:58:35 ART
This archive was generated by hypermail 2.2.0 : Thu Apr 01 2010 - 07:26:35 ART