03-14-2007 02:47 PM - edited 03-05-2019 02:55 PM
Could someone advise me how to get the output of the "show int xxx stat" command via SNMP?
This is for a Cat3750 switch where I would like to get information about the number of process switched and CEF switched packets for SVI ifaces.
Thanks,
Mirek
03-15-2007 03:54 AM
You can use this tool to find any SNMP counters you want
http://tools.cisco.com/Support/SNMP/do/SearchOID.do?local=en&step=1
03-15-2007 04:52 AM
I know this tool. The problem is that I do not know the SNMP object name. I searched through trying possible names, however, I did not succeed.
03-15-2007 08:08 PM
Actually, there is "include object descriptions in search" check box, which let you search through description either, not only SNMP object name. (mentioned just in case you didn't notice it)
E.g. search pattern is
cseL3SwitchedTotalOctets
Number of octets in the total packets switched at Layer 3 by this
switching engine
03-16-2007 01:49 AM
Hi,
if you know exactly the counter-value of the variable you're looking for you could combine net-snmp with grep.
Example:
Core001#show interface fa13/11 stat
FastEthernet13/11
Switching path Pkts In Chars In Pkts Out Chars Out
Processor 0 0 134732 64265937
Searching in enterprises.Cisco for a variable with value 134732 (of cause it works only if the counter doesn't increase too fast):
snmpwalk -v2c -c MyComunity Core001 .1.3.6.1.4.1.9 | grep 134732
enterprises.9.2.2.1.1.30.54 = Counter32: 134732
enterprises.9.2.2.1.1.30.55 = Counter32: 134732
enterprises.9.2.2.1.1.30.56 = Counter32: 134732
enterprises.9.2.2.1.1.31.191 = Counter32: 134732
03-16-2007 02:14 AM
Be aware of such a problem...
Cisco for some MIB branches requires funny syntax.
e.g.
snmpget -c zsc123@17 10.7.0.2 dot1dTpFdbPor
17 - is Vlan number.
It's impossible to get full dot1dTpFdbPor branch for all vlans using one snmp request. If you have 10 VLANs you have to make 10 request with different community values after @ sign.
The request without @VLAN_NUMBER in community
snmpwalk -c zsc123 10.7.0.2 dot1dTpFdbPor
returns results for VLAN1 only
TO CISCO SYSTEMS:
WHY THERES NO INFO ABOUT THAT IN SNMP MIB BROWSER TOOL ?????!!!!!
03-16-2007 02:28 AM
@deniska2006: Right, I forgot mentioning this funny behavior/syntax. As far as I know it's only relevant for Bridge-MIBs. The variable searched by mzik doesn't sound like being stored in Brigde-MIB.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide