Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Exporting the configuation from Ciscoworks LMS 2.5

Hi,

I want to pull out all the switch and router configuration from ciscoworks LMS2.5 to my local system.

I am accessing Ciscoworks from the client and I do not have access to the CW server.It is in a windows box.Please assist.

Regards

Siva

5 REPLIES
Cisco Employee

Re: Exporting the configuation from Ciscoworks LMS 2.5

Without any access to the CiscoWorks server, you are limited by what you can do. If you want all of the configs in XML format, you can use the cwcli servlet interface to get this:

http://server/rme/cwcli?command=cwcli%20export%20config%20-u%20admin%20-p%20YWRtaW4=%20-s%201%20-device%20%25

In this example, YWRtaW4= represents the Base64 encoded value of "admin" (i.e. the user admin's password). If you are using a different username and password, you must specify the username in place of "admin" and the Base64 encoded password in place of "YWRtaW4=".

The other option is to go to each device in the Version Tree under RME > Config Mgmt > Archive Mgmt, and copy the content, and paste it into a text file.

If you do get access to the server file system, you can access all of the latest copies of the configs (assuming the shadow directory is enabled) under NMSROOT\files\rme\dcma\shadow. It might be a good idea to share that directory secured, of course) so you can access the configs more easily from remote.

Cisco Employee

Re: Exporting the configuation from Ciscoworks LMS 2.5

Actually, it occurred to me that if you are really on LMS 2.5 (or 2.5.1) and not 2.6, then the above cwcli servlet command will not work. The ability to export all device configurations at once via the serlvet interface was not added until 2.6. For 2.5 and 2.5.1, you will have to do one device at a time by modifying the -device argument. For example:

http://server/rme/cwcli?command=cwcli%20export%20config%20-u%20admin%20-p%20YWRtaW4=%20-s%201%20-device%20nms-7206a

Will export the config for a device named nms-7206a in XML format.

New Member

Re: Exporting the configuation from Ciscoworks LMS 2.5

Does the "-s 1" flag really work from the servlet? I get this when I try to use it:

https://HOSTNAME/rme/cwcli?command=cwcli%20config%20export%20-u%20USERNAME%20-p%20BASE64ENCPWD%20-s%201%20-device%20DEVICENAME

SUMMARY

========

Failed: export: Invalid option: -s

Usage: cwcli config export -u userid -p password [-d debuglevel] [-m email][-l logfile] { -device displayname | -view name | -device displayName -view name |-ipaddress address}[-f filename] [-version number] [-xml ] [-input argumentFile] [-continue]

This is on LMS 2.6, CS 3.0.6, RME 4.0.6

/Olof

Cisco Employee

Re: Exporting the configuation from Ciscoworks LMS 2.5

You're doing the wrong command. Try "cwcli export config" instead of "cwcli config export".

New Member

Re: Exporting the configuation from Ciscoworks LMS 2.5

Doh! Thanks, I'm suitably embarrased :)

170
Views
5
Helpful
5
Replies