Use the Command Line Interface feature to Import Credentials .

To import credentials (except for SNMPv3),

  1. Go to Accessing the Command Line Interface if you have not already done so. At the command line, you must enter the command to import credentials.  For example: importCredentials [snmpv3] <scope> <credFile> <update> 

  2. Now, enter the appropriate command to import credentials. Make sure the format and syntax is exactly as shown in the following example.

     

     <cmd> importCredentials global credentials.csv false

     

    NOTES:

    <scope> can be one of the following:

    • global - which is the exact string

    • Network name - which is the same network name in Network Configuration Manager

    If the network name contains any spaces or other special characters, you must enclose the name using double quotes ( "). For example, if the network name is Network A, then the network name would appear as "Network A" .

    If the file name contains special characters (including slashes and spaces) the file name must be enclosed within double quotes. For example, if the file name is Creds/new, then the file name would appear as "Creds/New".csv.

    The input file names should be quoted only if the file name has special characters - this applies to various commands.  

    Note: You must enter the Credential Name or the Device Name using double quotes inside the file. The different values need only to be separated by a comma. 

    <Update> can be one of the following:    

    • false - to create new credentials

    • true - to update existing credentials 

  3. Press Enter. The credential file provides the details in the following comma-separated values (csv) format. CREDENTIAL_NAME,CREDENTIAL_TYPE,COMMUNITY_STRING:RO,COMMUNITY_STRING:RW, ACCOUNT:USERNAME,ACCOUNT:PASSWORD,ACCOUNT:EXTERNAL AUTHENTICATION, ACCOUNT:PRIVILEGE_CREDENTIAL,PRIVILEGE:PASSWORD,UNIQUE,LENGTH,SECURE(priv. pass only)

      Here is the output you will see on executing this command: 

    Creating Community String:CS

    Creating Account:Acct-1

    Creating Privilege Password:PrivPass

  4. In a separate telnet window, verify your command results entering change directory ( cd) to $VOYENCE_HOME /logs, then pressing Enter. The log file to review is commandLineUtil.log. You can also go to the System Administrator Credential screen (in Network Configuration Manager to verify that the credentials have been imported.

  5. If you have completed importing credentials, and no further actions are needed, enter quit at the command line, then press Enter. You are now logged off of Network Configuration Manager.

To import SNMPV3 credentials

  1. Go to Accessing the Command Line Interface if you have not already done so. At the command line, you must enter the command to import credentials.  For example: importCredentials[snmpv3]<scope> <credFile> <update> 

  2. Now, enter the appropriate command to import credentials. Make sure the format and syntax is exactly as shown in the following example.

     cmd > importCredentials snmpv3 global credentials.csv false

    NOTES:

    <scope> can be one of the following:

    • global - which is the exact string

    • Network name - which is the same network name in Network Configuration Manager  

    If the network name contains any spaces or other special characters, you must enclose the name using double quotes ( "). For example, if the network name is Network A, then the network name would appear as "Network A" .

    If the file name contains special characters (including slashes and spaces) the file name must be enclosed within double quotes. For example, if the file name is Creds/new, then the file name would appear as "Creds/New".csv.

    Important Information!!:

    • You must enter the Credential Name or the Device Name using double quotes inside the file. The different values need only to be separated by a comma. 

    •  To import SNMPv3 credentials, this must be specified in the command. For example,

    importCredentials snmpv3 global credentials.csv false

    • SNMPv3 Credentials are imported using their own csv, and are not available as a part of the existing csv. This is because the SNMPv3 Credentials have a large set of parameters.

    <Update> can be one of the following:    

    • false - to create new credentials

    • true - to update existing credentials 

    Press Enter. The credential file provides the details in the following comma-separated values (csv) format. Example:

    Format of v3 csv (not mibs need to be separated by delimiter '*' ):

    #CREDENTIAL_NAME,SNMPV3:UserName,SNMPV3:SecLevel,SNMPV3:AuthProt,SNMPV3:PrivProt,

    SNMPV3:AuthPasswd,SNMPV3:PrivPasswd,SNMPV3:CtxName,SNMPV3:EngineId,

    SNMPV3:Group,SNMPV3:View,SNMPV3:ViewAccess,SNMPV3:IncMibs,SNMPV3:ExcMibs,

    UNIQUE,LENGTH

    testuser2,testuser,3,2,2,testuser,testuser,Test,Test,View,Group,2,abc*internet*internet,

    ,N,privuser3,privuser,3,2,2,privuser,privuser,null,null,null,null,3,,,N,

    testuser,testuser,3,2,2,testuser,testuser,,,GroupName,ViewName,2,

    internet*internet,,N, 

  3. In a separate telnet window, verify your command results entering change directory ( cd) to $VOYENCE_HOME /logs, then pressing Enter. The log file to review is commandLineUtil.log. You can also go to the System Administrator Credential screen (in Network Configuration Manager) to verify that the credentials have been imported.

  4. If you have completed importing credentials, and no further actions are needed, enter quit at the command line, then press Enter. You are now logged off of Network Configuration Manager.