Lee:
My s/w release does not support the use of the "show snmp mib ifmib ifindex"
command.
I did implement this functionality in my Perl script in two steps: I'll did
an snmp bulk-request which is surprisingly efficient, seemingly much more
than my SNMP browser which probably just issues get-next, parsed that result
to find the correct object number, and then followed it up with a query on
the relevant IDs.
What I found disconcerting is that Cisco's use of the discontinuityCounter
seems to update all the entries when any one interface goes over the top,
rather than updating just that one interface. When I checked the counter
values they were all just three hours old. Now it's impossible for me to
know how long a virtual interface has been collecting traffic stats, and
'clear int Vi' and 'clear counters interface Vi' doesn't let me
reset those 64-bit counters, either. So for a one-time snapshot this
counter is not very helpful except to know that *some* traffic has gone over
that interface.
Frank
Message
From: lee.e.rian (AT) census (DOT) gov [mailto:lee.e.rian (AT) census (DOT) gov]
Sent: Monday, July 03, 2006 8:49 PM
To: frnkblk (AT) iname (DOT) com
Cc: cisco-nsp (AT) puck (DOT) nether.net; cisco-nsp-bounces (AT) puck (DOT) nether.net
Subject: Re: [c-nsp] Querying the 64-bit counters of a Virtual-Access
interface on a Cisco 7206VXR performing as a BRAS for.
Hi Frank,
frnkblk (AT) iname (DOT) com wrote on 07/03/2006 04:49:56 PM:
<snip>
of the problem with this method is that I can't go from a Vi to
the
specific object number. For example, Vi85 is SNMP ifXEntry value 110.
Two
related questions:
a) Is there a way from the CLI, as is possible in the Motorola BSR64k, to
identify the object number for a certain Virtual-Access interface?
"show snmp mib ifmib ifindex" along with "| include" - eg.
c7200#sh snmp mib ifmib ifindex | inc GigabitEthernet0/1
GigabitEthernet0/1: Ifindex = 1
c7200#sh snmp mib ifmib ifindex
Loopback0: Ifindex = 6
Null0: Ifindex = 5
FastEthernet2/0: Ifindex = 4
GigabitEthernet0/1: Ifindex = 1
GigabitEthernet0/2: Ifindex = 2
GigabitEthernet0/3: Ifindex = 3
FastEthernet2/0.501-ISL vLAN subif: Ifindex = 7
FastEthernet2/0.502-ISL vLAN subif: Ifindex = 8
FastEthernet2/0.526-ISL vLAN subif: Ifindex = 9
FastEthernet2/0.546-ISL vLAN subif: Ifindex = 10
c7200#
b) Is there any way from the CLI to obtain these 64-bit values?
Not that I know of.
Lee
cisco-nsp mailing list cisco-nsp (AT) puck (DOT) nether.net
archive at