msys.policyeditor.send_trap
Name
msys.policyeditor.send_trap — Send an SNMP trap
Synopsis
msys.policyeditor.send_trap(ctx, vars, params);
ctx: table vars: table params: table
**Configuration Change. ** This function is deprecated. Use msys.snmpTrap() to send an SNMP trap. For more information see msys.snmpTrap.
Description
Send an SNMP trap
The ctx parameter is the context containing objects from the callout, vars is a table containing script variables and params is a table containing parameters to be passed to this routine.
Defined parameters for params are:
-
typespecifies the data type of the payload. Can be one of "string", "counter", "gauge" or "ip" -
payloadthe data to be sent with the trap. For "string" data, this must be a string. For "ip" data, this must be a string rendition of an IPv4 address. For "counter" and "gauge" types, it must be numeric. -
addressthe trap server address; an IPv4 address string. -
portthe port number of the trap server -
communitythe community for authorization purposes with the trap daemon -
mibthe mib for the trap. If not specified, defaults to the Ecelerity enterprise MIB ("1.3.6.1.4.1.19552.1.4.7") -
trapvarmibthe Object Identifier (OID) to use for the trap variable. If unspecified, defaults to "1.3.6.1.4.1.19552.1.4.1.0". -
throttleif non-zero, limits sending to one trap every "throttle" seconds.