Sun Microsystems Netra CP2500 User Manual
Page 32
18
Netra CP2500 Board Programming Guide • March 2007
return (err);
}
int
main(int argc, char **argv)
{
int err;
int c, rc = 0;
char cntrl_name[PICL_CLASSNAMELEN_MAX];
char op[PICL_CLASSNAMELEN_MAX];
char wd_name[PICL_CLASSNAMELEN_MAX];
char timeout[PICL_CLASSNAMELEN_MAX];
char action[PICL_CLASSNAMELEN_MAX];
int cflg = 0, oflg = 0, lflg = 0;
int mflg = 0, tflg = 0, aflg = 0;
(void) setlocale(LC_ALL, "");
if ((prog = strrchr(argv[0], ’/’)) == NULL)
prog = argv[0];
else
prog++;
bzero(timeout, PICL_CLASSNAMELEN_MAX);
bzero(action, PICL_CLASSNAMELEN_MAX);
while ((c = getopt(argc, argv, "hlc:o:m:t:a:")) != EOF) {
switch (c) {
case ’l’:
lflg = 1;
break;
case ’c’:
cflg = 1;
(void) strlcpy(cntrl_name, optarg,
PICL_CLASSNAMELEN_MAX);
break;
case ’o’:
oflg = 1;
(void) strlcpy(op, optarg,
PICL_CLASSNAMELEN_MAX);
break;
case ’m’:
mflg = 1;
(void) strlcpy(wd_name, optarg,
PICL_CLASSNAMELEN_MAX);
break;
case ’t’:
CODE EXAMPLE 1-1
System Watchdog Node Management Code Example (Continued)
- 6.0005E+11 (333 pages)
- SOLARIS 10 (121 pages)
- Sun Adapter TCP (150 pages)
- Sun Fire X4150 (150 pages)
- Sun StorageTek 5800 (136 pages)
- Virtual Tape Library (292 pages)
- eWay JDBC/ODBC Adapter (133 pages)
- LSI22320-SR (48 pages)
- Ethernet MMF/UTP Adapter (122 pages)
- SunSwift 600MP series (28 pages)
- 2.0 (60 pages)
- FASTETHERNET 6U (106 pages)
- 1.0 (182 pages)
- GigaSwift Ethernet Adapter (126 pages)
- SUN BLADE 150 (20 pages)
- X1150A (106 pages)
- Sun Quad (62 pages)
- VIRTUALBOX VERSION 3.1.0_BETA2 (283 pages)
- Ethernet PCI-X Adapter (78 pages)
- Sun StorageTek SG-XPCIE2FCGBE-E-Z (54 pages)
- SG-XPCIE2FC-EM8-Z (56 pages)
- STOREDGE A5000 (2 pages)
- THE SUN 805-7945-10 (24 pages)
- Sun FastEthernet PCI Adapter 805-1759-10 (38 pages)
- Sun Fire X4150 Server (80 pages)
- 805-1797-10 (65 pages)
- Sun StorEdge 5210 NAS (100 pages)
- Sun StorEdge A5000 (2 pages)
- StorEdge 3900 Series (162 pages)
- Sun PCI High Speed Quad Port Serial Interface Adapter 819-1207-11 (64 pages)
- Sun Fire X4200 M2 (50 pages)
- StreamLine SL8500 (200 pages)
- Sun StorEdge T3 (88 pages)
- TIMBERWOLF 9740 (100 pages)
- eWay SAP BAPI (123 pages)
- Ethernet PCI Adapter (10 pages)
- StorageTek L40 (92 pages)
- Smart Cards (14 pages)
- SUN STORAGETEK VSM GUI (68 pages)
- Gigabit Ethernet MMF/UTP Adapter (122 pages)
- Sun Fire X4100 M2 (50 pages)
- PCI (50 pages)
- StorageTek HP LTO4 (38 pages)
- Netra CP32x0 (66 pages)