Chapter 3: Management Commands 89
SNMP Commands
This section describes the commands you use to configure Simple Network
Management Protocol (SNMP) on the switch. You can configure the switch to act
as an SNMP agent so that it can communicate with SNMP managers on your
network.
snmp-server This command sets the name and the physical location of the switch, and the
organization responsible for the network. The parameters
name
,
loc
and
con
can
be up to 255 characters in length.
To clear the snmp-server, enter an empty string in quotes. For example, snmp-
server {sysname “ “} clears the system name.
snmp-server
community
This command adds (and names) a new SNMP community, and optionally sets
the access mode, allowed IP address, and create a view for the community.
Community names in the SNMP Community Table must be unique. When
making multiple entries using the same community name, the first entry is kept
and processed and all duplicate entries are ignored.
Default none
Format
snmp-server {sysname
name
| location
loc
| contact
con
}
Mode Global Config
Default Two communities are created by default:
◆ public, with read-only permissions, a view name of Default,
and allows access from all IP addresses
◆ private, with read/write permissions, a view name of Default,
and allows access from all IP addresses.
Format
snmp-server community community-string [{ro | rw |su }]
[ipaddress ip-address]
[view view-name]