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

Help with cwcli

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?

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Help with cwcli

Try this instead:

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

2 REPLIES
Cisco Employee

Re: Help with cwcli

Try this instead:

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

New Member

Re: Help with cwcli

  • That did it, thank you.
203
Views
0
Helpful
2
Replies