Command Reference Guide
SNMP Commands
CLI Command Reference
September 2014 Page 109
HP Moonshot Switch Module CLI Command Reference
snmp-server view
This command creates or modifies an existing view entry that is used by groups to determine which objects can
be accessed by a community or user.
no snmp-server view
This command removes the specified view.
snmp-server v3-host
This command configures traps to be sent to the specified host.
Default Views are created by default to provide access to the default groups.
Format
snmp-server viewname oid-tree {included|excluded}
Mode Global Config
Parameter Description
viewname The label for the view being created. The range is 1 to 30 characters.
oid-tree The OID subtree to include or exclude from the view. Subtrees may be specified by
numerical (1.3.6.2.4) or keywords (system), and asterisks may be used to specify a subtree
family (1.3.*.4).
included The tree is included in the view.
excluded The tree is excluded from the view.
Format
no snmp-server view viewname [oid-tree]
Mode Global Config
Default No default hosts are configured.
Format
snmp-server v3-host host-addr username [traps | informs [timeout seconds] [retries
retries
]] [auth | noauth | priv] [udpport port] [filter filtername]
Mode Global Config
Parameter Description
host-addr The IPv4 or IPv6 address of the host to send the trap or inform to.
user-name User used to send a Trap or Inform message. This user must be associated with a group that
supports the version and access method. The range is 1 to 30 characters.
traps Send SNMP traps to the host. This is the default option.
informs Send SNMP informs to the host.
seconds Number of seconds to wait for an acknowledgement before resending the Inform. The
default is 15 seconds. The range is 1 to 300 seconds.