Using DCR Features Through CLI
Editing Devices Using dcrcli
Step 1
Step 2
Step 3
Listing the Attributes
Step 1
Step 2
Step 3
User Guide for CiscoWorks Common Services
4-40
To modify devices using dcrcli
Enter NMSROOT
/bin/dcrcli
Enter the password.
Enter
value
mod id=
ip=
Enter the Device ID (id).
Enter either the IP Address (ip), Hostname (hn), or Device Identity (di).
Enter the Display Name (dn) and the Attribute name (-a attname). You can add
multiple attributes. For example,
mod id=54341 ip=2.2.2.2 dn=cisco.com -a display_name=new_name
To view the list of all attributes:
Enter NMSROOT
/bin/dcrcli
Enter the password corresponding to the username
Enter
lsattr
This lists Attribute Name, Attribute Description, and Attribute Type.
Attribute Type is a constant that identifies an Attribute Name.
Example:
Attribute Type 1072 identifies the attribute name display_name
Chapter 4
-u username.
value
value
value
hn=
di=
-u username.
Managing Device and Credentials
value
dn=
-a attname=
78-16571-01
value