Help with cwcli

Answered Question
Apr 20th, 2010
User Badges:

Solaris 10, LMS3.2, RME4.3.0

I'm trying to export rme devices into an XML format and tried to use one of the command and it retured with the following error. I have more than 450 managed devices. What I could be doing wrong?

</code></p><p class="pBody"><code class="cExBold" style="font-weight: bold;">cwcli export inventory -u admin -p admin -f myinv.xml

cwcli export inventory -u admin -p admin -device device%

og4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/adm/CSCOpx/log/license.log (Permission denied)
        at java.io.FileOutputStream.openAppend(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
        at java.io.FileWriter.<init>(FileWriter.java:61)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:284)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:198)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:239)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:637)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:595)
        at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:522)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:412)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:309)
        at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:665)
        at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:80)
        at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:49)
        at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator.java:657)
        at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:373)
        at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:355)
        at com.cisco.nm.license.client.LicenseManager.<clinit>(LicenseManager.java:62)
        at com.cisco.nm.rmeng.common.VerifyRMELicense.validate(VerifyRMELicense.java:70)
        at com.cisco.nm.rmeng.cli.framework.CwCli.doStuff(CwCli.java:151)
        at com.cisco.nm.rmeng.cli.framework.CwCli.main(CwCli.java:283)

SUMMARY
========
        Failed: export: Could not obtain any devices.
Recommended Action:
1.Check whether devices are in RME.

Correct Answer by Joel Monge about 7 years 1 week ago

Try this instead:


./cwcli export inventory -u admin -p admin -device %

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joel Monge Tue, 04/20/2010 - 11:14
User Badges:
  • Cisco Employee,

Try this instead:


./cwcli export inventory -u admin -p admin -device %

Actions

This Discussion