54-7
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 54 Configuring SNMP Configuring SNMP
Disabling the SNMP Agent
To disable the SNMP agent, perform this task:
The no snmp-server global configuration command disables all running versions (Version 1,
Version 2C, and Version 3) on the device. No specific Cisco IOS command exists to enable SNMP. The
first snmp-server global configuration command that you enter enables all versions of SNMP.
Configuring Community Strings
You use the SNMP community string to define the relationship between the SNMP manager and the
agent. The community string acts like a password to permit access to the agent on the switch. Optionally,
you can specify one or more of these characteristics associated with the string:
An access list of IP addresses of the SNMP managers that are permitted to use the community string
to gain access to the agent
A MIB view, which defines the subset of all MIB objects accessible to the given community
Read and write or read-only permission for the MIB objects accessible to the community
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# no snmp-server Disables the SNMP agent operation.
Step 3 Switch(config)# end Returns to privileged EXEC mode.
Step 4 Switch# show running-config Verifies your entries.
Step 5 Switch# copy running-config
startup-config (Optional) Saves your entries in the configuration file.