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 22.1 for BMC Helix Operations Management. Open link

get()

Return the current value of a variable.

Syntax

get(variable)

Parameter

ParameterDefinition

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");


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

Comments