// [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( $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."); $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