snmp-server
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
snmp-server
To configure the SNMP server information, switch location, and switch name, use the snmp-server
command in configuration mode. To remove the system contact information, use the no form of the
command.
Syntax Description
community string
group group-name
ro
rw
contact
name
location
location
Defaults
The default community access is read-only (ro).
Command Modes
Configuration mode
Command History
Release
1.0(3)
2.0(1b)
Usage Guidelines
None.
Examples
The following example sets the contact information, switch location, and switch name.
switch# config terminal
switch(config)# snmp-server contact NewUser
switch(config)# no snmp-server contact NewUser
switch(config)# snmp-server location SanJose
switch(config)# no snmp-server location SanJose
Cisco MDS 9000 Family Command Reference
21-40
snmp-server {community string [group group-name | ro | rw] | contact [name] | location
[location]}
no snmp-server {community string [group group-name | ro | rw] | contact [name] | location
[location]}
Specifies SNMP community string. Maximum length is 32 characters.
(Optional) Specifies group name to which the community belongs.
Maximum length is 32 characters.
Sets read-only access with this community string.
Sets read-write access with this community string.
Configures system contact.
(Optional) Specifies the name of the contact. Maximum length is 80
characters.
Configures system location.
(Optional) Specifies system location. Maximum length is 80 characters.
Modification
This command was introduced.
Added group option.
Chapter 21
S Commands
OL-18089-01, Cisco MDS NX-OS Release 4.x