sortColumn = DRV_SORT_LOC; $sortCriteria->ascending = true; // For filtering the drives $llView = "All Logical Libraries"; $enclView = "All Enclosures"; // for displaying message box $errorCode = 0; $displayMessage = 0; // get all the information from the library we will need $drives = get_all_drives($user, $sortCriteria); $counts = get_library_summary_info($user); $loglibs = get_logical_libraries($user, $sortCriteria); $enclosures = get_chassis($user); // If a post, then this is a return from an operation // retrieve the results of the operation if ($_SERVER['REQUEST_METHOD'] == "POST") { $llView = $_REQUEST["llView"]; $enclView = $_REQUEST["enclView"]; $errorCode = $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; } // get the counts needed to display the main table $numEmptyIOs = $counts->avail_mailbox_count; $numCleans = $counts->full_cleaning_slot_count; $numRows = count($drives); $numlogLibs = count($loglibs); $numEnclosures = count($enclosures); // determine the attributes for the div that handles displaying and scrolling // for the main data table $divAttributes = calculateDivAttributes($llView, $enclView, $drives, $numRows, MAX_ROWS, MAX_SIZE_DRIVE_LIST); // how many rows are being displayed after filters are being applied $numRowsDisplayed = $divAttributes['numDisplay']; ?> Drive Summary
0) { ?>
Error Message Image Error Message

Error code:
Informational Message Image

Operation Complete

Close Message

Drive Summary

Last refresh:

Empty I/O station slots:



Drives:
Select All Deselect All
libGuid); if ($drive->driveType == "LTO-4" || $drive->driveType == "LTO-5") { switch ($encryptData->method) { case 1: $method = "None"; break; case 2: $method = "System Managed Encryption"; break; case 3: $method = "Application Managed Encryption"; break; case 4: $method = "Library Managed Encryption"; break; case 5: $method = "Custom"; break; default: break; } } else { $method = "N/A"; } // store the first part of the enclosure (chassis) location value $chass = $drive->location[0]; // if the enclosure (chassis) location is negative, append the numeric value to the // '-' to identify the enclosure if (!strcmp($chass, '-')) { $chass = $drive->location[0].$drive->location[1]; } // If this row item meets the filter requirements, build the row data // filter requirement: // The item is in both the selected logical library and the selected enclosure if ((!strcmp($llView, "All Logical Libraries") && !strcmp($enclView, "All Enclosures")) || (!strcmp($llView, $drive->name) && !strcmp($enclView, "All Enclosures")) || (!strcmp($llView, "All Logical Libraries") && !strcmp($enclView, $chass)) || (!strcmp($llView, $drive->name) && !strcmp($enclView, $chass))) { // store the drive info separated by ":" $driveInfo = "$drive->mediaTypeCode:$drive->location:$drive->name:$drive->driveType::$drive->status:$drive->logicalAddress"; // store drive id in sourceSelect id attribute // store logical library id in sourceSelect value attribute ?>
Select Location Click to Sort Descending Logical Library Click to Sort Ascending Media Type Click to Sort Ascending Volume Serial Number Click to Sort Ascending Element Address Click to Sort Ascending Encryption Method Click to Sort Ascending Status Click to Sort Ascending
location; ?> name; ?> driveType; ?> barcode) { print($drive->barcode); } else { print("N/A"); } ?> logicalAddress; ?> isReady) { if ($drive->status == "Online") { print("Online"); print(" "); print($drive->status); } else { print("Offline"); print(" "); print($drive->status); } } else { print("Not Ready"); print(" "); print("Not Ready"); } ?>
Total: Filtered: Displayed: Selected: 0