Exporting CiscoWorks RME data
Use the following process to create an import source file that contains CiscoWorks RME data, so that it is present and accessible to the server during an import task.
To generate the source file from CiscoWorks
- Determine where CiscoWorks install directory is located on the CiscoWorks server.
- Run the following CiscoWorks export program under installalDirory/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 filename to the server import directory (for example, D:\BCA-Networks-Data\import\filename).
If you get an OutOfMemory error during the import, break the input file into smaller pieces and import them individually.
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>}}