success); echo ""; } else if ($method == "updateDateTime") { $textDate = $_POST['txtDate']; $timeStamp = strtotime($textDate); $tvals = getdate($timeStamp); $dateTime = new DateTime($tvals['year'],$tvals['mon'],$tvals['mday'], $_POST['hour'],$_POST['minute'],"0", $_POST['ampm'],$_POST['daySavingsAdjust'], $_POST['timeZone'], $_POST[ 'useNTP' ], $_POST[ 'NTP_1' ], $_POST[ 'NTP_2' ]); update_date_and_time($user,$dateTime); echo ''; } else if ($method == "updateLibrary") { // Required to support the operation in progress dialog. $operationInProgress = true; $status = new ReturnStatus(); error_log("_POST = " . print_r($_POST, true) ); $currentCleaning = $_POST['configuredCleaningSize']; $requestedCleaning = $_POST['numCleaningSlots']; $currentMailbox = $_POST['configuredMailboxSize']; $requestedMailbox = $_POST['numMailboxSlots']; $partitionCount = $_POST['partitionCount']; $partitionNames = explode(":", $_POST['partitionNames'] ); if ($_POST['defaultConfiguration'] == 1) { if ($requestedCleaning > $currentCleaning || $requestedMailbox > $currentMailbox) { // we have to delete the current partition to make room for the new request $libs = get_logical_libraries($user, new SortCriteria()); delete_logical_library($user, $libs[0]->guid); // If we delete the partition, we'll have one at least $partitionCount = max(1, $partitionCount); } else { // If this is a default configuration and there were no changes made to // cleaning or mailbox, then we don't need to create a partition $partitionCount = 0; } } if ($requestedCleaning != $currentCleaning) { set_num_cleaning_slots($user, $requestedCleaning); } if ($requestedMailbox != $currentMailbox) { set_num_mailbox_slots($user, $requestedMailbox); } if ($partitionCount > 0) { error_log("--------------> partitionNames = ". print_r($partitionNames, true) ); error_log("--------------> Calling auto_partition($user, $partitionCount, $partitionNames );" ); auto_partition($user, $partitionCount, $partitionNames ); } print $status->out(); } return; } // Get the currect logical Library Names so we can match the ones the user picks so we do not allow dups. $libs = get_logical_libraries($user, $sortCriteria); $lib_count = count($libs); $libNames = array(); foreach ($libs as $lib) { $libNames[] = $lib->name; } $counts = get_all_resource_counts($user); $configuredCleaningSize = get_num_cleaning_slots($user); $configuredMailboxSize = get_num_mailbox_slots($user); //$maxMailboxSize = get_current_max_mailbox_size($user); $mailboxSizes = get_allowed_mailbox_sizes($user); $cleaningSizes = get_allowed_cleaning_sizes($user); $defaultConfiguration = 0; if ($counts->partition_count == 1 && $counts->media_count == 0 && $counts->mailbox_count == 6 && $counts->unassigned_slot_count == 0 && $counts->full_mailbox_count == 0) { $defaultConfiguration = 1; $counts->partition_count = 0; $counts->unassigned_drive_count = $counts->drive_count; $counts->unassigned_slot_count = $counts->slot_count; //$maxMailboxSize = $mailboxSizes[count($mailboxSizes) - 1]; } $bNoPartitions = ($counts->partition_count==0 ? true: false); $bNoPartitions = true; // CR 63964 This has changed a couple times - so I'm leaving the code in and just forcing the new behavior. $mailboxIsEmpty = ($counts->full_mailbox_count==0 ? true: false); error_log(".................................................................mailboxIsEmpty = " . ($mailboxIsEmpty ? "TRUE" : "FALSE")); // Skip the auto partitioning if there are no resources $nextDivFromMailboxPage = "partition"; $backDivFromConfirmPage = "partition"; if ($counts->unassigned_slot_count == 0 || $counts->unassigned_drive_count == 0) { $nextDivFromMailboxPage = "noresources"; $backDivFromConfirmPage = "mailboxQuest"; } $features = get_licensed_features($user); $date = get_date_and_time($user); $useNTP = $date->ntp; $timezones = get_timezones($user); $hour = ltrim($date->hour,"0"); $minute = str_pad($date->minute,2,'0',STR_PAD_LEFT); $dateString = strftime("%d-%b-%Y", $date->timestamp); $currentTime = "$date->timezone:$dateString:$timeString"; // Get the avlible Drive types so we can chose the default number of partitions in Autocreate. $drives = get_all_drives($user, $sortCriteria); error_log("\n\n\nALL Drives = ". print_r($drives, true) ); $interfaceType = array(0,0,0,0,0,0); // "Unknown", "Fibre", "SCSI", "Serial", "Ethernet", "SAS" foreach($drives as $drive) { if( $drive->name == "Physical Library" ) { // It's an Avalible drive - log it's interface type // Just set this to 1 so we can use it to add up the number of Different interface types. // At this point we don't care how many of each there are. $interfaceType[$drive->interfaceTypeEnum] = 1; } } $AvalibleInterfaceType = $interfaceType[1] + $interfaceType[2] + $interfaceType[5]; // Only Fibre, SCSI and SAS for now error_log(" There were ". $AvalibleInterfaceType ." avalible InterfaceTypes found.\n\n\n\n"); ?> Setup Partition
Setup Wizard
The Setup Wizard walks you through the process of configuring the following basic parameters for your library:
  • Installing a license
  • Setting the date and time
  • Partitioning the physical library
To reconfigure these parameters or to configure other parameters directly, use the option listed under the Setup Menu.

 
Setup Wizard - Licensing
Your library is currently licensed for the following features and slots:

Did you purchase any optional features or additional storage slots that require licensing?

 

">
Setup Wizard - Licensing
Enter a new license key for added features.

License Key:

Setup Wizard - Licensing Confirmation
Your library now has the following licensed:


">
Setup Wizard - Date & Time
Note: If the NTP service is enabled, the system clock synchronization may take several minutes.
Enter the date & time:

Use NTP: >
Select time zone:



 
">
Setup Wizard - Cleaning Slot Configuration

You can configure up to four dedicated cleaning slots for the library. These slots house cleaning media and enable the use of the Autoclean feature. Cleaning slots cannot be used for storage.

Do you want to configure dedicated cleaning slots?


 
 
Setup Wizard - Cleaning Slot Configuration
Choose the number of designated cleaning slots for the library:

1 ? "$i slots" : "$i slot"; if ($i == 0) $cleaningLabel = "None (Autoclean will not be available)"; $checked = $configuredCleaningSize == $i ? "checked" : ""; ?>
onclick="updateCleaningSlotSize();" >

 
Setup Wizard - I/E Station Configuration
An I/E Station is a designated set of slots that you can use to put media in and out of the library without disrupting normal library operations. I/E Station slots cannot be used for storage.

Do you want to configure I/E Station slots?


 
Import Export slots can only be changed when all partitions have been deleted.
Please delete your Partitions and try the wizard again.
Import/Export slots can only be changed if the I/E station is empty.
Please remove any media and try to run the setup wizard again.
 
Setup Wizard - I/E Station Configuration
Choose the number of I/E Station slots for this library:

onclick="updateMailboxSize();" >

 
Setup Wizard - Partitioning
There are currently no resources available to create partitions. Use the Setup menu to modify or delete existing partitions and make resources available.

 
Setup Wizard - Partitioning
Partitioning is a way of dividing up the resources in the library so that a single library can be accessed by many different hosts. The number of partitions you can create is limited by the number of drives in your library. The maximum number of logical libraries you can divide your library into is equal to the number of drives installed in your library. The default setting is one logical library.

Do you want to divide the library into more than one partition?


 
 
Setup Wizard - Automatic Partitioning

Automatic partitioning assigns library resources proportionately among the partitions, grouping drives according to their interface type.
You can use Setup > Partitions to edit the Partitions created.


Enter the number of partitions you would like to create:

Available Drives: unassigned_drive_count ?>
Available Storage: unassigned_slot_count ?>
I/E Station Slots: mailbox_count ?>
Cleaning Slots: cleaning_count ?>
Partitions:

 
Setup Wizard - Automatic Partitioning Confirmation

The following partitions will be created.
You can modify the partition name; advanced level settings must be modified using the "Setup - Partitions" screen after finishing the setup wizard..

Partition:
 
Setup Wizard - Confirm Settings

Setup Wizard Changes are below: