WebLogic Server Command Reference
Starts a daemon that receives traps and prints information about the trap.
java snmptrapd [-d] [-c
snmpCommunity
] [-pTrapDestinationPort
]
The following command starts a trap daemon and instructs it to listen for requests on port 165. The daemon runs in the shell until you kill the process or exit the shell:
If the command succeeds, the trap daemon returns a blank line with a cursor. The trap daemon waits in this state until it receives a trap, at which point it prints the trap.
To generate WebLogic Server traps and receive them through the trap daemon:
The snmpv1trap
command generates a serverStart
Trap and broadcasts it through port 162.
In the shell in which the trap daemon is running, the daemon prints the following:
Trap received from: /127.0.0.1, community: public
Enterprise: .1.3.6.1.4.140.625
Agent: /127.0.0.1
TRAP_TYPE: 6
SPECIFIC NUMBER: 60
Time: 1000
VARBINDS: