C.4 ajsovtrap (UNIX only)
- Format
ajsovtrap [-F service-name] [-m node-name] [-o company-ID] [-a agent-address] -n extended-trap-number object-ID value-syntax value
- Description
-
Issues SNMP traps.
Under normal circumstances, this command is called from a scheduler service. However, when monitoring the status of JP1/AJS3 - Manager, a user can use this command to issue SNMP traps to the manager for HP NNM.
- Execution privileges
-
None
- Arguments
-
- -F service-name
-
Specify the name of the scheduler service.
The name can be 1 to 30 bytes in length.
The SNMP trap destination is notified of the scheduler service name specified in this option.
When omitted, AJSROOT1 is used.
- -m node-name
-
Specify the IP address or host name of the SNMP trap destination (the HP NNM manager).
The host name can be 1 to 255 bytes in length.
When omitted, SNMP traps are sent to all the nodes specified for the trap-dest parameter in the configuration definition file for the SNMP agent.
- -o company-ID
-
Specify sysObjectID.
If you omit this option, the system assumes .1.3.6.1.4.1.116.7.17.10.
- -a agent-address
-
Specify the IP address or host name of the instance of JP1/AJS3 - Manager that serves as the SNMP trap source (the HP NNM agent).
The host name can be 1 to 255 bytes in length.
When omitted, the system assumes the name of the host from which the
command is executed.
- -n extended-trap-number
-
Specify an integer representing the extended trap number.
You can specify 1 or 2.
- object-ID
-
Specify the object ID, without the company ID component.
For example, if you specify 2 as the object ID, the object ID set for the snmptrap command is .1.3.6.1.4.1.116.7.17.10.2.0.
- value-syntax
-
Select the value syntax from among the following eight items:
-
integer
-
octetstring
-
objectidentifier
-
ipaddress
-
counter
-
gauge
-
timeticks
-
opaque
-
- value
-
Specify a value that confirms to the value syntax.
For details, see the documentation for HP NNM.
- Notes
-
-
This command is only available for UNIX. You cannot execute this command in Windows.
-
SNMP traps are implemented by UDP (User Datagram Protocol); therefore, the reliability of SNMP trap notification to the HP NNM manager depends on the UDP protocol.
-
- Example
-
The following command uses an SNMP trap to notify the HP NNM manager (Manager) that the status of JP1/AJS3 - Manager is unknown.
ajsovtrap -m Manager -n 2 1 octetstring Unknown