Technical data

C WebLogic SNMP Agent Command-Line Reference
C-58 Administration Guide
snmptrapd
Starts a daemon that receives traps and prints information about the trap.
Syntax
java snmpv1trap [-d] [-c snmpCommunity] [-p TrapDestinationPort]
Example
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:
java snmptrapd -p 165
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.
Example: Sending Traps to the Trap Daemon
To generate WebLogic Server traps and receive them through the trap daemon:
1. Open a command prompt (shell) and do the following:
a. Add a supported SDK to the shell’s
PATH environment variable.
b. Set the
CLASSPATH environment variable as described in “Setting the Classpath
Option” on page 2-10.
2. To start the trap daemon, enter the following command:
Argument Definition
-c snmpCommunity Specifies that community name that the SNMP agent (or snmpv1trap
command) used to generate the trap.
If you do not specify a value, the command assumes
-c public.
-p TrapDestinationPort Specifies the port number on which the trap daemon receives traps.
If you do not specify a value, the command assumes -p 162.