Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

show int stat via SNMP

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

6 REPLIES
New Member

Re: show int stat via SNMP

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

New Member

Re: show int stat via SNMP

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.

New Member

Re: show int stat via SNMP

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 I found such an object:

cseL3SwitchedTotalOctets

Number of octets in the total packets switched at Layer 3 by this

switching engine

New Member

Re: show int stat via SNMP

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

New Member

Re: show int stat via SNMP

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 ?????!!!!!

New Member

Re: show int stat via SNMP

@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.

186
Views
0
Helpful
6
Replies