24-7
Catalyst 2950 Desktop Switch Software Configuration Guide
78-14982-01
Chapter 24 Configuring SNMP Configuring SNMP

Disabling the SNMP Agent

Beginning in privileged EXEC mode, follow these steps to disable the SNMP agent:
The no snmp-server global configuration command disables all running versions (version 1, version 2C,
and version 3) on the device. No specific IOS command exists to enable SNMP. The first snmp-server
global con figurat ion co mm and t h at y ou ent er e na ble s al l version s of SN MP.

Configuring Community Strings

You use the SNM P c om muni ty str in g to define t he r elat ionshi p be tw een the SN MP ma nage r and th e
agent. The co mmunity string acts like a passwor d to permit acc ess to the agent on the switch. Optional ly ,
you can specify one or more of these characteristics associated with the string:
An access list of IP ad dresses of the SNMP manag ers that ar e permitted to use the community string
to gain access to the agent
A MIB view, whic h d efines th e subse t o f all MIB ob ject s ac cessibl e t o t he given communi ty
Read a nd writ e or rea d-o nly perm issio n f or t he M IB ob ject s ac cessibl e to th e c omm unity
Beginning in privileged EXEC mod e, follow these step s to configur e a comm uni ty stri ng on the switch:
Command Purpose
Step 1 configure terminal Enter g lob al c onfigura tion m ode .
Step 2 no s nm p- s erver Disab le t he SNMP age nt oper ation .
Step 3 end Return to pr ivileged EX EC m ode.
Step 4 show running-config Verify you r entr ies.
Step 5 copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Step 1 configure te rmin al Enter global co nfiguration mo de.
Step 2 snmp - server c omm un it y string [vi ew
view-name] [ro | rw] [access-list-number]Configure the community string.
For string, specify a string that acts like a password and
permits ac cess to the SN MP protoc ol. You ca n configure one
or more com munity strings of any length.
(Optional) For view, specify the view record accessible to the
community.
(Optional) Specify either read-only (ro) i f you want
author ized m a nage ment sta tions to ret rieve MIB ob jects , or
specify read-write (rw) if you want authori zed manage ment
stations to retrieve and modify MIB objects. By default, the
community string permits read-only access to all objects.
(Optional) F or access-list-number, enter an IP sta ndard ac cess
list numbere d from 1 to 99 and 1300 to 1999 .