Configuring a blackout by using pconfig
Include the PATROL_CONFIG string at the start of the PATROL Agent Configuration File (.cfg ).
The following tasks explain how to use the pconfig command-line utility to configure the PATROL Agent configuration branch, /AgentSetup/Blackout, on UNIX and Windows.
To modify the configuration variable on UNIX
- Go to the PATROL Agent installation directory and run the following script:
- For Korn and Bourne shell: ../patrolrc.sh
- For C shell: source.patrolrc
Create the config_file.cfg file and edit the configuration variables as required.
To modify the value of the /AgentSetup/Blackout configuration variable, use the following format:PATROL_CONFIG "/AgentSetup/Blackout/<object>" = {REPLACE = "[TYPE; START_INFO; DURATION; INFO_MSG]"}- Save the config_file.cfg file.
Apply the changes made in the configuration variable to PATROL Agent, as follows:
pconfig -p <port> -host <hostName> <config_file.cfg>Obtain the latest configuration information, as follows:
pconfig +get -p <port> -host <hostName> | grep Blackout- Verify that the change is made to the configuration variable.
To modify the configuration variable on Windows
Create the config_file.cfg file and edit the configuration variables as required.
To modify the value of the /AgentSetup/Blackout configuration variable, use the following format:PATROL_CONFIG "/AgentSetup/Blackout/<object>" = {REPLACE = "[TYPE; START_INFO; DURATION; INFO_MSG]"}- Save the config_file.cfg file.
Apply the changes made in the configuration variable to PATROL Agent, as follows:
pconfig -p <port> -host <hostName> <config_file.cfg>Obtain the latest configuration information, as follows:
pconfig +get -p <port> -host <hostName> -save <config_file.cfg>- Verify that the change is made to the configuration variable.
Examples
The following examples illustrate the blackout configuration and settings: