Important This documentation space contains information about PATROL Agents when deployed in a TrueSight Operations Management environment. If you are a BMC Helix Operations Management user, see PATROL Agent for BMC Helix Operations Management 23.4.

get()


Return the current value of a variable.

Syntax

get(variable)

Parameter

Parameter

Definition

variable

name of the variable whose current value will be returned

Description

The get() function returns the current value of variable. If variable is a relative name and does not exist in the context of the PSL script, the get() function successively searches each ancestor's context until variable is found or until the search fails in the context of the computer.

Note

When you use the get() function to obtain the hostname, get(hostname), the hostname is returned in a different form depending on the operating system. The hostname value may be returned as all upper-case or all lower-case characters. 

Example

The following example returns the current status of RDB database Dev.

get ("/RDB/Dev/status");

 

 

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