SNMP Manager Programmer's Guide

Programming Examples
SNMP Manager Programmer’s Guide–134249
2-93
SNMPTRAP
SNMPTRAP
SNMPTRAP sends a trap packet using the UDP protocol. When you invoke this
manager, you can specify values for the various fields in a trap packet; you can
optionally specify as many as 16 variable bindings to include in the trap packet:
-l
stands for long form. Use this parameter when specifying variable bindings that are
not MIB-II objects.
community-string
is a community name that you can format as a displayable string or as a sequence of
octets, where each octet is an 8-bit hexadecimal value:
"myCommunity"
0x4D:0x65
The default is "public".
enterprise-oid
is an OID describing the entity emitting the trap. The default is 1.3.6.1.4.1.169.3:
iso (1)
org (3)
dod (6)
internet (1)
private (4)
enterprises (1)
tandem (169)
nonstopsystems (3)
manager-host-identifier
is the NonStop Kernel node name or IP address of the host on which the manager
resides. Omit the backslash when specifying a NonStop Kernel node name:
somenode
somesys.tandem.com
130.252.12.3
SNMPTRAP [-l]
[-c community-string]
[-e enterprise-oid]
[-a manager-host-identifier]
[-g generic-trap-identifier]
[-s specific-trap-number]
[-t timestamp]
[-p trap-destination-port}
target-host-identifier
[MIB-object [data-type]value] ...