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-name | Required. The name of the policy function. |
| args | Optional. 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.
Updated 1 day ago