cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1553
Views
0
Helpful
2
Replies

CWCLI not exporting inventory

songj
Level 1
Level 1

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?

1 Accepted Solution

Accepted Solutions

nhabib
Level 9
Level 9

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

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

View solution in original post

2 Replies 2

nhabib
Level 9
Level 9

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

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

Great! It's working now.

Thanks a lot.