Domain name change for managed devices - LMS 2.6

Answered Question
Feb 25th, 2008
User Badges:

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.

Correct Answer by Joe Clarke about 9 years 4 months ago

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Correct Answer
Joe Clarke Mon, 02/25/2008 - 20:47
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

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

Actions

This Discussion