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

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

Collecting information from Cisco switchs using SNMP

Dear All,

I have a wide network with more than 250 sites connected using the DSL. the WAN devices are under the provider responsability and the LAN devices are directly in my responsability. In each site, I have :

  • 1 or 2 Cisco switchs (2960 or 3560), connecting via fibr.


  • Linksys switch connected via ethernet cable


  • cisco 877 router connected to switch
  • cisco 881G router conected to switch
  • pc and printers

In order to improve the availibilty of our network, we lauch every day a script from local pc to test connectivity of LAN equipements :

ping to switchs (Vlan 1), ping to ip fa0/0 cisco router1, ip cisco router2, ping to HSRP address (of two router). the resulting ini file will be inserted in a database and exported to excel for analysing.

I'm asking if someone can help in order to implement SNMP and let me know the name of cisco MIB to implement to :

- to have from SNMP information, the result of show cdp nei, show interface status, show ip int brief,...

- to have if wan router LAN interface are up,connected

-  others usefuls informations.

Thanks and regards,



Re: Collecting information from Cisco switchs using SNMP


a good source for SNMP variables is the SNMP Object Navigator from Cisco.

There you can search for useful OIDs for your devices.

Another way to have a view on the OIDs is to do a complete snmpwalk to a switch (maybe not on a productive device) and search for the informations you want.


New Member

Re: Collecting information from Cisco switchs using SNMP


Yes it's a good tool but i don't know OIDs names to use.

does somone know how and wha t is the basic configuration to make on cisco catalyst (2960 & 3560) and how to get information via SNMP :

- host name/ip VLAN

- interfaces status

- the result of show cdp neighbor, show ip int brief

- received alerts via email when there is errors : power, ....

Thanks for help.



Re: Collecting information from Cisco switchs using SNMP


the basic SNMP config for 2960 and 3560 is:

     snmp-server community <> RO

The configuration for SNMP traps to get alerts from the device if there is for example a failure with a fan is:

          snmp-server enable traps

          snmp-server host <> <>

This enables all traps available with your IOS version. You can the disable not wanted traps by using the "no"-command like this.

Example for dot1x traps:

          no snmp-server enable traps dot1x

With a snmp client you can then do a snmpwalk (or snmp get) without a specific OID to get all the SNMP information from the device:

On a Linux server the following command should work:

     snmpwalk -v 2c -c <> -T <>

-v = use SNMP version 2c

-c = use the community string you configured on the device

-T = output in the dotted decimal format

But be careful, this will be a lot of data output.

Here you will find a docu for configuring SNMP on a Cisco device:


CreatePlease to create content