Skip to main content

Controlling auto discovery using scripts

You can write a series of scripts (in Python, command line batches or PSLang) to control the auto discovery process. For example, you can add your own commands to the end of auto discovery by creating and editing a file named, psupdate_post.psl. The auto discovery scripts must be located in <Program Files path>\Bravura Security\Bravura Security Fabric\<instance>\ script\.

The table below lists the PSLang scripts called by during auto discovery :

PSLang scripts called by psupdate

Script name

When it’s run

Start

psupdate_pre.psl

At the beginning of auto discovery before any tasks are performed.

Refreshing proxy servers

psupdate_updproxy_pre.psl

Before the updproxy program is executed.

psupdate_updproxy_post.psl

After the updproxy program has finished executing.

User listing

psupdate_list_pre.psl

Before any connector programs are executed.

psupdate_list_ < TARGET > _pre.psl

Before the corresponding <TARGET> connector is executed.

psupdate_listpertarget_pre.psl

After the target specific plugin is run, but before the connector runs.

psupdate_list_ < TARGET > _post.psl

After the corresponding <TARGET> connector has finished executing.

psupdate_listpertarget_post.psl

After the connector and the target specific plugin is run.

Updating the Bravura Security Fabric database

psupdate_loaddb_pre.psl

Before the iddiscover program is executed.

psupdate_loaddb_post.psl

After the iddiscover program has finished executing.

Checking inventory levels

psupdate_checkinv_pre.psl

Before the CHECK INVENTORY PLUGIN plugin is executed.

psupdate_checkinv_post.psl

After the CHECK INVENTORY PLUGIN plugin has finished executing.

Finish

psupdate_post.psl

Run at the end of auto discovery after all tasks are complete.

RBAC enforcement

psupdate_enforcement_list_pre.psl

Run before the rbacenforce utility makes the enforcement list.

psupdate_enforcement_list_post.psl

Run after the rbacenforce utility makes the enforcement list.

psupdate_enforcement_submit_pre.psl

Run before the rbacenforce utility submits the enforcement list.

psupdate_enforcement_submit_post.psl

Run after the rbacenforce utility submits the enforcement list.

Update instances

psupdate_updinst_pre.psl

Run before updinst is executed.

psupdate_updinst_post.psl

Run after updinst completes.

Each of the PSLang scripts listed above are executed by psupdate at the appropriate time.

The psupdate program also looks for similarly-named Python scripts (*.py) and Windows batch file (*.cmd). If the Python or Windows batch file exists, it is run before the PSLang script. For example, psupdate will run psupdate_list_pre.cmd before listing from target systems, if the file exists.

You can choose whether to use Python, PSLang scripts, Windows batch files, or a combination to customize the auto discovery process.

The psupdate_pre and psupdate_post scripts only run during a full auto discovery.