Aci_Drivestatus3 - ADIC Server User Manual

Adic server user manual
Table of Contents

Advertisement

/* Get drive status information for some client */
int rc = 0;
int i = 0;
char *client = "SomeClient";
struct aci_drive_entry
*drive_entry[ACI_MAX_DRIVE_ENTRIES2];
if
) ))
{
}
else
{
for (i = 0; i < ACI_MAX_DRIVE_ENTRIES2; i++)
}
Figure 4-19

aci_drivestatus3

4-26
DAS ACI Functions
(( rc = aci_drivestatus2( client, drive_entry
aci_perror( "listd failed" );
printf("Drive status request for client:
%s successful\n",client );
{
if ( *drive_entry[i]->drive_name == '\0' )
break;
printf( "drive:%s amu drive:%s st:%s type:%c"
"sysid:%s client:%s volser:%s cleaning:%d"
"clean_count: %d\n",
drive_entry[i]->drive_name,
drive_entry[i]->amu_drive_name,
drive_entry[i]->drive_state ==
ACI_DRIVE_UP ? "UP" : "DOWN",
drive_entry[i]->type,
drive_entry[i]->system_id,
drive_entry[i]->clientname,
drive_entry[i]->volser,
drive_entry[i]->cleaning,
drive_entry[i]->clean_count );
}
Example of the aci_drivestatus2 Function
The aci_drivestatus3 function queries the physical status of up
to 250 drives. See Figure 4-20.
601626-B

Advertisement

Table of Contents
loading

Table of Contents