Using the pconfig utility to modify PATROL Agent configuration variables
The PATROL Agent Configuration File (.cfg) has the following format:
- PATROL_CONFIG is required at the start of the configuration file.
- The file can have multiple configuration variables, but the last variable must not have a trailing comma.
Following is a sample configuration file:
PATROL_CONFIG
}
"Agent_Variable_1" = {REPLACE = "New_Value"},
"Agent_Variable_2" = {REPLACE = "New_Value"},
"Agent_Variable_3" = {REPLACE = "New_Value"},
"Agent_Variable_4" = {REPLACE = "New_Value"
The following tasks explain how to use the pconfig command line utility to modify the PATROL Agent configuration variables on UNIX and Windows.
To modify configuration variables 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.
For example, to modify the value of the /AgentSetup/historyRetentionPeriodconfiguration variable, use the following format:PATROL_CONFIG "/AgentSetup/historyRetentionPeriod" = {REPLACE = "7"}
- Save the config_file.cfg file.
Apply the changes made in the configuration variable to the PATROL Agent, as follows.
pconfig +Reload -p <port> -host <hostName> <config_file.cfg>
Verify that the change is made to the configuration variable.
pconfig +get -p <port> -host <hostName> | grep historyRetentionPeriod
To modify configuration variables on Windows
Create the config_file.cfg file and edit the configuration variables as required.
For example, to modify the value of the /AgentSetup/historyRetentionPeriodconfiguration variable, use the following format:PATROL_CONFIG "/AgentSetup/historyRetentionPeriod" = {REPLACE = "7"}
- Save the config_file.cfg file.
Apply the changes made in the configuration variable to the PATROL Agent, as follows:
pconfig +Reload -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.
Comments
Log in or register to comment.