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

Domain name change for managed devices - LMS 2.6

stevek1
Level 1
Level 1

Hi Folks,

Running LMS 2.6.

We are looking to change our internal network domain name. Can anyone advise if there is a scripted, batched or global type change I can implement within Common services to change the domain name of all devices in DCR. Managing 500 devices so if I have to do it all manually, it will be quite painful.

Cheers, SteveK.

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

You can export all the devices from DCR to a CSV file, then do a search and replace on that file, and re-import it back into DCR taking the file contents as the authoritative source. Of course, if the display names will also be changing, you might want to script this using dcrcli. The pseudo-code would be:

devices=`dcrcli -u admin cmd=lsids all`

foreach id ($devices)

dcrcli -u admin cmd=mod id=$id dn=new-display-name -a domain_name=new.domain.name

end

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

You can export all the devices from DCR to a CSV file, then do a search and replace on that file, and re-import it back into DCR taking the file contents as the authoritative source. Of course, if the display names will also be changing, you might want to script this using dcrcli. The pseudo-code would be:

devices=`dcrcli -u admin cmd=lsids all`

foreach id ($devices)

dcrcli -u admin cmd=mod id=$id dn=new-display-name -a domain_name=new.domain.name

end

Thanks Joe.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: