
78 Chapter 2 General CLI commands
212160-A
snmp-server command
The snmp-server command configures various SNMP parameters. The syntax
for the
snmp-server command is:
snmp-server {{enable|disable}|authentication-trap|community
<community-string> [ro|rw] contact <text>|host <host-ip>
<community-string>|location <text>|name <text>}
The snmp-server command is in the config command mode.
Table 26 describes the parameters and variables for the
snmp-server command.
Table 26 snmp-server command parameters and variables
Parameters and variables Description
authentication-trap Enables generation of SNMP authentication failure traps.
community <community-string> Changes the read-only (ro) or read-write (rw) community strings for
SNMP v1 and SNMPv2c access. Enter a community string that
works as a password and permits access to the SNMP protocol.
ro|rw Specifies read-only or read-write access. Stations with ro access can
only retrieve MIB objects, and stations with rw access can retrieve
and modify MIB objects.
Note: If neither ro nor rw is specified, ro is assumed (default).
contact <text> Specifies the SNMP sysContact value; enter an alphanumeric string.
host <host-ip> <community-string> Configures an SNMP trap destination:
• host-ip—enter a dotted-decimal IP address of a host that will be
the trap destination
• community-string—enter a community string that works as a
password and permits access to the SNMP protocol
location <text> Specifies the SNMP sysLocation value; enter an alphanumeric
string.
name <text> Specifies the SNMP sysName value; enter an alphanumeric string.
Komentáře k této Příručce