38
SNMP Commands Set
Commands
Command
Level
Description
Defaults
Example
snmp
system-name
[word]
Global
configuration
mode
Set SNMP agent
system name
N/A
Switch (config)#
snmp system-name
l2switch
snmp
system-location
[word]
Global
configuration
mode
Set SNMP agent
system location
N/A
Switch (config)#
snmp
system-location lab
snmp
system-contact
[word]
Global
configuration
mode
Set SNMP agent
system contact
N/A
Switch (config)#
snmp
system-contact
where
snmp
community-strin
gs [word] right
[RO | RW]
Or
no snmp
community-strin
gs [word]
Global
configuration
mode
Add SNMP
community string.
Use the no form of
this command to
remove the
specified
community.
PUBLIC
RO
Switch (config)#
snmp
community-strings
public right RW
Switch(config)#
no snmp
community-strings
public right rw
snmp-server
host
[IP-address]
community
[word]
No snmp-server
host [IP
Global
configuration
mode
Configure SNMP
server host
information and
community string
N/A
Switch(config)#
snmp-server host
192.168.1.50
community
public
Switch(config)#
no
snmp-server host