ERS Stackables: How To Configure SNMP Community Strings for SNMP v1 and v2

You are here:
← All Topics
Table of Contents

Objective

ERS Stackables: How To Configure SNMP Community Strings for SNMP v1 and v2

Environment

Procedure

Below are steps on how to change the Read Write and Read Only community strings for SNMP v1 and v2 as well as instructions on configuring the SNMP Host and SNMP Server on the Ethernet Routing Switch 4000 & 5000.
The default SNMP v1 and v2 community strings are  “public” for Read Only and “private” for Read Write.  SNMP v1 and SNMP v2 only uses community string match for authentication.  To support user name, authentication, and encryption, SNMP v3 must be used.
Enable SNMP On The Switch:
ERS-Stackable(config)#snmp-server enable  
To Change the Read Write Community String:
1.       ERS-Stackable(config)# snmp-server community <enter RW string> RW
2.       ERS-Stackable(config)# snmp-server community RW
3.       Enter community string: <enter RW string>
4.       Confirm community string: <enter RW string>
To Change the Read Only Community String:
1.       ERS-Stackable(config)#snmp-server enable
2.       ERS-Stackable(config)# snmp-server community <enter RW string> RO
3.       ERS-Stackable(config)# snmp-server community RO
4.       Enter community string: <enter RO string>
5.       Confirm community string: <enter RO string>  

Also its a best practice to remove the default  community strings and personalize them. Below is the example:  
Configure SNMP Host and SNMP Switch IP:
ERS-Stackable(config)#snmp-server host <host IP> <community> – IP Address of workstation responsible for  sending SNMP traps.
ERS-Stackable(config)#snmp-server name “<switch IP address>” – IP Address of switch
ERS-Stackable(config)#show snmp host – Verify configuration.  

Check for SNMP communication by performing a MIB Query from any monitoring tool, by entering SNMP credentials and Basic OID (system description – “sysdesc”), to confirm SNMP communication.
4850GTS(config)#show snmp-server
Read-Only Community String: ***************
Read-Write Community String: ***************
Trap #1 IP Address:       192.x.x.x        
Community String: ***************
Trap #2 IP Address:       0.0.0.0        
Community String: ***************
Trap #3 IP Address:       0.0.0.0        
Community String: ***************
Trap #4 IP Address:       0.0.0.0        
Community String: ***************
Authentication Trap: Enabled  

AutoTopology: Enabled

Note: Need to make sure SNMP Server IP Address is allowed within the IP Manager.