cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
723
Views
10
Helpful
1
Replies

add/delete/modify devices in DCR from command line

cschaeffer
Level 1
Level 1

Is it possible to add or delete devices from the credentials repository outside of the CW gui? I know with cwcli I can do that with the RME database, but what about credentials?

1 Accepted Solution

Accepted Solutions

David Stanford
Cisco Employee
Cisco Employee

You can use dcrcli to do this:

Using Command Line Interface, you can add, delete, modify, bulk import , and export devices, and change the Device and Credential Repository (DCR) modes. You can also view the list of attributes that can be stored in DCR, and view the current DCR mode. The dcrcli utility provided with Common Services helps you perform these tasks via CLI.

# Enter NMSROOT/bin/dcrcli -u Username.

where NMSROOT is the CiscoWorks installation directory.

# Enter the password corresponding to the username

Have a look at the online help for all options for this command utility

View solution in original post

1 Reply 1

David Stanford
Cisco Employee
Cisco Employee

You can use dcrcli to do this:

Using Command Line Interface, you can add, delete, modify, bulk import , and export devices, and change the Device and Credential Repository (DCR) modes. You can also view the list of attributes that can be stored in DCR, and view the current DCR mode. The dcrcli utility provided with Common Services helps you perform these tasks via CLI.

# Enter NMSROOT/bin/dcrcli -u Username.

where NMSROOT is the CiscoWorks installation directory.

# Enter the password corresponding to the username

Have a look at the online help for all options for this command utility