full_discovery()

Verify that the process is currently in a full discovery cycle.

Syntax

full_discovery()


Parameter

This function has no parameters.

Description

The full_discovery() function returns TRUE if the PSL script containing it is an application discovery script and it is currently in a full discovery cycle. Otherwise, the full_discovery() function returns FALSE. 

A full discovery cycle is done after the PATROL Agent's process cache is refreshed. This flag therefore indicates whether the process cache has been refreshed since the last time the script was executed.

Example

The following example tests whether the PSL script is in a full discovery cycle and exits the script if it is not.

# If we are not in a full discovery cycle
# we can exit immediately
if (!full_discovery()) {exit;}

Was this page helpful? Yes No Submitting... Thank you

Comments