HP StoreOnce Backup System CLI Reference Guide
• privacy-password(v3 only) – This optional parameter specifies the privacy password for SNMP
version 3 and decryption (default is no password set). Passwords must contain at least eight
characters.
• contextname(v3 only) – This optional parameter specifies the managed objects that can be
accessed by the agent. This parameter is required if the trap receiver has defined subsets of
managed objects.
Requirements for Command Execution
The command entry must conform to command syntax.
Successful Command Output
Upon successful entry of the command sequence, the trap host is added to the StoreOnce appliance’s
SNMP agent, and the following is displayed:
SNMP versions 1 and 2:
Command Successful, host trap FQDN | IP added, where FQDN | IP is the
fully-qualified domain name or IP address of the trap host.
SNMP version 3:
Command Successful, host trap FQDN | IP added for “username”, where FQDN
| IP is the fully-qualified domain name or IP address of the trap host, and username is the
authorized SNMP user provided in the command entry.
Command Operation during Abnormal Conditions
• If any of the command elements (snmp, add, trapsink) are misspelled, the following is
displayed:
element: command not found
• If the command does not conform to the required syntax, the following is displayed:
Command Failed - the command does not conform to the required syntax,
To add trapsink for SNMP version 1 or 2
snmp add trapsink <FQN | IP>
[version {1 | 2}]
[port <Number>]
[trap-community <"string">]
[events {alert | warning | information}]
To add trapsink for SNMP version 3
snmp add trapsink <FQN | IP>
version 3
user <username>
[port <Number>]
[events {alert | warning | information}]
[authentication-algo {MD5 | SHA}]
[authuthentication-pwd <authentication-password>]
[privacy-algo {DES | AES}]
[privacy-pwd <privacy-password>]
[contextname <contextname>]
Description:
This command defines a sink to which the snmp agent sends the traps.
<FQN | IP> - trapsink host name or ip.
[version] - trapsink snmp version (default - 1).
[port] - trapsink port (default - 162).
[trap-community] - trapsink community (default - "public").
[events] - trapsink events.
[user] - authorized user name.
[authentication-algo] - authorization algorithm (default - MD5).
[authuthentication-pwd] - authorization password (default none).
[privacy-algo] - privacy algorithm (default - DES).
[privacy-pwd] - privacy password (default none).
[contextname] - context name (default none).
snmp add trapsink 159