Exporting CiscoWorks RME data
This topic provides instructions on creating an import source file that contains CiscoWorks RME data to be used during a device import task.
Do the following to export CiscoWorks RME data and generate the source file:
- Determine where CiscoWorks install directory is located on the CiscoWorks server.
- Run the following CiscoWorks export program from the installDirectory/CSCOpx/bin directory:
- RME releases earlier than 4.0: cwexport inventory -u <username> -p password -f <filename> -continue
RME releases 4.0 and later: cwcli export inventory -device % -u <username> -p <password> -f <filename>
username and password reference a CiscoWorks login account that has access to export
filename represents the file that should then be used for the CiscoWorks DEE import
Move the exported file to the import directory on the TrueSight Network Automation application server (for example, D:\BCA-Networks-Data\import\expFile).
As an example of how to perform this task, the following is a DEE file that contains two devices (Device-A and Device-B):
{{<?xml version="1.0" encoding='ISO-8859-1'?>}}{{<InvDetails>}}{{<SchemaInfo>}}{{<RMEServer>...</RMEServer>}}{{<CreatedAt>....</CreatedAt>}}{{</SchemaInfo>}}{{<RMEPlatform>}}{{...}}{{<InstanceName>Device-A</InstanceName>}}{{...}}{{</RMEPlatform>}}{{<RMEPlatform>}}{{...}}{{<InstanceName>Device-B</InstanceName>}}{{...}}{{</RMEPlatform>}}{{</InvDetails>}}The <RMEPlatform> tags encapsulate the data for a particular device being imported. The preceding example could be broken down into two files as follows:
{{<?xml version="1.0" encoding='ISO-8859-1'?>}}{{<InvDetails>}}{{<SchemaInfo>}}{{<RMEServer>...</RMEServer>}}{{<CreatedAt>....</CreatedAt>}}{{</SchemaInfo>}}{{<RMEPlatform>}}{{...}}{{<InstanceName>Device-A</InstanceName>}}{{...}}{{</RMEPlatform>}}{{</InvDetails>}}{{}}{{<?xml version="1.0" encoding='ISO-8859-1'?>}}{{<InvDetails>}}{{<SchemaInfo>}}{{<RMEServer>...</RMEServer>}}{{<CreatedAt>....</CreatedAt>}}{{</SchemaInfo>}}{{<RMEPlatform>}}{{...}}{{<InstanceName>Device-B</InstanceName>}}{{...}}{{</RMEPlatform>}}{{</InvDetails>}}