This slot is inaccessible in the current physical configuration.
";
$onClick.="
";
$onClick.="
";
$estimatedHeight=160;
}
else if ($slot!=false)
{
if ($hSlots[$address]!=false) //slot
{
if (($slot->slotType != "Drive") && ($slot->barcode == "") && (($slot->mediaType == 'LTO-1')||($slot->mediaType == 'LTO-2')||($slot->mediaType == 'LTO-3')||($slot->mediaType == 'LTO-4')))
{
$mediaType = 'LTO';
}
else if ($slot->slotType == "Drive")
{
$mediaType = $slot->driveType;
}
else
{
$mediaType = $slot->mediaType;
}
switch ($slot->slotType)
{
case "Storage" :
if ($slot->name == "Unassigned")
{
if ($slot->barcode)
{
$title="Unlicensed/Unassigned library slot : ".$address;
$onClick="
";
$onClick.="
Unlicensed/Unassigned Slot
";
$onClick.="
Location:
".$slot->location."
";
$onClick.="
Volume Serial Number:
".$slot->barcode."
";
$onClick.="
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
";
$onClick.="
";
$onClick.="
";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','#A7A7A7')";
$estimatedHeight=50;
}
break;
}
// error_log('$libraryEncryption['.$slot->name.'] = '.$libraryEncryption[$slot->name]);
// if the drive is encryption capable
if (($slot->driveType == 'LTO-4') || ($slot->mediaTypeCode > 2))
{
//error_log('Logical Libray NAME:::::::::::::::::::::::'.$slot->name);
switch ($libraryEncryption[$slot->name])
{
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:
$method = "None";
//if (!is_ibm_encryption_licensed($user))
{
$addText = "Buy the encryption license!";
}
break;
}
}
else
{
$method = "N/A";
}
foreach ($mediaList as $media)
{
if (strcmp($media->location, $address) == 0)
{
$cartridge = $media->encryption;
break;
}
}
switch ($cartridge)
{
case 1:
$cMethod = "Not Encrypted";
break;
case 2:
$cMethod = "Encrypted";
break;
default:
$cMethod = "N/A";
break;
}
case "Drive" :
$className="map_slot";
$colorIn="#7DA7D9";
$colorOut="#7DA7D9";
$blueShades[$blue_shade];
$onClick="
";
$onClick.="
Assigned Slot
";
$onClick.="
Type:
".$slot->slotType."
";
$onClick.="
Logical Library:
".$slot->name."
";
$onClick.="
Location:
".$slot->location."
";
$onClick.="
Volume Serial Number:
".$slot->barcode."
";
$onClick.="
MediaType:
".$mediaType."
";
$onClick.="
Element Address:
".$slot->logicalAddress."
";
if ($slot->barcode)
{
$onClick.="
Encryption:
".$cMethod."
";
}
$onClick.="
Encryption Method:
".$method."
";
$onClick.="
";
$onClick.="
";
$estimatedHeight=160;
break;
case "IE Station" :
case "IO Station" :
case "I/O Station" :
$blue_shade="";
$className="map_ieslot";
$theslottype = "I/O";
$info="I/O";
$colorIn="#6381C6";
$colorOut="#6381C6";
if (($slot->name=="Physical Library") && ($slot->barcode!=""))
{ $onClick="
";
$onClick.="
I/O Station Slot: Cartridge Assigned to Physical Library
";
$onClick.="
The cartridge at this location is assigned to the physical library.
This slot (".$address.") is either currently unlicensed and requires a feature license to use or it is unassigned and must be assigned to a logical library before it can be utilized.
";
$onClick.="
";
$onClick.="
";
*/
$onClick="
";
$onClick.="
I/O Station Slot: Unassigned Cartridge
";
$onClick.="
Unassigned cartridges in the I/O station may be assigned to a logical library or to the physical library using the Operator Panel.
";
//$onClick.="
Type:
I/O Station
";
//$onClick.="
Location:
".$slot->location."
";
//$onClick.="
Volume Serial Number:
".$slot->barcode."
";
//$onClick.="
MediaType:
".$mediaType."
";
//$onClick.="
Element Address:
".$slot->logicalAddress."
";
$onClick.="
";
$onClick.="
";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','#A7A7A7')";
$estimatedHeight=50;
}
}
if ($type =="drive")
{
}
if ($colorIn!="")
{
$onOver="changeBgColor('slot_".$hSlots[$address]->location."','".$colorIn."')";
$onOut="changeBgColor('slot_".$hSlots[$address]->location."','".$colorOut."')";
$setOnClick="setClickedCell('slot_".$address."','#ffffff','".$colorOut."')";
}
$classLibName="map_libname";
if ($libName=="")
$classLibName=$className."_info";
if ($onClick!="")
$onClick="showInfo('".$onClick."','slot_".$address."',".$estimatedHeight.");".$setOnClick;
$ret=array();
$ret["className"]=$className;
$ret["classNameInfo"]=$className."_info";
//blue shades for slots
if ($type=="slot")
{
if ($blue_shade!="")
{
$ret["classNameInfo"].="_".$blue_shade;
}
}
// end
$ret["classLibName"]=$classLibName;
$ret["info"]=$info;
//DEBUG
/*$len = strlen($slot->location);
if (substr($slot->location,$len-1) == '1')
{
$slot->name = "anyname1";
}
if (substr($slot->location,$len-1) == '2')
{
$slot->name = "anyname2";
}
if (substr($slot->location,$len-1) == '3')
{
$slot->name = "anyname3";
}
*/
$ret["libName"]=$libNames[$libraryIndex[$slot->name]]; //$libName;
$ret["drvHere"]=$drvHere;
$ret["onOver"]=$onOver;
$ret["onOut"]=$onOut;
$ret["onClick"]=$onClick;
$ret["title"]=$title;
$ret["blue_shade"]=$blue_shade;
return $ret;
}
function getChassCss($address)
{
global $hChass;
$className="map_chassslot";
$onClick="";
$chass=$hChass[$address];
$title="(".$chass->location.")"." ".$chass->model." | SN: ".$chass->serial." | ".$chass->manufacturer;
$onClick="
";
$onClick.="
Enclosure
";
$onClick.="
Manufacturer:
".$chass->manufacturer."
";
$onClick.="
Model:
".$chass->model."
";
$onClick.="
Serial Number:
".$chass->serial."
";
$onClick.="
";
$onClick.="
";
if ($onClick!="")
$onClick="showInfo('".$onClick."','slot_".$address."',100)";
$ret=array();
$ret["onClick"]=$onClick;
$ret["className"]=$className;
$ret["title"]=$title;
return $ret;
}
$lengend="";
function makeLegend()
{
global $legend;
global $namesFound;
global $libraryNames;
global $libNames;
global $numPartList;
$legend="
";
$legend.="
CLN
";
if (1)//($doorClosed == 1)
{
$legend.="
I/O
";
}
else
{
$legend.="
I/O: Door Open
";
}
$legend.="
Storage
";
$legend.="
Unlicensed/Unassigned
";
$legend.="
";
$legend.="
";
$legend.="
Logical Library Key:
";
$legend.="
";
for ($i=0;$i<$numPartList;$i++)
{
if (($i%5) == 0)
{
$legend.="
";
}
$legend.="
".$libNames[$i]."
";
$legend.="
- ".$libraryNames[$i]."
";
}
if ($numPartList < 5)
{
$legend.="
";
}
$legend.="
";
}
?>
Drive logs
// Get the time this page was loaded
$lastrefresh = time();
?>
Library Map
Last refresh: =date("l\, F j\, Y G:i:s T", $lastrefresh);?>
$curChass=1;
foreach($hChass as $enc)
{
?>
for ($x=1;$x<=3;$x++)
{
?>
for ($y=1;$y<=$numSlots[$enc->location][$x];$y++)
{
$address=$enc->location.",".$x.",".$y;
$cssInfo=getSlotCss($address,"slot");
$slot_info=$address;
if ($cssInfo["classNameInfo"]=="map_inaccessibleslot_info")
$slot_info="";
?>
for ($y=1;$y<=$numSlots[$enc->location][$x];$y++)
{
$address=$enc->location.",".$x.",".$y;
$cssInfo=getSlotCss($address,"slot");
$slot_info=$address;
if ($cssInfo["classNameInfo"]=="map_inaccessibleslot_info")
$slot_info="";
?>