Technical data

Commands for Testing Traps
Administration Guide C-55
snmpv1trap
Constructs an SNMPv1 trap and distributes it to the SNMP manager or trap daemon
that is running on the specified host and listening on the specified port number. For
more information about the trap daemon, refer to “snmptrapd” on page -58.
As part of invoking this command, you specify the value for fields within the trap
packet that you want to send. The values that you specify must resolve to traps that are
defined in the WebLogic Server MIB. For information about WebLogic Server traps
and the fields that trap packets require, refer to “Format of WebLogic Trap
Notifications” in the WebLogic SNMP Management Guide.
Syntax
java snmpv1trap [-d] [-c snmpCommunity] [-p TrapDestinationPort]
TrapDestinationHost .1.3.6.1.4.140.625
agent-addr generic-trap specific-trap timestamp
[OID {INTEGER | STRING | GAUGE | TIMETICKS | OPAQUE |
IPADDRESS | COUNTER} value] ...
Argument Definition
-c snmpCommunity Specifies a password (community name) that secures the data in the trap.
If you do not specify a value, the command assumes -c public.
-p TrapDestinationPort Specifies the port number on which the SNMP manager or trap daemon is
listening.
If you do not specify a value, the command assumes
-p 162.
TrapDestinationHost Specifies the DNS name or IP address of the computer that hosts the SNMP
manager or trap daemon.
.1.3.6.1.4.140.625
Specifies the value of the trap’s enterprise field, which contains the
beginning portion of the OID for all WebLogic Server traps.
agent-addr Specifies the value of the trap’s agent address field.
This field is intended to indicate the computer on which the trap was
generated.
When using the
snmpv1trap command to generate a trap, you can specify
any valid DNS name or IP address.