6.0 HP StorageWorks X9000 File Serving Software CLI Reference (TA768-96040, October 2011)

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. Trapsink
configuration for SNMPv3, however, is more detailed than for earlier versions, requiring a user
name and additional security parameters.
The v3 security parameters are controlled as follows:
If the authorization password is not specified, the agent assumes the trap message does not
require authentication or encryption.
If the authentication password is provided but no privacy password is specified, the agent
supplies authentication information but does not encrypt the message.
If both the authentication and privacy passwords are specified, authentication information is
provided and the message is encrypted.
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
ibrix_snmptrap 123