To monitor your network related issues you must enable SNMP on them. Indeed, the SNMP protocol makes it possible in particular to retrieve statistical information on the network equipment. In the rest of this page, you will find instructions for activating and configuring this service on your Cisco switches.

You can connect to the terminal of your Cisco switch via Telnet, SSH, or simply via the console cable. Depending on your configuration, you may be asked for a login and a password.

ENTER THE ENABLE MODE

To change the configuration of a Cisco device, you must be in the “enable” mode. To enter the “enable” mode, simply type the enable command and enter the password you will be prompted for.

ENTER THE CONFIGURATION MODE

To be able to configure your Cisco equipment, you must be in “configuration mode”. Just enter the command:

configure terminal

CHECK THE SNMP CONFIGURATION OF YOUR CISCO SWITCH

Enter the command:

show running-config

Among the information, you can see the communities that are enabled with the RW (Read-Write and RO: Read Only) activation mode, as well as the SNMP traps enabled with their destination addresses and the communities for which they are enabled.

IF THE PUBLIC COMMUNITY IS ENABLED

For security reasons, it is best to disable the public community. Enter this line:

no snmp-server public public RO (or RW if the community is enabled in RW)

IF THE PRIVATE COMMUNITY IS NOT ENABLED

Or if it is enabled in RW mode, you must enable it in RO mode because the SmartReport monitoring tool only plays SNMP. Then enter this line:

snmp-server community private RO

ENABLE SNMP TRAPS THAT YOU WANT TO RECOVER

Depending on what you want to monitor, and which Cisco switch model you use, the SNMP traps that you need and can enable are not the same. You can list the SNMP traps that your Cisco switch can activate with the command:

snmp-server enable traps?

For more information on the usefulness of each of these SNMP traps, you can refer to the Cisco site :

http://www.cisco.com/en/US/docs/ios/netmgmt/command/reference/nm_18.html

Finally, you activate each SNMP traps thanks to the command:

snmp-server enable traps

CHOOSE THE DESTINATION AND THE COMMUNITY

You must now set the destination address, as well as the community for sending SNMP traps. for this, you need to give  IP address of your syslog/monitoring server.

 

snmp-server host <monitoring server ip> private

EXIT CONFIGURATION MODE AND SAVE THE CHANGES

To exit the configuration mode of your Cisco switch, simply enter the command:

exit
Then to save the changes, enter the command line:

write memory

Finally, you can check your changes by displaying the switch configuration again :

show running-config

If you have enabled SNMP traps for the correct address and private community, then your Cisco switch is ready to be supervised by SmartReport