sortColumn = DRV_SORT_DEFAULT; $sortCriteria->ascending = true; $sortBy = "location"; // for displaying message box $errorCode = 0; $displayMessage = 0; //no $sortCriteria->sortColumn = SLOT_SORT_DEFAULT; $driveTypes = get_drive_types($user, $sortCriteria); $keys = array_keys($driveTypes); $tView = $driveTypes[$keys[0]]->hashCode; // If a post, then this is a return from an operation // retrieve the results of the operation if ($_SERVER['REQUEST_METHOD'] == "POST") { $errorCode = $_REQUEST["errorCode"]; $displayMessage = $_REQUEST["Message"]; $returnMessage = $_REQUEST["returnMessage"]; $View = $_REQUEST['typeView']; if ($View != "Default") { $tView = $View; } } $typeView = split(":", $tView); $drives = get_all_drives_by_type($user, (int)$typeView[0], (int)$typeView[1], $sortCriteria); // get the counts needed to display the main table $numRows = count($drives); /* defect 862 */ /* no longer an issue if ($displayMessage == 0) { for ($driveIndex = 0; $driveIndex < $numRows; $driveIndex++) { error_log("drive = ". print_r($drives[$driveIndex], true)); for ($d = 0; $d < $numRows; $d++) { if ($drives[$driveIndex]->firmwareLevel != $drives[$d]->firmwareLevel) { $displayMessage = 1; $warnMessage = 1; $warningMessage = "Drives running at different firmware levels may impact the library performance. It is recommended that the drives be updated to the same firmware level."; } } } }*/ // new code // sort the table data based on the sortBy value $oldi = sortDrives($drives, $sortBy); // determine the attributes for the div that handles displaying and scrolling // for the main data table if ($numRows > MAX_ROWS) { // make the table scrollable $divAttributes['divClass'] = "table-scroll"; $divAttributes['thClass'] = "table-noscroll"; $divAttributes['divHeight'] = MAX_SIZE_DRIVE_LIST; } else { // no scrolling needed $divAttributes['divClass'] = ""; $divAttributes['thClass'] = ""; $divAttributes['divHeight'] = ""; } ?> Update Drive Firmware
0) { ?>
Error Message Image Error Message

Error code:
Information Message Image Drives at Different Firmware Levels

Informational Message Image

Operation Complete

Close Message

View/Update Drive Firmware Levels

Last refresh:


Drives:
Select All Deselect All
interfaceType) { $driveInfo = "$drive->location:$drive->name:$drive->driveType:$drive->status:$drive->firmwareLevel:$drive->interfaceType"; // store drive id in sourceSelect id attribute // store logical library id in sourceSelect value attribute ?> barcode == "") { ?>
Select Location Serial Number Logical Library Type Interface Element Address Firmware Level Status
* location;?> serialNumber;?> name;?> driveType;?> interfaceType;?> logicalAddress;?> firmwareLevel;?> 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: Selected: 0
*Cannot be selected for firmware update, because a cartridge is in a drive.