cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1001
Views
20
Helpful
8
Replies

What's the command to export the RME DB to a .csv file

getwithrob
Level 3
Level 3

In RME 3.5 you can run RME> Administration> Inventory> Export to File.

What's an equivalent command that can be executed from a CLI?

8 Replies 8

Joe Clarke
Cisco Employee
Cisco Employee

There is no equivalent command. cwexport is the closest, but it does not produce CSV output. That is why I wrote DEEsv. This capability is available, however, in LMS 2.5 and higher.

Please take a look at the output below. I think the syntax is correct... Let me know. Thanks-

**********************************************

johnsonr@nmscrme02 > ./cwexport inventory -u cwuserid -p cwpasswd -f /tmp/inventory.xml

* Warning * The -p option is highly insecure and *not* recommended.

* Warning * See online help for securing your password.

Exception caused in the result setcom.sybase.jdbc.SybSQLException: ASA Error -210: User 'DBA' has the row in 'MANAGED_DEV' locked

* Error * Could not create device list

Check if database is up and Running

* Error * You have specified an invalid View/wildcard in the payload file. Else, the View/wildcard contains invalid or unmanaged devices. Exiting.

johnsonr@nmscrme02 >

What you want is:

cwexport inventory -u cwuserid -p cwpasswd -device % -f /tmp/inventory.xml

However, it looks like you have a database problem, and one of the key tables needed to extract this information is locked by another thread. This may be a transient problem (i.e. running the command again will work), or you may have a stuck lock. In the latter case, you will need to restart dmgtd, then try to run cwexport again.

And to my previous post, I meant that I developed the DevExp tool as a CLI alternative to "Export to file". This provides a list of devices and their credentials.

is the syntax below correct?

./cwexport inventory -u cwuserid -p cwpasswd -device % -f /tmp/inventory.xml

Will tailing or browsing one of the log files give any hints to what the problem might be?

The previously mentioned problem about the table being locked is usually caused by IcServer or DIServer. You could enable debugging for those, then look at the daemons.log. For DEE-specific problems, look at the DEE.log.

How would I turn debugging on for IcServer and DIServer?

Assuming you're running that command from /opt/CSCOpx/bin, then yes, it's correct.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: