cpwd_admin config
Description Set cpwd
configuration parameters. When parameters are changed, these changes do not take effect until cpwd
has been stopped and restarted.
Syntax
> cpwd_admin config {-p|-a <value=data value=data...>|-d <value value...>|-r}
Parameter
|
Description
|
-p
|
Shows the cpwd parameters added using the config -a option.
|
-a
|
Add one or more monitoring parameters to the cpwd configuration.
|
-d
|
Delete one or more parameters from the cpwd configuration
|
-r
|
Restore the default cpwd parameters.
|
These are the descriptions of the <value>
parameters:
Value
|
Description
|
timeout (any value in seconds)
|
If rerun_mode=1 , how much time passes from process failure to rerun. The default is 60 seconds.
|
no_limit (any value in seconds)
|
Maximum number of times that cpwd will try to restart a process. The default is 5.
|
zero_timeout (any value in seconds)
|
After failing no_limit times to restart a process, cpwd will wait zero_timeout seconds before retrying. The default is 7200 seconds. Should be greater than timeout .
|
sleep_mode
|
- 1 - wait timeout
- 0 - ignore timeout. Rerun the process immediately
|
dbg_mode
|
- 1 - Accept pop-up error messages (with exit-code#0) displayed when a process terminates abruptly (Windows NT only).
- 0 -Do not receive pop-up error messages. This is useful if pop-up error messages freeze the machine. This is the default (Windows NT only).
|
rerun_mode
|
- 1 - Rerun a failed process. This is the default.
- 0 - Do not rerun a failed process. Perform only monitoring.
|
stop_timeout
|
The time in seconds that the cpwd will wait for a stop command to be completed. Default is 60 seconds.
|
reset_startups
|
Indicates the time in seconds that the cpwd waits after the process begins before it resets the startup_counter . Default value is 1 hour, meaning that an hour after the process begins its startup counter is reset to 0.
|
Example The following example shows two configuration parameters being changed:
timeout
to 120 seconds, and no_limit
to 10.
C:\>cpwd_admin config -p
WD doesn't have configuration parameters
C:\>cpwd_admin config -a timeout=120 no_limit=12
C:\>cpwd_admin config -p
WD Configuration parameters are:
timeout : 120
no_limit : 12cpwd_admin config -a timeout=120 no_limit=10
|
config -a
and cpwd_adminconfig -d
have no effect if cpwd
is running. They will affect cpwd
the next time it is run.