Sun Microsystems Netra CP2500 Programming Manual page 34

For the solaris operating system
Table of Contents

Advertisement

System Watchdog Node Management Code Example (Continued)
CODE EXAMPLE 1-1
}
if (argc != optind) {
}
if (mflg) {
}
if (cflg) {
}
(void) picl_shutdown();
return (picl2errno(rc));
}
20
Netra CP2500 Board Programming Guide • March 2007
rc = print_wd_info(argc, argv, optind);
(void) picl_shutdown();
return (picl2errno(rc));
(void) picl_shutdown();
usage();
if ((aflg + tflg) < 1) {
/*
* m flag must be associated with atleast
* action or timeout
*/
(void) printf("wdadm: timeout and action values "
"are missing\n");
(void) picl_shutdown();
usage();
}
rc = set_wd_params(wd_name, (aflg ? action : NULL),
(tflg ? timeout : NULL));
if (oflg == 0) {
/* operation must be specified along with c option */
(void) printf("wdadm: operation argument is missing\n");
(void) picl_shutdown();
usage();
}
rc = control_wd(cntrl_name, op);

Advertisement

Table of Contents
loading

Table of Contents