07-19-2010 02:25 AM
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 :
or
and
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,
AA
07-19-2010 04:39 AM
Hi,
a good source for SNMP variables is the SNMP Object Navigator from Cisco.
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en
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.
Sven
07-20-2010 02:22 AM
Hi,
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.
Regards,
07-20-2010 02:51 AM
Hi,
the basic SNMP config for 2960 and 3560 is:
snmp-server community <
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 <
-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:
http://www.cisco.com/en/US/docs/ios/12_2/configfun/configuration/guide/fcf014.html
Sven
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: