ADIC Server Server User Manual


 
4-26 DAS ACI Functions
601626-B
Figure 4-19 Example of the aci_drivestatus2 Function
aci_drivestatus3
The aci_drivestatus3 function queries the physical status of up
to 250 drives. See Figure 4-20.
/* 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 (( rc = aci_drivestatus2( client, drive_entry
) ))
{
aci_perror( "listd failed" );
}
else
{
printf("Drive status request for client:
%s successful\n",client );
for (i = 0; i < ACI_MAX_DRIVE_ENTRIES2; i++)
{
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 );
}
}