Policy Environment

Policy environment functions and procedures are used to get, set, and unset the values of environment variables on the policy server host during the run of a policy. The following table summarizes these functions and procedures.

getlistsetting

Description

The getlistsetting() function returns the value of a list setting in the current policy server host settings file.

Syntax

getlistsetting (setting-name)

Arguments

NameDescription
setting-nameRequired. The list setting to retrieve.

Return values

A list that contains the value of the specified setting.

Example

submitMasterList = getlistsetting("submitmasters");

getnumericsetting

Description

The getnumericsetting() function returns the value of a numeric setting in the current policy server host settings file.

Syntax

getnumericsetting (setting-name)

Arguments

NameDescription
setting-nameRequired. The numeric setting to retrieve.

Return values

A number that contains the value of the specified setting.

Example

delayTime= getnumericsetting("masterdelay");

getstringsetting

Description

The getstringsetting() function returns the value of a string setting in the current policy server host settings file.

Syntax

getstringsetting (setting-name)

Arguments

NameDescription
setting-nameRequired. The string setting to retrieve.

Return values

A string that contains the value of the specified setting.

Example

policyDirectory = getstringsetting("policydir");

getyesnosetting

Description

The getyesnosetting() function returns the value of a yes/no setting in the current policy server host settings file.

Syntax

getyesnosetting (setting-name)

Arguments

NameDescription
setting-nameRequired. The yes/no setting to retrieve.

Return values

A number containing the value of the specified setting.

  • 0 False. A no value
  • 1 True. A yes value

Example

useRNS=getyesnosetting("registrynameservice");

©2003-2025 BeyondTrust Corporation. All Rights Reserved. Other trademarks identified on this page are owned by their respective owners. BeyondTrust is not a chartered bank or trust company, or depository institution. It is not authorized to accept deposits or trust accounts and is not licensed or regulated by any state or federal banking authority.