サポートと今すぐチャット
サポートとのチャット

Privilege Manager for Unix 7.2.3 - Administration Guide

Introducing Privilege Manager for Unix Planning Deployment Installation and Configuration Upgrade Privilege Manager for Unix System Administration Managing Security Policy The Privilege Manager for Unix Security Policy Advanced Privilege Manager for Unix Configuration Administering Log and Keystroke Files InTrust Plug-in for Privilege Manager for Unix Troubleshooting Privilege Manager for Unix Policy File Components Privilege Manager for Unix Variables
Variable names Variable scope Global input variables Global output variables Global event log variables PM settings variables
Privilege Manager for Unix Flow Control Statements Privilege Manager for Unix Built-in Functions and Procedures
Environment functions Hash table functions Input and output functions LDAP functions LDAP API example List functions Miscellaneous functions Password functions Remote access functions String functions User information functions Authentication Services functions
Privilege Manager for Unix programs Installation Packages

Environment functions

These are the built-in environment functions available to use within the policy file.

Table 34: Environment functions
Name Description
getenv Return the value of an environment variable in runenv.
getlistsetting Return a list of the settings in the current policy server host settings file.
getnumericsetting Return the integer of the numeric setting in the current policy server host settings file.
getstringsetting Returns the value of a string setting in the current policy server host settings file.
getyesnosetting Returns the value of a yes/no setting in the current policy server host settings file.
keepenv Remove all except the specified variables from the runenv.

policygetenv

Set the value of the local variable to the value of the environment variable on the policy server.

policysetenv

Locally set the environment variable on the policy server host.

policyunsetenv

Locally unset an environment variable on the policy server.

setenv Set a runtime environment variable.

unsetenv

Remove an environment variable from the runtime environment

getenv

Syntax
string getenv ( string name [, string value] )
Description

getenv returns the value of the specified environment variable from the runenv variable.

Example
# print the value of HOME if defined, otherwise print "none" 
print(getenv("HOME", "none")); 
Related Topics

keepenv

setenv

unsetenv

getlistsetting

Syntax
list getlistsetting ( string <variable_name>)
Description

getlistsetting returns a list of the settings in the pmpolicy server host settings file. If the named config is not present in the policy server host setting file, it returns an empty list.

Example
# get the master list setting
submitMasterList(getlistsetting("submitmasters"));

getnumericsetting

Syntax
int getnumericsetting ( string <variable_name>)
Description

getnumericsetting returns the integer of the numeric setting in the pmpolicy server host settings file. If the named config is not present in the policy server host setting file, it returns zero.

Example
# get the value for master delay time
delayTime(getnumericsetting("masterdelay"));
関連ドキュメント

The document was helpful.

評価を選択

I easily found the information I needed.

評価を選択