Sun Microsystems Netra CP2500 Programming Manual page 20

For the solaris operating system
Table of Contents

Advertisement

System Watchdog Node Management Code Example (Continued)
CODE EXAMPLE 1-1
#define EM_INIT
#define EM_GETROOT
#define EM_GETPVALBYNAME
#define USAGE_STR
#define DETAILED_HELP
"Description:\n"\
"The operations include displaying status (-l), modifying the values (-m)\n"\
"and executing commands on the watchdog controller (-c).\n"\
"This utility must be run with super user permissions.\n"\
"OPTIONS\n"\
"
-l
list all the watchdog timer nodes.\n"\
"
Each Timer node is denoted as controller:timer\n"\
"
Example:\n"\
"
wdadm -l
"
wdadm -l c1:t1 c1:t2
"
"
"
-m
modify the timeout and action parameters for a timer node.\n"\
"
Example:\n"\
"
wdadm -m c1:t1 -t <timeout in ms> -a <action>\n"\
"
wdadm -m c1:t1 -t <timeout in ms>\n"\
"
wdadm -m c1:t1 -a <action>\n"\
"
Note: Before using this option, the controller must be\n"\
"
"
-c
Execute commands on the watchdog controller node\n"\
"
Commands supported are : arm, disarm\n"\
"
Example:\n"\
"
wdadm -c controller -o arm\n"\
"
arms the watchdog controller node called controller\n"
#define HEADER
#define PRINT_FORMAT
#define ILLEGAL_TIMEOUT -999
/* watchdog properties */
#define WATCHDOG_ACTION
#define WATCHDOG_TIMEOUT
#define WATCHDOG_STATUS
#define WATCHDOG_OP
#define PICL_WATCHDOG_CONTROLLER
6
Netra CP2500 Board Programming Guide • March 2007
1
2
3
"Usage:\n"\
"wdadm -l [<controller_name:timer_name>...]\n"\
"wdadm -m <controller_name:timer_name> [-t <timeout>]"\
" [-a action]]\n"\
"wdadm -c <controller_name> -o <op>\n"
"wdadm
- System Watchdog Controller Administration\n"\
c1
- controller name\n"\
t1
- timer name\n"\
disarmed (using -c option).\n"\
"NAME (controller:timer)\t\tSTATUS"\
"\t\tACTION\t\tTIMEOUT\n"
"\t%-10s\t%-10s\t%d"
- lists all the nodes\n"\
- lists c:t1 and c:t2 nodes\n"\
"WdAction"
"WdTimeout"
"State"
"WdOp"
"watchdog-controller"

Advertisement

Table of Contents
loading

Table of Contents