msys.snmpTrap
Name
msys.snmpTrap — Issue an SNMP trap
Synopsis
msys.snmpTrap(traptable);
Description
Issue an SNMP trap. traptable
has the following permitted keys:
-
type
specifies the type of the payload. Can be one of string, counter, gauge or IP. -
payload
iftype
is a string,payload
must be a string. Iftype
is a counter or gauge, then this must be a number. Iftype
is an IP, then it must be a valid IPv4 address. -
address
the IPv4 destination address for the trap. If unspecified, the trap will be sent to all configuredTrap_Destination
stanzas in the config file. -
port
the target port number. If not specified, defaults to the SNMP standard port assigned by IANA. -
community
the community name. If not specified, this parameter defaults topublic
. -
mib
the OID identifying the trap. -
trapvar.mib
the OID identifying the trap variable. If not specified, 1.3.6.1.4.1.19552.1.4.1.0 is used (the OmniTI Enterprise MIB assignment). For more information see MIB Files .
Because this function is in the msys
namespace, an explicit require
is not necessary.