Send SNMP Trap

snmp.trap(message)
snmp.trap(specifictrap, message, [channel])

Generates a trap, using the specifictrap (or 9 if not specified), along with the message and channel number (if provided).

Parameter Type Description
specifictrap integer Trap number. e.g. 10000+
message string Message to send
channel integer Associated channel (if applicable)

specifictrap numbers that clash with the hard-coded traps will be limited (up to 68). Consequently, use values that are above 100. e.g. 10000 upwards.