Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

Domain name change for all devices!! all in one

Hi folks..

in LMS2.6, anybodies know how I can change the Domain Name (about identity device) for 3000 devices with one cli command o with while cli command script?

TKS

Leonardo

1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

Re: Domain name change for all devices!! all in one

You need to use the dcrcli tool to do this. You will need to export the current DCR device list, modify the domain name field (a simple replace all should do), then re-import the resulting list. The dcrcli commands will be:

NMSROOT/bin/dcrcli -u exp fn=dcr.csv ft=csv

NMSROOT/bin/dcrcli -u impFile fn=dcr.csv ft=csv cr=file

To avoid being prompted for a password, you will need to set the DCRCLIFILE environment variable first. The value points to a file that has the username and password of the specified above separated by a space. For example:

admin admin

6 REPLIES
Cisco Employee

Re: Domain name change for all devices!! all in one

You need to use the dcrcli tool to do this. You will need to export the current DCR device list, modify the domain name field (a simple replace all should do), then re-import the resulting list. The dcrcli commands will be:

NMSROOT/bin/dcrcli -u exp fn=dcr.csv ft=csv

NMSROOT/bin/dcrcli -u impFile fn=dcr.csv ft=csv cr=file

To avoid being prompted for a password, you will need to set the DCRCLIFILE environment variable first. The value points to a file that has the username and password of the specified above separated by a space. For example:

admin admin

Community Member

Re: Domain name change for all devices!! all in one

ok thanks.. I had suppose this solution

have a nice day

Leonard

Community Member

Re: Domain name change for all devices!! all in one

Hi Joe,

another question about this post:

I done this procedure, but now I need to syncronize the DCR db with the DFM db and the RME db.

This because the DCR have all questioned devices and the syslogs into RME doesn't appear.

Any ideas?

TKS a lot!!

Leonardo

Cisco Employee

Re: Domain name change for all devices!! all in one

Once DCR is updated, all of the other applications are automatically updates as well. You will have to run a re-discovery in DFM, and an inventory collection in RME if the devices have never been contacted before.

Community Member

Re: Domain name change for all devices!! all in one

Tks!

another question:

in the "Export" procedure, is it possible to export also the user defined fields?.

I exported data by DCR, but no UDR are in my csv file!

Have a nice day!

Leonardo

Cisco Employee

Re: Domain name change for all devices!! all in one

This is not done by default, but you can enable it. You have to modify the template XML file in order to do this. This is tricky, but detailed in the online help at

http://server/help/cmf/dcr_export.html. The user-defined field names start with user_defined_field_0, and go to user_defined_field_9.

131
Views
8
Helpful
6
Replies
CreatePlease to create content