pbcall | EPM-UL

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-nameRequired. The name of the policy function.
argsOptional. The arguments to the function.

Files

None

Example

Using the stat() function:

pbcall –stat /etc

This command returns, on the screen, the results of a call to the stat call. Using this program from an EPM-UL 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 EPM-UL 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.


©2003-2026 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.