cwcli inventory output

Unanswered Question
Jan 29th, 2008
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Martin Ermel Tue, 01/29/2008 - 05:44
User Badges:
  • Blue, 1500 points or more

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


Martin Ermel Tue, 01/29/2008 - 05:55
User Badges:
  • Blue, 1500 points or more

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


angelapreta Tue, 01/29/2008 - 06:44
User Badges:

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.


Joe Clarke Tue, 01/29/2008 - 10:28
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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.

Actions

This Discussion