Traps and notifications can be sent using the command <CODE>'snmptrap'</CODE>.
Traps and notifications can be sent using the command <CODE>'snmptrap'</CODE>.
−The following examples generate the generic trap <CODE>'coldStart'</CODE> and a
+The following examples generate the generic trap <CODE>'warmStart(1)'</CODE> and a
(dummy) enterprise specific trap '99' respectively:
(dummy) enterprise specific trap '99' respectively:
− snmptrap -v 1 -c public localhost "" "" 0 0 ""
+ snmptrap -v 1 -c public localhost "" "" 1 0 ""
snmptrap -v 1 -c public localhost "" "" 6 99 ""
snmptrap -v 1 -c public localhost "" "" 6 99 ""
snmptrap -v 2c -c public localhost "" .1.3.6.1.4.1.2021.251.1
snmptrap -v 2c -c public localhost "" .1.3.6.1.4.1.2021.251.1
−(These two are equivalent ways of specifying the same trap).
+(These two are equivalent ways of specifying the same trap). Again,
+the empty parameter "" will use a suitable default for the relevant
+value (<CODE>sysUptime</CODE>).
+
Any of these commands can be followed by one or more varbinds,
Any of these commands can be followed by one or more varbinds,
snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"
snmptrap -v 2c -c public localhost "" ucdStart sysContact.0 s "Dave"
Exception encountered, of type "Error"