Technical data

C WebLogic SNMP Agent Command-Line Reference
C-56 Administration Guide
Example
The following example generates a log message trap that contains the trapTime and
trapServerName variable bindings. It broadcasts the trap through port 165. In the
example:
n 6 is the generic trap value that specifies “other WebLogic Server traps.”
n 60 is the specific trap value that WebLogic Server uses to identify log message
traps.
n .1.3.6.1.4.1.140.625.100.5 is the OID for the trapTime variable binding
and
.1.3.6.1.4.1.140.625.100.10 is the OID for the trapServerName
variable binding.
generic-trap Specifies the value of the trap’s generic trap type field.
For a list of valid values, refer to “Format of WebLogic Trap Notifications” in
the WebLogic SNMP Management Guide.
specific-trap Specifies the value of the trap’s specific trap type field.
For a list of valid values, refer to “Format of WebLogic Trap Notifications” in
the WebLogic SNMP Management Guide.
timestamp Specifies the value of the trap’s timestamp field.
This field is intended to indicate
the length of time between the last
re-initialization of the SNMP agent and the time at which the trap was
issued.
When using the snmpv1trap command to generate a trap, any number of
seconds is sufficient.
OID {INTEGER | STRING |
GAUGE | TIMETICKS |
OPAQUE | IPADDRESS |
COUNTER} value
(Optional) Specifies the value of the trap’s variable bindings field,
which consists of name/value pairs that further describe the trap notification.
For each name/value pair, specify an OID, a value type, and a value.
For example, a log message trap includes a
trapTime binding to indicate the
time at which the trap is generated. To include this variable binding in the test
trap that you generate, specify the OID for the
trapTime variable binding,
the
STRING keyword, and a string that represents the time:
.1.3.6.1.4.1.140.625.100.5 STRING “2:00 pm
Argument Definition