_snmp_debug()


Activate SNMP debugging features.

Syntax

_snmp_debug(flags)

Parameter

Parameter

Definition

flags

binary flags that activate PSL SNMP debugging features*Valid Values* 
0 deactivate debug reporting 
1 dump all input/output packets to the PATROL computer console display window 
2 provide additional information about timeout errors 
3 apply both ranges 1 and 2

Description

The snmp_debug() function enables the basic SNMP debugging function within PSL. The _snmp_debug() function returns the previous _flags value or NULL indicating that the new flags resulted in an error.

Example

The following is an example of the _snmp_debug() function:

switch (debug_level) {
case 1: {new_level = _snmp_debug(1);}# dump I/O packets to the console
case 2: {new_level = _snmp_debug(2);}# provide more timeout error info
case 3: {new_level = _snmp_debug(3);}# both levels 1 and 2
}

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*