snmp-server community
snmp-server community
community-string { ro
| rw }
view mib-view
no snmp-server
communitycommunity-string { ro
| rw }
view mib-view
The SNMP community string is not configured.
Global configuration mode
The viewmib-view parameter allows you to associate a view to the members of this community string. If no view is specified, access to the full MIB is granted. The view that you want must exist before you can associate it to a community string.
You can set just one access type, either read-only (ro) or read/write (rw) for a single SNMP community instead of setting both access types. The read/write access supersedes read-only configuration and if read/write is configured for a specified community after read only, the running configuration file only saves the rw configuration line.
If you issue the
no snmp-server community public ro command and then enter the
write memory command to save the configuration, the read-only "public" community string is removed
and will have no SNMP access. If for some reason the device is brought down and then
brought up, the
no snmp-server community public ro command is restored in the system and the read-only "public" community string has
no SNMP access.
The
no form of the command removes an SNMP community string.
The following example configures an SNMP community string with read-only access.
device# configure terminal device(config)# snmp-server community private ro
| Release version | Command history |
|---|---|
| 09.0.10e | The command was modified to remove the ACL options. |