Interpreting error messages from PSL functions
The following table describes global error messages for PSL functions for SNMP. They are considered global because any SNMP PSL function can generate one of these messages.
Global error messages for SNMP PSL functions
Error message | Description |
---|---|
E_PSL_BAD_FUNCTION_PARAMETER | A function fails to parse a parameter, which could be caused, for example, by a bad address or trap definition. |
E_PSL_SNMP_ERROR | A function tries to send or receive an invalid packet to or from another SNMP entity. |
E_PSL_SNMP_NOT_SUPPORTED | SNMP support is turned off. |
NULL | If an error occurs, a function returns a null string or " ". |
When an error occurs, the user does not see any of the error messages in the above table. A user sees nothing since all SNMP PSL functions return the NULL string after encountering an error. A user can determine which error occurred most recently by displaying or printing the value of the PATROL PSL error variable. This variable holds an integer that corresponds to one of the error messages above.