msys.snmpTrap
Name
msys.snmpTrap — Issue an SNMP trap
Synopsis
msys.snmpTrap(traptable);
Description
Issue an SNMP trap. traptable has the following permitted keys:
-
typespecifies the type of the payload. Can be one of string, counter, gauge or IP. -
payloadiftypeis a string,payloadmust be a string. Iftypeis a counter or gauge, then this must be a number. Iftypeis an IP, then it must be a valid IPv4 address. -
addressthe IPv4 destination address for the trap. If unspecified, the trap will be sent to all configuredTrap_Destinationstanzas in the config file. -
portthe target port number. If not specified, defaults to the SNMP standard port assigned by IANA. -
communitythe community name. If not specified, this parameter defaults topublic. -
mibthe OID identifying the trap. -
trapvar.mibthe 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.