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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

CWCLI not exporting inventory

I am not getting any luck on the cwcli export inventory command.

Here is the command I used:

# ./cwcli export inventory -u **** -f /tmp/inventory.out

This is the output:

<cwcli> * Warning * CWCLIFILE Environment variable not set.

Enter your password

SUMMARY

========

Failed: export: Could not obtain any devices.

Recommended Action:

1.Check whether devices are in RME.

I have checked the RME devices, there are hundreds of devices there.

Any idea?

  • Network Management
1 ACCEPTED SOLUTION

Accepted Solutions
Red

Re: CWCLI not exporting inventory

Try adding -device % at the end of the command. In other words:

/opt/CSCOpx/bin/cwcli export inventory -u **** -f /tmp/inventory.out -device %

2 REPLIES
Red

Re: CWCLI not exporting inventory

Try adding -device % at the end of the command. In other words:

/opt/CSCOpx/bin/cwcli export inventory -u **** -f /tmp/inventory.out -device %

New Member

Re: CWCLI not exporting inventory

Great! It's working now.

Thanks a lot.

312
Views
0
Helpful
2
Replies