// [Fibre] => 0x1.115b60db.1d044f6f,3,4,0:0x1.115b60db.3e3f779d,4,4,0
// [numSCSI] => 0
// [numFibre] => 2
// [Fibre] => 0x1.115b60db.1d044f6f,10,4,0 :0x1.115b60db.3e3f779d,11,4,0: ,12,4,0
// changed values
$SCSI = $_POST['SCSI'];
$Fibre = $_POST['Fibre'];
$SAS = $_POST['SAS'];
$numSCSI = $_POST['numSCSI'];
$numFibre = $_POST['numFibre'];
$numSAS = $_POST['numSAS'];
if( (int)$numSCSI > 0 )
{
foreach(explode(":", $SCSI) as $drive)
{
$param = explode(",",$drive);
set_scsi_id($user,$param[0],(int)$param[1]);
}
}
if( (int)$numFibre > 0 )
{
error_log(" =========> Fibre = ". $Fibre );
foreach(explode(":",$Fibre) as $drive)
{
$param = explode(",",$drive);
// if the dp selected type does not match the current type do something!
if( $param[5] != $param[6])
{
// No need to check licensing here - we could not have gotten here if it was not licnesed.
// Delete all the OLD data path failover uses
error_log("DPF has Changed.... Setting the DPF license for the OLD drive while preserving others.".(int)$param[5].",".(int)$param[6] );
$DPSLicense = get_dps_license($user, $param[0]);
$return = submit_dps_license($user, $param[0], $DPSLicense->CPFEnabled, $DPSLicense->LMEnabled, $param[5], $DPSLicense->FIPSEnabled );
//error_log("submit_dps_license1 returned ". $return);
}
else
{
error_log("DPF did not change - Skipping all SNW licensing...");
}
error_log("set_fc_ids( user,". $param[0] .",". (int)$param[1] .",". (int)$param[2] .",". (int)$param[3]. ",". (int)$param[4]. ",-1,-1,". (int)$param[5].");");
set_fc_ids($user,$param[0],(int)$param[1], (int)$param[2], (int)$param[3], (int)$param[4], -1,-1, (int)$param[5]);
}
}
print $status->out();
return;
}
$drives = get_all_drives($user, $sortCriteria);
error_log( "driveSetup:: drives:\n" . print_r($drives, true) );
$_SESSION['drives'] = $drives;
// See if we have ONLY SAS Drives - if so change the default No Drives message.
// error_log("* * * * * * Looking for SAS only Drives");
// $changeMsg = true;
// foreach( $drives as $drive )
// {
// if( $drive->interfaceType != "SAS" )
// {
// error_log("The Drive Interface was: ". $drive->interfaceType);
// $changeMsg = false;
// break;
// }
// }
// See if DPS is licenced
$maxLicense = get_max_dps_drive_cnt($user);
error_log( "maxLicense = ". $maxLicense );
$usedDpsLicneses = 0;
$dpsLicenses= get_dps_licenses($user);
error_log("dpsLicenses = ". print_r($dpsLicenses,true) );
foreach( $dpsLicenses as $dpsL )
{
if( $dpsL->CPFEnabled == 1 || $dpsL->DPFEnabled == 1 || $dpsL->LMEnabled == 1 || $dpsL->FIPSEnabled == 1)
$usedDpsLicneses++;
}
?>
Setup Drives
Setup - Drive Settings
No drives available.
interfaceType == "Fibre" )
$numFibre++;
if( $drive->interfaceType == "SCSI" )
$numSCSI++;
if( $drive->interfaceType == "SAS" )
$numSAS++;
}
if( $numSAS )
$SasText = " View the settings on SAS drives.";
else
$SasText = "";
// Change the text at the top of the screen to match which lists are being showed.
if( $numSCSI > 0 && $numFibre > 0 ) // Both types
echo "";
else if ( $numSCSI > 0 ) // SCSI only
echo "";
else if ( $numFibre > 0 ) // Fibre only
echo "";
else
echo "";
$fibreNote = "The Actual Topology and Speed can take up to two minutes to be negotiated and returned from a fibre channel drive. The values will be unknown until negotiated.";
$sasNote = "SAS drive IDs are not user configurable.";
$dpsNote = " Data path failover is unavailable. You have insufficient Storage Networking licenses installed to cover all HP LTO-5 tape drives in the library.";
$note = "
Note:
";
// decide if we need to display a note about fibre or sas drives, or both
if ( $numFibre > 0 && $numSAS == 0)
$note .= $fibreNote;
else if ($numSAS > 0 && $numFibre == 0)
$note .= $sasNote;
else if ($numSAS > 0 && $numFibre > 0)
$note .= "$fibreNote $sasNote";
if( $maxLicense == 0 )
$note .= $dpsNote;
$note .= "
";
// If any notes, display them
if ( $numSAS > 0 && $numFibre > 0 )
echo "";
include('progressWin_inc.htm');
?>