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. And see here for current known issues.

New Member

cwcli inventory output

Hi

I need help about cwcli inventory output. The only output this commando generate is xml. How can I get the inventory dates in txt format?

LMS 2.5.1

RME 4.0.4

Thanks

4 REPLIES

Re: cwcli inventory output

this is the cmd the generates a CSV file of the 'Detailed Device Report':

NMSROOT/bin/cwcli invreport -u username -p userpassword -reportname "Detailed Device Report" -device % -file

the file must not exists and the casuser must have the right to write to the location.

If you have not specified the filename, the output is stored at the

following location:

NMSROOT\files\rme\jobs\inventory\reports\archives\reportname_timestamp.csv

Re: cwcli inventory output

this is the cmd the generates a CSV file of the 'Detailed Device Report':

NMSROOT/bin/cwcli invreport -u username -p userpassword -reportname "Detailed Device Report" -device % -file

the file must not exists and the casuser must have the right to write to the location.

If you have not specified the filename, the output is stored at the

following location:

NMSROOT\files\rme\jobs\inventory\reports\archives\reportname_timestamp.csv

New Member

Re: cwcli inventory output

Hi mermel

Thanks for your info, but I thought more at the commando "cwcli export inventory " this commando generate an .xml output, and I would like to export the information from .xml to txt file.

Cisco Employee

Re: cwcli inventory output

Translating the XML inventory to another format will require you to write either an XSL transformation for the XML, or a parser application which can process the XML, and turn it into the format you desire.

165
Views
0
Helpful
4
Replies
CreatePlease login to create content