Exporting the configuation from Ciscoworks LMS 2.5

Unanswered Question
Apr 20th, 2007
User Badges:


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.



  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Joe Clarke Fri, 04/20/2007 - 17:15
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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:


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.

Joe Clarke Fri, 04/20/2007 - 17:18
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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:


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

OLOF SAMUELSSON Mon, 03/17/2008 - 03:25
User Badges:

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




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


Joe Clarke Mon, 03/17/2008 - 09:54
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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


This Discussion