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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Domain name change for managed devices - LMS 2.6

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
Cisco Employee

Re: Domain name change for managed devices - LMS 2.6

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

2 REPLIES
Cisco Employee

Re: Domain name change for managed devices - LMS 2.6

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

New Member

Re: Domain name change for managed devices - LMS 2.6

Thanks Joe.

135
Views
0
Helpful
2
Replies
CreatePlease login to create content