Collecting information from Cisco switchs using SNMP

Unanswered Question
Jul 19th, 2010

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,


I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Ayad Tue, 07/20/2010 - 02:22


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.


Sven Hruza Tue, 07/20/2010 - 02:51


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:



This Discussion