Script variables
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 |
|
$objectIsMonitored |
|
$userName | Configured script user name. |
$password | Configured script password. |