6.5 HP StoreAll OS CLI Reference Guide

Table Of Contents
ibrix_snmptrap
Creates, updates, or deletes trapsinks for any SNMP version.
Description
A trapsink is the host destination where agents send traps, which are asynchronous notifications
sent by the agent to the management station. A trapsink is specified by its name or IP address.
StoreAll software supports multiple trapsinks; you can define any number of trapsinks of any SNMP
version, but you can define only one trapsink per host regardless of version.
At a minimum, a v1 or v2 trapsink configuration requires a destination host and SNMP version.
All other parameters are optional and many will pass a default value if not specified.
Synopsis
Create a v1 or v2 trapsink:
ibrix_snmptrap -c -h HOSTNAME -v {1|2} [-p PORT] [-m COMMUNITY] [-s
{on|off}]
HOSTNAME identifies the host where the agent sends traps. If a port is not specified, the command
defaults to port 162. If a community is not specified, the command defaults to the read-only
community, public. The -s option toggles agent trap transmission on and off. The default is on.
Update v1 or v2 trapsink settings and turn SNMP trap transmission on or off:
ibrix_snmptrap -u -h HOSTNAME -v {1|2} [-p PORT] [-m COMMUNITY] [-s
on|off]
Create a v3 trapsink:
ibrix_snmptrap -c -h HOSTNAME -v 3 [-p PORT] -n USERNAME[-j {MD5|SHA}]
[-k AUTHORIZATION_PASSWORD] [-y {DES|AES}] [-z PRIVACY_PASSWORD] [-x
CONTEXT_NAME] [-s {on|off}]
HOSTNAME identifies the host where the agent sends traps. If a port is not specified, the command
defaults to port 162. Other options define security settings. USERNAME is the v3 security name of
the trap sender. If unspecified, the command uses MD5 as the user authentication algorithm and
DES as the privacy algorithm, with no passwords. The CONTEXT_NAME, if used, specifies the
managed objects that can be accessed by the agent. The -s option toggles agent trap transmission
on and off. The default is on.
Update v3 trapsink settings and turn SNMP trap transmission on or off:
ibrix_snmptrap -u -h HOSTNAME -v 3 [-p PORT] -n USERNAME [-j {MD5|SHA}]
[-k AUTHORIZATION_PASSWORD] [-y {DES|AES}] [-z PRIVACY_PASSWORD] [-x
CONTEXT_NAME] [-s {on|off}]
Security settings are the same as those described for the create command.
Delete trapsinks on specific hosts:
ibrix_snmptrap -d -h HOSTLIST
Display information about trapsinks:
ibrix_snmptrap -l [-h HOSTLIST]
For all v1 or v2 trapsinks, or for all hosts in HOSTLIST, the command displays the trapsink address,
SNMP version, port, community and on/off state.
ibrix_snmptrap 189