Technical data

Commands for Testing Traps
Administration Guide C-59
java snmptrapd
3. Open another 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.
4. To generate a trap, enter the following command:
java snmpv1trap localhost .1.3.6.1.4.140.625 localhost 6 65
1000
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: 65
Time: 1000
VARBINDS: