pbcall

The pbcall program is used for two purposes. To test, on the local machine, what a given function call would do, and to allow an Endpoint Privilege Management for Unix and Linux policy language function to be executed from the command line.

Syntax

pbcall –policy-function-name args …

Arguments

-policy-function-name Required. The name of the policy function.
args Optional. The arguments to the function.

Files

None

Using the Endpoint Privilege Management for Unix and Linux stat() function:
pbcall –stat /etc

This command returns, on the screen, the results of a call to the Endpoint Privilege Management for Unix and Linux stat call. Using this program from an Endpoint Privilege Management for Unix and Linux session, you can execute a command such as:

list = system("/usr/local/bin/pbrun –h "+submithost+
" /usr/local/bin/pbcall –stat /etc");
statresult = split(list,",");

This command gives the same results as:

statresult = stat("/etc")

except that it is executed on the local machine as opposed to the policy server host.

Multiple Endpoint Privilege Management for Unix and Linux functions can be called at the one time:

pbcall –gethome user1 –getname user1

The output is put on different lines.

Lists need to be specified within quotation marks. For example:

pbcall –search "{a,b,c}" a

Strings can be quoted using single quotation marks or double quotation marks.