Command Reference Guide

SNMP Commands
CLI Command Reference
September 2014 Page 100
HP Moonshot Switch Module CLI Command Reference
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.
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.
Default none
Format
snmp-server {sysname name | location loc | contact con}
Mode Global Config
Note: 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 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]
Mode Global Config
Parameter Description
community-name A name associated with the switch and with a set of SNMP managers that manage
it with a specified privileged level. The length of
community-name can be up to 16
case-sensitive characters.
ro | rw | su The access mode of the SNMP community, which can be public (Read-Only/RO),
private (Read-Write/RW), or Super User (SU).