02-25-2008 08:20 PM
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.
Solved! Go to Solution.
02-25-2008 08:47 PM
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
02-25-2008 08:47 PM
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
02-25-2008 08:52 PM
Thanks Joe.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide