The SNMPTRAP macro generates an SNMP trap. You can use an SNMP trap to inform a remote system of a resource or service state change.
Parameters: SNMPTRAP Macro
Specifies the text to send with the trap. The format of the text should conform to the specified enterprise ID and specific trap number.
Specifies the data set name (DSN) in which the addresses of remote systems are located.
Specifies the destination addresses of the remote systems. You can enter an address, or multiple addresses by using a comma or a space as the delimiting character.
Together with the specific trap number, specifies the format of the trap. The format identified by this field is determined by your open platform administration.
Together with the enterprise ID, specify the format of the trap. The format identified by this field is determined by your open platform administration.
Specify the community for which the trap is destined. This field is case sensitive and can be left with its default of public.
Example: SNMPTRAP Macro
In the following example, the SNMPTRAP macro sends a trap to the remote system at the specified address when the CICS task is lost. The macro is specified in a process definition that is used by the resource definition for the task (CICSPROD) and processed as an exit upon receipt of a message which indicated that the CICS region has failed.
---------- Automation Services : SNMPTRAP Macro Parameter Definition ---------- Command ===> Function=UPDATE . SNMP Trap Details ----------------------------------------------------------. | | | Text .....PROD-0001________________________________________________________ | | CICS(CICSPROD)___________________________________________________ | | PROD-0001: CICSPROD HAS FAILED___________________________________ | | | | Destinations Dataset ...... ____________________________________________ | | or | | Destination Address(es) ... 128.1.170.23___________________________________ | | | | Enterprise Id ............. 1.3.6.1.4.1.11.2.17.1__________________________ | | | | Specific Trap Number ...... 59047936_______________________________________ | | | | Community Name ............ PUBLIC_________________________________________ | '-----------------------------------------------------------------------------' F1=Help F2=Split F3=OK F9=Swap F12=Cancel
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |