CSV Configurations
A very advanced configuration of HyLabs, which allows administrators to run the whole HyLabs system automatically using CSVs.
Using automatic CSV import, administrators can configure the whole HyLabs deployment.
Important
-
CSV specifications is changed in release HyWorks v3.4-SP1-HF2 with the introduction of new fields for Custom deployment and Non-persistent reservations.
-
Use appropriate CSV format as per the deployed version. Any mistakes in CSVs result in import failure.
HyLabs Configurations to be processed using CSVs
Following HyLabs Configurations can be processed using automatic import of CSVs:
-
Gold Master VMs: Gold Master VMs can be added into HyLabs and can be assigned to specific courses.
-
Courses: Courses can be processed using automatic import of Course specific CSVs
-
HyLabs users: Adding users from authorization server into HyLabs and association of users with specific courses.
-
Reservations: Defining reservations to be created using above specified HyLabs objects
-
Classification Rules: Enabling classified group creation using CSV import.
CSV Import Mechanism
HyWorks and especially HyLabs in HyWorks, enables administrators to completely manage infrastructure using CSVs.
Pre-Conditions for CSV Processing
-
Prerequisites for Gold Masters Import using CSV:
-
Appropriate Dedicated Session Provider (e.g., vCenter Server) is already added and reachable.
-
Appropriate Provisioning Profile is already configured for added session provider.
-
-
Prerequisites for HyLabs Users Import using CSV:
-
Appropriate authentication server is added and configured in the Authentication Domain of that organization.
-
Appropriate courses are already imported or created in HyLabs.
-
-
Prerequisites for Reservations’ Processing using CSV:
-
Gold Masters are imported into HyLabs.
-
Courses are defined into HyLabs with appropriate users.
-
HyLabs users (Incharges, Assistants and Participants) are imported and added into respective courses.
-
CSV Processing Order
Once all CSVs are added into CSV Import Profile, then the import will follow the given below order while processing the CSVs.
Course CSV > HyLabs users CSV > Classification Rules CSV > Gold Masters CSV > Reservations CSV
CSV Import Functioning
This section will provide detailed step by step information on CSV processing along with configurations required by administrators to deploy HyLabs using CSV import:
-
All pre-requisites to process different CSVs are in place (Refer section Pre-Conditions for CSV Processing)
-
The Root path (Directory on shared or local server) to be used for CSV processing is created and is consists of sub-folders (for different CSV files)
-
Administrator has created all CSV files as needed.
-
Configure CSV Import Profile as specified in section Configuring CSV Import Settings
-
As per CSV Import Profile, CSVs will be imported either manually or using Import Frequency (Hourly or daily). The CSVs are imported as per processing order mentioned above.
-
As soon as import is triggered (automatic or manual), following process will be used to process the records:
Important points and recommendations for CSV Import
-
A CSV once imported (pass or failed) will not be imported again unless it has some modifications.
-
CSV processing order is important as subsequent CSVs will use the configurations of objects being imported using previous CSVs.
- Thus, all associated CSVs should be configured in single CSV import profile as HyLabs uses specified sequence to import.
-
There is no order of picking CSV import profiles and thus, if different CSV files are configured in different profiles, the import may fail.
-
For importing large number of HyLabs users using CSV following recommendations should be followed:
-
Uncheck the checkbox “Fetch Users from Auth Server”; as selecting this option will fetch the details of all users from authentication server and thus may increase the traffic, time, and resource consumption to process CSV
-
Distinguished Name Pattern Field Specification: It must follow the below example without any exception: CN={DisplayName},OU=India,DC=accops,DC=local
-
Distinguished name pattern must be in the same format as specified above
-
Any difference between the CSV imported entry and same user being added or modified from portal will result in duplicate entries. An example should be, a user with actual DN as CN=john,OU=JP,dc=accops,dc=com
-
While importing CSV, the distinguished name pattern is specified as CN={DisplayName},OU=jp,DC=Accops,DC=com
-
Later same user is added into different course from HyLabs portal and then it fetched the correct DN from AD which is not exactly same as being imported from CSV and thus it will create two entries of same user with different DN
-
-
-
-
Some configurations which are not provided in CSV, are defined from Default Reservation Settings and thus all such configurations should be appropriately defined in Default Reservation Settings.
-
For fields accepting multiple values, multi-value separator can be defined in CSV Import Settings and the provided separator should not be used in CSV data. E.g., “;” can be used to separate multiple records inside a column.
-
For Controllers in HA, CSVs should be imported from shared location (accessible from both the servers, so that in failure conditions secondary controller can take over for import.
-
All CSVs should be defined correctly as per the provided specification in section CSV Specifications.
Configuring CSV Import Settings in HyLabs
CSV Settings page in HyLabs enables the configurations for CSV imports. To configure CSV Settings, follow the below steps:
-
Go to Configuration > CSV Settings.
-
Click Add CSV Settings.
-
Add CSV Import Profile wizard will get opened, having following tabs:
-
CSV Details, having following fields:
-
Active: To mark this CSV import settings as active or inactive.
-
Name: Unique name for CSV Import Settings
-
CSV For: This CSV import settings will be used to import what CSV files:
-
Course CSV: Select this option to enable automatic course processing using CSV import.
-
HyLabs Users CSV: Select this option to enable automatic processing of HyLabs users (Incharges, Assistants, Participants) using CSV import.
-
Gold Master CSV: Select this option to enable automatic processing of Gold Master VMs using CSV import.
-
Reservation CSV: Select this option to enable automatic reservation schedules processing using CSV import.
-
Classification Rules CSV: Select this option to enable automatic classification rules processing using CSV import.
-
-
Read CSV from Line Number: Specify the row number from where CSV data should be read. By default, it read from row number 1.
-
**Encoding Type: Type of encoding format to be used to read CSV.
-
Import Frequency: Defines the import schedule as when the CSV should be automatically imported, available options are:
-
Hourly: Choose this option to import CSVs every hour
-
Daily: Choose this option to import CSVs at a specific time of a day
-
-
Fetch Users from Auth Server: Select this checkbox, while importing HyLabs users, if user details i.e., E-mail address and Distinguished Name to be fetched from AD instead of CSV.
Note
Selecting this option will communicate with AD for each user record and thus may increase the traffic and processing time.
- Distinguished Name Pattern: Distinguished Name Pattern defines, the distinguished name to be imported into HyLabs when processing CSV. An example of correct DN pattern should be: CN={Display Name},OU=India,DC=accops,DC=local e.g., user john is being imported from CSV, then in HyLabs its entry will be created as per configured distinguished name pattern i.e., CN=john,OU=India,DC=accops,dc=local
Note
Distinguished name pattern must be in the same format as specified above.
Any difference between the CSV imported entry and same user being added or modified from portal will result in duplicate entries. An example should be, a user with actual DN as CN=john,OU=JP,dc=accops,dc=com
-
While importing CSV, the distinguished name pattern is specified as CN={UserName},OU=jp,DC=Accops,DC=com
-
Later same user is added into different course from HyLabs portal and then it fetched the correct DN from AD which is not exactly same as being imported from CSV and thus it will create two entries of same user with different DN
-
-
Click Next to move to the next tab CSV Location Details, having following configurations:
-
Import Location: Defining the type of location from where CSV files will be imported, default selected option is Folder Path
-
Root Path: Root folder in which specific folders for specific CSV types will be available.
-
Course Folder: The field will be displayed when Course is selected in first tab. Provide the name of the folder in which CSVs for Courses will be kept.
-
HyLabs Users Folder: The field will be displayed when HyLabs Users CSV is selected in first tab. Provide the name of the folder in which CSVs for Participants will be kept.
-
Gold Master Folder: The field will be displayed, when Gold Master CSV is selected in first tab. Provide the name of the folder in which CSVs for Gold Masters will be kept.
-
Reservation Folder: The field will be displayed when Reservation CSV is selected in first tab. Provide the name of the folder in which CSVs for Reservations will be kept.
-
Classification Rules CSV Folder: The field will be displayed, when Classification Rules option is selected in first tab. Provide the name of the folder in which CSV for Classification Rules will be kept.
-
Separator: Definition of default separator to be used. Default separator is comma (,)
- Column Separator: Default provided in comma. If needed enter any new separator for columns.
-
Multi-Value Separator: Default multi-value (Multiple entries in a single cell) separator is semi-colon ( ; ), enter a new separator is needs to be used.
-
-
Click Next to save CSV Import Settings.
-
CSV Import Settings will be saved, and all specified CSVs will start getting processed as per configured frequency.
Manually Initiating CSV Import
Reservation admins will also be able to manually be initiating the CSV import using the following process:
-
Create CSV import profile as specified in above section.
-
Select specific CSV Import Profile from the displayed list.
-
Click Import Now.
-
CSV import will be initiated, and success status will be shown. One CSV file from each folder will get processed, as per the configurations in the selected CSV Import Settings.
Important
If a particular folder contains more than one CSV file only one file will be processed at a time. Also the file is taken randomly and thus, administrator should maintain only single CSV file in each folder.
Editing CSV Import Settings
Administrator can also edit CSV Import Settings at a later point of time if any configurations get changed. To modify CSV Import Settings, follow the below steps:
-
Select CSV Import Profile from the displayed list.
-
Click Edit CSV Import Profile .
-
In CSV Details tab
-
Make CSV Import Settings as active/inactive. Marking any CSV Import Settings as inactive will stop automatic processing of CSVs for configured HyLabs objects.
-
Changing name of configuration
-
Modifying CSV For settings to enable/disable different CSVs import.
-
Change Import Frequency
-
-
In CSV Locations tab, following fields can be modified:
-
Root Path
-
Reservation Folder
-
Participants Folder
-
Gold Masters Folder
-
Courses folder
-
Column Separator
-
Multi-Value Separator
-
-
Click Save to save the settings.
Delete CSV Import Settings
-
Select CSV Import Profile from the displayed list.
-
Click Delete.
-
Confirm Action dialog will be displayed, click on Delete to continue deleting the profile.
-
CSV Import Profile will be deleted, and processing of configured CSVs will be stopped.
CSV Processing Information
Information on Dashboard
Once processed, the status of CSV processing will be displayed on reservation admin dashboard.
CSV Logs
The processed CSVs are kept at the following location and have the details of failures against the entries which are failed along with the reason of the failure.
Location: <HyWorks Installation Directory>\Service\RMSCSVImport
- Default Location: C:\Program Files (x86)\Accops\HyWorks\Service\RMSCSVImport
Example:
-
In the default location, a folder with CSV import profile name will be created.
-
Inside of that folder, 3 directories Processed, Processing and Fail are created.
- Additionally Reservations and Classification Rules directories will have subdirectory Success, which will hold all added and updated records.
-
To see records, which are failed, go to Fail directory.
-
Open the latest CSV file and verify the reason.
-
In below screenshot, an invalid course was specified using classroom name and thus the record was not processed for the HyLabs user.
-