SNMPTRAP keyword sends an SNMP trap to the specified host.
This keyword has the following format:
SNMPTRAP(HOST(HostName|*) [COMMUNITY(CommunityName) ] GTRAP (GenericTrapNum) STRAP (SpecificTrapNum) DATA(OID, type, value)[ DATA(OID, type, value)]...)
Specifies the name of the host to which to send the trap.
Note: Specifying an asterisk (*) sends an SNMP trap to all host names designated for message forwarding in the Configuration Manager.
Specifies the SNMP community to which to send the trap. This option may be used to override the default of PUBLIC.
Defines the class of generic trap being sent. This value is a single digit, in the range of 0 to 6. Under most circumstances, use code 6 to indicate that a system-specific SNMP trap code is being used.
The following codes numeric codes have specific industry standard meanings as predefined by the Internet Activities Board (IAB):
Indicates a coldstart.
Indicates a warmstart.
Indicates a link down.
Indicates a link up.
Indicates an authentification failure.
Indicates EGP neighbor loss.
Specifies a system-specific trap number up to a 32-bit integer.
Specifies the type and value of the data:
Specifies the type of the trap
Specifies the value of the data
You can repeat this operand up to 20 occurrences.
Example:
The following example sends the enterprise-specific trap number 1 to the host named UNIHOSTA. The trap information is related to an SNMP MIB (management information base) object whose OID (object identifier) is 999.2.1.3. The integer data value being reported for the OID is 777.
SNMPTRAP(HOST(UNIHOSTA) GTRAP(6) STRAP(1) DATA(999.2.1.3,INTEGER,777))
|
Copyright © 2012 CA Technologies.
All rights reserved.
|
|