SNMP setup for CISCO switches

Hi Experts,

I have some Cisco switches in my network.
Can you show me with some commands how to setup SNMP ?
Lets say errors and link changes should be sent to my SPICEWORKS server and should create an email.
Eprs_AdminSystem ArchitectAsked:
Who is Participating?
 
naderzCommented:
Well, Spiceworks actually does provide a snmp management and monitoring software (free with Ads). I have not used it, but it's there.

See:
http://www.spiceworks.com/download-free-snmp-network-management-software/?utm_function=acq&utm_channel=sem&utm_source=bing&utm_medium=ppc&utm_campaign=Branded%20%28Exact%29%20-%20Search&utm_term=spiceworks%20network%20monitor%20snmp&utm_ag=Spiceworks%20SNMP

Here are the switch commands for getting snmp and syslog working"

syslog:

logging trap critical
! (choose how much alerts do you require between 0 - 7. The higher the number the more alerts you will get. On a core switch I would do notifications or warnings. On an access switch I would do critical)

logging origin-id hostname
! (this uses the switch's host name as the source of the alert0

logging facility local6
logging source-interface <"Enter name of the interface to use as the source of the message>
logging <"Enter IP Address of your syslog server">


snmp:

snmp-server community <Enter your Read-Only community string. Do not use public. This needs to match the setting on the server> RO

snmp-server trap-source < enter an interface as the source of the alert. This helps with recognizing who is sending the alert>

snmp-server location <enter switch's location to help you with the alert>

snmp-server enable traps
snmp-server host < enter ip address of hte snmp server> version 2c <enter same RO community string as before>
0
 
gheistCommented:
spicework does not process snmp traps or syslog (ar least not officially documenting it), so you are out of luck.
0
 
naderzCommented:
And, for SNMP V3 follow these steps:

http://docwiki.cisco.com/wiki/Snmp_v3_configurations
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
gheistCommented:
Nexus cisco switch tooo...
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
one more question,

you gave me commands for logging and for snmp
Do I need both to enter to my switches ?

I thought just the snmp commands enough ?
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
today evening I start with the snmp and syslog config
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Do I need this command ?

snmp-server trap-source < enter an interface as the source of the alert. This helps with recognizing who is sending the alert>

I don´t understand it !
0
 
naderzCommented:
the logging commands are for a syslog server; if you use that. The snmp commands are for an snmp trap receiver.

The snmp-server trap-source helps with identifying the device sending snmp alarms and messages. On our syslog and snmp receivers we have access-lists that only allow certain IP addresses. This command will help with that. You don't have to use it.
0
 
Eprs_AdminSystem ArchitectAuthor Commented:
Thanks a lot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.