registerFunction("doChange"); session_start(); $user = $_SESSION['user']; $in_xAjax = false; $xAjax_objResponse; include('IOB_inc.htm'); include('common_admin_inc.htm'); class Encryption { var $libGuid; var $method; var $policy; var $density; var $key_path; var $method_not_used; var $policy_not_used; function Encryption( $libGuid, $method, $policy, $density, $key_path, $method_not_used, $policy_not_used) { $this->libGuid = $libGuid; $this->method = $method; $this->policy = $policy; $this->density = $density; $this->key_path = $key_path; $this->method_not_used = $method_not_used; $this->policy_not_used = $policy_not_used; } }; // The php function that is called from JavaScript tough xAjax when the user selects a Blade. function getEKMPartitions($aBladeID) { global $in_xAjax; $user = $_SESSION['user']; $xAjax_objResponse = new xajaxResponse(); /// $in_xAjax = true; return $xAjax_objResponse; } $xajax->processRequest(); /*******************************************************************************************/ // Post needs this data also $libs = get_logical_libraries($user, $sortCriteria); $lib_count = count($libs); // Handle the progress screen if opened and set the NEW data if ($_SERVER[REQUEST_METHOD] == "POST") { $operationInProgress = true; $status = new ReturnStatus(); error_log("POST = ". print_r($_POST, true) ); foreach( $libs as $lib ) { // Contruct the _POST variables to look for. $theMeth = "selMethod".$lib->name; $thePol = "selPolicy".$lib->name; if( isset( $_POST[$theMeth] ) ) { $method = $_POST[$theMeth]; if( isset( $_POST[$thePol] ) ) $policy = $_POST[$thePol]; else $policy = 0; // REQ-Change - undo anything done above with policy if( $method == 4 ) // Library Managed $policy = 2; else $policy = 0; error_log( "Setting encryption for library ". $lib->name. " | Method = ". $method ." | Policy = ". $policy ); $encypt = new Encryption( $lib->guid, (int)$method, (int)$policy, -1, -1, -1, -1); set_partition_enryption( $user, $encypt ); } } print $status->out(); return; } ?> printJavascript(); ?> Setup Encryption Key Management
Setup - Partition Encryption
Set up the Encryption for library partitions.

Note: Not all tape drives and media support encryption. See the online help or user's guide for more information.
LTO-4 SCSI drives do not support encryption. Partitions containing LTO-4 SCSI drives can still be enabled for encryption, but encryption will not be performed on such SCSI drives.

Encryption key management must be licensed to configure or use it.
Please click here to add a license key.

Partition: Encryption Method:  
'None', 2=>'System managed', 3=>'Application Managed', 4=>'Library Managed', 5=>'Custom Method', 255=>'N/A' ); // $Policies = array( 0=>'No Policy', 1=>'Don’t encrypt if no policy', 2=>'Encrypt if no policy', 2=>'Encrypt All (default)', // 3=>'Policy Required', 4=>'Never encrypt (policy override)', 5=>'Always encrypt (policy override)', // 6=>'Selective encryption (internal label)', 7=>'Encrypt All(Internal Label)', 255=>'N/A' ); // REQ-Change $Methods = array( 1=>'None', 2=>'System Managed', 3=>'Application Managed', 4=>'Library Managed' ); $Methods = array( 3=>'Allow Application Managed', 4=>'Enable Library Managed' ); $Policies = array( 2=>'Encrypt All (default)', 6=>'Selective Encryption (internal label)', 7=>'Encrypt All(Internal Label)' ); foreach($libs as $lib) { // First see if this LL even has a drive that supports Encryption. $theMethod = 255; // N/A $thePolicy = 255; // N/A $encryption = get_partition_enryption( $user, $lib->guid ); error_log("stored encrypt values: ".print_r($encryption, true)); $drives = get_all_drives_by_library($user, $lib->guid, $sortCriteria, (int)0,(int)0); foreach($drives as $drive ) { if((($drive->mediaType == 'LTO-4') || ($drive->mediaTypeCode > 3)) && ($drive->name == $lib->name)) { $theMethod = $encryption->method; if( $theMethod == 255 ) $theMethod = 3; // Convert to Application managed. $thePolicy = $encryption->policy; break; } } ?>
name ?>   Unsupported\n"; echo "\n"; // The longest one - so things line up } else { foreach( $Policies as $PolNum => $Policy ) { // Do the Auto element first. echo "\n"; } */ ?>