• No results found

You can import using the Command Line Interface (Shell Mode).

Step 1 Enter NMSROOT/bin/dcrcli-u username.

Step 2 Enter the password corresponding to the username.

To import from file:

Enter impFile -useDefault=value fn=file name ft=file type cr=conflict resolution option

-useDefault—Denotes that the default credentials defined in a default credential set or default

credential set policies will be used if the import source does not have the required device credentials information.

The value of -useDefault could be policy configuration or a default credential set name. This

command line argument is optional.

If there are no policies configured or the credential set does not exist, then the devices will be added in DCR without any credentials.

See Listing the Default Credential Sets in Administration Guide for CiscoWorks LAN Management Solution 4.0for details.

for details on listing the available default credential set names.

If your import source does not have the required device credentials and if you have opted to use default credentials, the device information will be imported into DCR with the values of default credentials.

If your import source has the required device credentials and if you have opted to use default credentials, the device information will be imported into DCR with the values specified in the import source.

For example, if the default credential set has Standard and SNMP credentials and if your import source has only the Standard credentials, the device will be populated in DCR with the Standard credentials entered in your import source and SNMP credentials configured in the default credential set.

fn—File name

ft—File type; CSV and XML are the valid values.

cr—Conflict resolution option. dcr and file are the valid values. This option is not mandatory. If value is not specified, dcr is taken as default.

Example:

impFile -useDefault=policy configuration fn=/opt/CSCOpx/test.csv ft=csv

To import from Local NMS:

Enter impNms-useDefault=value nt=NMS type il=Installation location cr=conflict resolution

option

-useDefault—Denotes that the default credentials defined in a default credential set or default

credential set policies will be used if the import source does not have the required device credentials information.

See Listing the Default Credential Sets in Administration Guide for CiscoWorks LAN Management Solution 4.0for details.

If there are no policies configured or the credential set does not exist, then the devices will be added in DCR without any credentials.

nt—NMS type. Valid values are HPOV and Netview. See Installing and Data Migration With CiscoWorks LAN Management Solution 4.0 for information on supported Network Management Systems.

il—Installation location of the NMS Examples:

impNms -useDefault=policy configuration nt=HPOV il=/opt/OV (on Solaris)

impNms -useDefault=set1 nt=HPOV il=C:\Program Files\HP OpenView (on Windows)

impNms -useDefault=policy configuration nt=Netview il=/usr/OV (on Solaris)

impNms -useDefault=set1 nt=Netview il=C:\usr\OV (on Windows)

To import from Remote NMS:

Enter impRNms-useDefault=value nt=NMS type hn=hostname un=Remote UserName il=Installation location ot=OS Type cr=conflict resolution option

-useDefault—Denotes that the default credentials defined in a default credential set or default

credential set policies will be used if the import source does not have the required device credentials information.

The value of -useDefault could be policy configuration or a default credential set name.

This command line argument is optional.

See Listing the Default Credential Sets in Administration Guide for CiscoWorks LAN Management Solution 4.0for details.

If there are no policies configured or the credential set does not exist, then the devices will be added in DCR without any credentials.

nt — NMS type. Valid values are HPOV and Netview. See Installing and Data Migration With CiscoWorks LAN Management Solution 4.0 for information on supported Network Management Systems.

hn — Remote Hostname or IP address un — Remote Username

il — Installation location of the NMS

ot — OS Type; Valid values are HPUX, AIX, or SOL

cr — Conflict resolution option. dcr and file are the valid values. This option is not mandatory. If value is not specified, dcr is taken as default.

The .rhosts file should be modified to allow this user to login to NMS Server without any password. Examples:

impRNms -useDefault=policy configuration nt=HPOV hn=1.2.3.4 un=root il=/opt/OV ot=SOL

To import from ACS:

In ACS mode, a device with valid IP address only will be imported to DCR. If a device has IP address of the form 10.10.1.*, in ACS, then it will not be imported.

Enter impACS-useDefault=value | Policy Configuration ot=OS Type hn=ACS Server Name or IP

address un=ACS admin username pwd=ACS admin password prt=port number proto=Protocol cr=conflict resolution option gr=Import devices along with group

-useDefault—Denotes that the default credentials defined in a default credential set or default

credential set policies will be used if the import source does not have the required device credentials information.

The value of -useDefault could be policy configuration or a default credential set name.

This command line argument is optional.

See Listing the Default Credential Sets in Administration Guide for CiscoWorks LAN Management Solution 4.0for details.

If there are no policies configured or the credential set does not exist, then the devices will be added in DCR without any credentials.

ot— Operating System Type

hn — ACS Server Name or IP address un — ACS admin username

pwd— ACS admin password prt — Port number. Default is 2002.

proto — Protocol type. Valid values are http and https.

cr—Conflict resolution option. dcr and file are the valid values. This option is not mandatory. If value is not specified, dcr is taken as default.

gr—Import devices along with group from ACS. Example:

impAcs -useDefault=policy configuration ot=WIN2K hn=1.2.3.4 un=acsadmin pwd=acspwd prt=2002 proto=http

The option cr is used to prioritize the selection and resolve conflicts during import. If dcr is specified

as conflict resolution option, credentials for the device, stored in DCR will be used.

This is taken as default if cr is not specified. If import source (file or Nms or RNms or ACS) is specified as conflict resolution option, credentials from the import source will be used, and credentials in DCR will be modified.

You can also import using the Command Line Interface (Batch Mode): To import from file:

Step 1 Go to NMSROOT/bin

Step 2 Enter dcrcli -u Username cmd=impFile-useDefault=value fn=file name ft=file type cr=conflict

resolution option

To import from Local NMS:

Step 1 Go to NMSROOT/bin

Step 2 Enter dcrcli -u Username cmd=impNms-useDefault=value nt=NMS type il=Installation location cr=conflict resolution

To import from Remote NMS:

Step 1 Go to NMSROOT/bin

Step 2 Enter dcrcli -u Username cmd=impRNms -useDefault=value nt=NMS type hn=hostname un=Remote

Username cr=conflict resolution

To import from ACS:

Step 1 Go to NMSROOT/bin

Step 2 Enter dcrcli -u Username cmd=impAcs-useDefault=value | Policy Configuration ot=OS Type hn=ACS Server Name or IP address un=ACS admin username pwd=ACS admin password prt=port