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
21-40
Cisco MDS 9000 Family Command Reference
OL-18089-01, Cisco MDS NX-OS Release 4.x
Chapter 21 S Commands
snmp-server
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.
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
]}
Syntax Description
Defaults
The default community access is read-only (
ro
).
Command Modes
Configuration mode
Command History
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
community
string
Specifies SNMP community string. Maximum length is 32 characters.
group
group-name
(Optional) Specifies group name to which the community belongs.
Maximum length is 32 characters.
ro
Sets read-only access with this community string.
rw
Sets read-write access with this community string.
contact
Configures system contact.
name
(Optional) Specifies the name of the contact. Maximum length is 80
characters.
location
Configures system location.
location
(Optional) Specifies system location. Maximum length is 80 characters.
Release
Modification
1.0(3)
This command was introduced.
2.0(1b)
Added
group
option.