Use the snmp_debug (flags) function to debug the PSL you write. The snmp_debug (flags) function accepts a binary flag (0, 1, 2, or 3) that activates PSL SNMP debugging features. It returns the old settings or NULL indicating an error. The following table lists the function to use for the task you want to perform:
Functions for debugging PSL functions
Task you want to perform | snmp_debug (flags) function to use |
|---|---|
Dump all in/out packets on stdout when the agent is in no-daemon mode |
|
Get error information that may not be reported to the console window, such as timeouts |
|