The command you use is cpwd_admin.
When you run the command with no arguments, you will get usage output that explains how to do it.
Below example is from R80.10, refer to the CLI Reference Guide for your specific version for additional information.
[Expert@R8010GW:0]# cpwd_admin
Usage:
cpwd_admin start -name <application name> [-ctx <name>] -path <executable path> -command <command line> [-env <inherit|env_var=value>]* [-slp_timeout <timeout>] [-retry_limit <limit|u>]
cpwd_admin stop -name <application name> [-ctx <name>] [-path <executable path> -command <command line> [-env <inherit|env_var=value>]*]
cpwd_admin del -name <application name> [-ctx <name>]
cpwd_admin detach -name <application name> [-ctx <name>]
cpwd_admin getpid -name <application name> [-ctx <name>]
cpwd_admin list [-full] [-ctx <name>]
cpwd_admin flist [-full] [-ctx <name>]
cpwd_admin monitor_list
cpwd_admin kill
cpwd_admin exist
cpwd_admin config -p
cpwd_admin config -a <value to add=data value=data...>
cpwd_admin config -d <values to delete from WD configuration>
cpwd_admin config -r
Examples:
- Start CPD
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd"
- Start FWD
cpwd_admin start -name FWD -path "$FWDIR/bin/fwd" -command "fwd"
- Start FWM
cpwd_admin start -name FWM -path "$FWDIR/bin/fwm" -command "fwm"
- Start FG1
cpwd_admin start -name FGD50 -path "$FGDIR/bin/fgd50" -command "fgd50"
- Start SmartView Monitor
cpwd_admin start -name RTMD -path "$FWDIR/bin/rtmd" -command "rtmd"
- Start CPD without unlimited retries
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd" -retry_limit u
- Stop CPD with command
cpwd_admin stop -name CPD -path "$CPDIR/bin/cpd_admin" -command "cpd_admin stop"
- Stop FWD with command
cpwd_admin stop -name FWD -path "$FWDIR/bin/fw" -command "fw kill fwd"
- Delete FWD from list
cpwd_admin del -name FWD
- Stop tracking the FWD process
cpwd_admin detach -name FWD
- Kill FWD brutally
cpwd_admin stop -name FWD
- Stop FWM with command
cpwd_admin stop -name FWM -path "$FWDIR/bin/fw" -command "fw kill fwm"
- Print pid of CPD to screen
cpwd_admin getpid -name CPD
- Print status of processes to screen
cpwd_admin list
- Print status of processes to file
cpwd_admin flist
- Config cpWatchDog parameters
For config commands use the usage of parameter=value
cpwd_admin config -p : print cpWatchDog parameters
cpwd_admin config -a : add cpWatchDog parameters
cpwd_admin config -d : delete cpWatchDog parameters
cpwd_admin config -r : restore default cpWatchDog parameters
- Stop cpWatchDog
cpwd_admin kill
- Check if cpWatchDog is running
cpwd_admin exist
- Start active monitoring on this machine
cpwd_admin start_monitor
- Stop active monitoring on this machine
cpwd_admin stop_monitor