Import existing servers

This utility Imports existing servers into Codar using a .csv file which contains server configuration details.

Usage guidelines

  1. Take a backup of old "codar-clis.jar" present in the folder <codar_home>\Tools\CodarCLI.
  2. Paste the new "codar-clis.jar" in the folder <codar_home>\Tools\CodarCLI.
  3. To add servers, type the command:

    codarexec.bat serverconfiguration addservers [-f filepath] [-s URL of the codar instance] [-u codar username] [-p codar password]

For general help, type codarexec.bat.

Important constraints on the .csv file structure:

  1. File size limit is 300 KB.
  2. The .csv file should contain the same headers in the similar order as follows: name,description,IPOrHostName,username,password,privateKey. Note that the headers are case-insensitive
  3. If a value is not given in any particular row for any corresponding headers , then it should be comma-separated.

Example: (In the example below, the "description" header in the first row has no actual description, so it is comma-seaprated).

name,description,IPOrHostName,username,password,privateKey

DevMachine,,10.2.12.1,admin,cloud,#atdjjsnsnsn$

QaMachine,Its a qamachine,10.2.12.1,admin,cloud,#atdjjsnsnsn$

4. name,IPOrHostName and username are mandatory header fields. Non -mandatory header fields should be comma separated.

Example:

NAME,,IPORHOSTNAME,USERNAME,,

abc,,10.2.12.1,admin,,

abc,,10.2.12.2,admin,,

5. Every row in the .csv file must have same number of fields equal to the number of headers.

Example templates for csv file:

1.
name,description,IPOrHostName,username,password,privateKey
DevMachine1,For Development,10.2.12.1,admin,cloud,#atdjjsnsnsn$
DevMachine2,For Development,10.2.12.2,admin,cloud,#atdjjsnsnsn1$
DevMachine3,For Development,10.2.12.3,admin,cloud,#atdjjsnsnsn2$
2.
name,description,IPOrHostName,username,password,privateKey
DevMachine1,,10.2.12.1,admin,,
DevMachine2,,10.2.12.2,admin,,