6.1 HP IBRIX X9000 Network Storage System CLI Reference (TA768-96057, June 2012)

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.
X9000 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]
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.
Options
DescriptionOption
Creates a trapsink.-c
Deletes a trapsink.-d
Identifies a host, by name or IP address, where a trapsink is created or
updated. Trapsinks can be deleted or listed on multiple hosts by specifying a
HOSTLIST (use commas to separate the hosts).
-h HOSTNAME or HOSTLIST
Lists SNMP trapsink properties.-l
Associates a v1 or v2 community with a trapsink. The default community is
public.
-m COMMUNITY
A trapsink destination port. The default port number is 162.-p PORT
State of SNMP notifications. The default value is on.-s on|off
Updates a trapsink.-u
Indicates the SNMP version of the trapsink.-v 1|2|3
Shows the usage for this command.-?
ibrix_snmptrap 137