Script variables


Script arguments can contain the following variables that are substituted with actual values before being passed to the scripts.

Variable

Value

$agentName

The agent name.

$objectName

The object name.

$objectParent

The parent object. You can use $objectParent as a variable prefix for other variables (note that the "$" must only be used on "$objectParent", subsequent keywords need to be appended without the "$"). For example, to get the parent object's name you could use $objectParent.objectName.

Note that $objectState and $objectIsMonitored are not available in the parent scope and return the unknown values. You can repeat $objectParent to walk up the object hierarchy. For example $objectParent.objectParent.objectName.

$objectType

The type of the object.

$objectNamePath

The instance path hierarchy delimited by an exclamation point.

$objectTypePath

The type path hierarchy delimited by an exclamation point.

$objectState
  • "-1" - unknown
  • "1" - added
  • "2" - confirmed
  • "4" - not found
  • "8" - depreciated
  • "16" - deleted
$objectIsMonitored
  • "unknown"
  • "true"
  • "false"
$userName

Configured script user name.

$password

Configured script password.

 

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