This post focuses on something that went right when making voice changes – shocking, I know! Yes, I did open two different TAC cases before making the changes, and yes, I did have to talk to TAC once during the actual change process, but in my book, that’s a total win.
My mission, which the sys admin gave me no choice but to accept, was to change the DNS ip addresses each voice server was pointing to. Now in sys admin world, this is hardly a big thing, but in voice world, no change is so small and insignificant that cannot be made intricately cumbersome to complete.
If you live in the CUCM 8.x universe, you are probably familiar now with the concept of a license mac. Changing any of the components that went into generating the precious license mac for the server invalidates all the pretty, pretty licenses you spent hours (likely even days) of your life trying to get in the first place. Changing primary DNS *is* one of those components in 8.x, so accepting your fate of needing to rehost licenses for ALL THE THINGS is step one in 8.x universe. Step two likely involves some heavy drinking.
But I currently live in 9.1.2 world – so some of this misery is offset. The CUCM and Unity Connection (UNCX) teams at some point decided this whole invalidating-the-licenses-for-minor-changes deal was a suckfest, at least I’m assuming that was their thought process, so with version 9.x, changing primary DNS server ip address for CUCM and UNCX servers doesn’t upset the license mac gods. Cisco IM&P now leverages CUCM licensing in 9.x, so no rehosting required for those servers, either.
UCCX, though. Of course UCCX still cares. Because UCCX.
So enough background and onto the process – which is pretty straightforward considering it’s voice stuffs. Standard disclaimer, I put this list together from various calls with TAC asking for documentation and clarification on the process for each application and what to expect. Your mileage may vary, don’t take my word for it, always have a good backup, and certainly don’t blow your voice servers up. Check the docs, check with TAC. Note that for each application, the changes are made on the publisher/primary server first, then any subscribers or secondary servers.
For CUCM and UNCX servers:
-In the GUI of the License server, remove the CUCM or UNCX server instance from the License server. Yes, I know the trepidation of deleting anything from a voice server – especially involving licensing, but it is strongly recommended to do so. If you forget or don’t do this, PROBABLY nothing will happen, according to my conversations with TAC. But no way I’m taking that chance, you decide for yourself…
-At the CLI of the server, issue the following commands:
set network dns primary X.X.X.X
set network dns secondary X.X.X.X
show network eth0 – confirm the changes-Add the instance back to the license server and synchronize. When adding the server back, remember it’s the OS username and password that you want to be using.
-Additional step for CUCM highly recommended by TAC: restart the Cisco Tomcat service at the CLI with the command utils service restart Cisco Tomcat
-This is also the process for stand alone license servers, but of course you don’t have to remove any instances from the license server or perform the Tomcat restart.
For IM&P servers:
-At the CLI of the server, issue the following commands:
set network dns primary X.X.X.X – note you will still get an error message that rehosting is required, but I confirmed later with TAC that this is just a holdover error message from the 8.x days.
set network dns secondary X.X.X.X
show network eth0 – confirm the changes
For UCCX servers (note I have an HA environment):
-Take note of the current server license MAC, put it in a safe place. I copied the contents of the license files to my desktop and took a screenshot of the current license configuration page. Because it’s voice and the paranoia with licensing runs deep.
-Sacrifice a chicken or two, and then at the CLI of the server, issue the following commands on each server:
set network dns primary X.X.X.X
set network dns secondary X.X.X.X
show network eth0 (confirm the changes)-Reboot the primary, wait for what feels like an eternity for the primary to come back up and get it’s services started, then reboot the secondary.
-Take note of the new license mac and request a rehost, provide licensing with the new and the old license macs.
-Load the new license file and start happy dance. Unless you hit an issue like I did and the new license won’t load. Then try another reboot of the pair, attempt license load once more with fingers more tightly crossed than before, and then proceed to happy dance.
Last, but not least, my good twitter friend and awesome voice guru Ryan Huff pointed out to me this Answer File Generator tool which can be used to predict your new license mac so you can request a rehost in advance. I decided that the 30 day grace period for UCCX would be enough for this project, but it’s fantastic to know that such a thing exists. Especially if you are going to be invalidating a lot of licenses, have a very small change window, and want to go ahead and get off grace period licensing as quickly as possible*.
*my rehosted license file for UCCX was generated in under 15 mins. Impressive. Still a PITA, but at least a quick PITA…
Published 09/09/2015
Great Post! I am going to try out the Answer File Generator because of a future change I will be making that will cause the lic MAC to change.
Thanks for the feedback! Did you end up using the Answer File Generator? How’d it go?
Sharing your post with a related thread on Cisco Support Forum
Why did you have to change the DNS?
Because I lost a bet with the systems engineer. 😉
Nah, only kidding, because the server team needed to retire some aging DNS servers and the original ones were installed in data VLANs – so correcting past wrongs, but causing me some pain. 🙂
What is the purpose of this change in DNS or IP?
The systems engineering team had a reason – I believe they needed to retire the old DNS servers.
Once again, a great post!
amy, do you know if they completely did away with the re-licensing in 9.x and 10.x? our server team is asking me to make dns, dhcp and dc changes affecting my cucm, cuc, uccx, im&p, wlc and switches. so much fun to double check each device. =\
It’s definitely not all gone – not every little thing changes the license mac, but something’s still do. CUCM and Unity Connection are a bit better due to ELM – you can remove from ELM, make the changes, then add server back, but UCCX will require a rehost for sure. I opened a TAC case for each one to find out for sure when I did DNS changes.
The UCCX engineer provided me this list of items that change the license mac in UCCX 9.x:
Here are the License MAC Parameters:
Time zone
NTP Server 1 (or ‘none’)
NIC speed (or ‘auto’)
Hostname
IP Address
IP Mask
Gateway Address
Primary DNS
SMTP Server (or ‘none’)
Certificate Information (Organization, Unit, Location, State, Country)
Hi Amy , just curious , which part of UCCX Server that require DNS Resolution, I think we put all the connection with the IP Address not Hostname. What is the step after we created the CUAFG? do we require to have a license maintenance in order to rehost the license ?
The DNS servers that are entered when setting up the UCCX servers are part of what goes into calculating the license MAC in 9.x UCCX, so when the DNS servers change, you have to rehost licenses to the new license MAC. Later versions are supposed to get away from this. This link has a good list of variables that affect the license MAC: http://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_9_02/installation/guide/UCCX_BK_U096815B_00_uccx-install-and-upgrade/UCCX_BK_U096815B_00_uccx-install-and-upgrade_appendix_0111.html
Just had to rehost the license files on my UCCX server and this little guide was the most helpful source of information that I could find. Thank you very much. Cisco is very irritating with having to go through this process just because a DNS entry needs to be changed.
FYI, we found that if the primary DNS server goes missing that at least for a while, there are major issues with the agents. So we had to bring the old box back up just to restore order.
I do have a question about the license files. I just added the new hosted license files without deleting the old ones. Do you think that is ok or should I find another service window and delete the old licenses. The OCD in me wants to delete them, but the old Network Engineer in me screams “its working! Leave it the hell alone!”
Glad to help!! I would just leave the old licenses – they are tied to an inactive license MAC and I’ve not seen that cause issues. That’s just my two cents! I’m with you – it’s working, try not to touch it! 🙂
Made it past the first real test of re-licensing. The call center folks came into the office and UCCX was working as expected. Always good to make a change on Friday night and not get a call at way too early on Monday because of something missed.
One more note on UCCX licensing. In an HA environment (at least in version 10.6.1), you only have to rehost the license for the pub/primary server. It pushes the license to the sub/secondary server. The license people at Cisco don’t know the products, so we had a bit of confusion until I did the “show uccx license” and “utils uccx list license” commands.
I used this procedure on 10.5.2 – THANK YOU AMY!
That’s awesome!! Glad to help!
Does changing the DNS server on CUCM, UCXN and IM&P require a server reboot ?
I don’t think so, I wrote the post just after going through this so the process was fresh on my mind, I only noted having to reboot UCCX. Of course, I wouldn’t rule out a reboot being necessary if it doesn’t look like the changes are working right…
It doesn’t require a full reboot, but beware of a bug that requires you to at least restart the Call Manager service on your CUCM servers after you make the change. I got caught by bug CSCuw41476 after changing the DNS servers on my 10.5.2.10000-5 CUCM servers. Calls that needed to travel over a SIP trunk from UCM to third-party servers were getting the reorder tone. Resetting the SIP trunks does not fix this; you have to restart the Call Manager service.
BTW – thank you for this blog, Amy. It has proven super helpful on multiple occasions.
Thanks for the heads up on the bug ID! Really good to know!! And glad to hear the blog has been helpful, that’s my favorite part of blogging!
Hello Amy,
Great Post..
I have a scenario where all CUCM, CUC, and IMP servers are currently working with IP address (No DNS or domain configured). I planned to change it to FQDN. My plan is as follows:
1) Create DNS records (both A and PTR)
2) Configure DNS server from CLI using ” set network” command
3) Configure Domain name from CLI using “set Network” command
4) Go to System>Server > Change the IP to FQDN
I am using CUCM, CUC and IMP 10.5.2 and my CUCM cluster has two nodes.
Please let me know which order I should this process.
Thanks and Best Regards.
My experience for this was with the versions listed in the post, I would follow up with TAC for your specific version requirements. 🙂
Thank you for this! I’m not a voice expert by any means so it really boosts my confidence to have access to the experience of others when diving into something new even for simple stuff like this.
I have to change primary and secondary DNS everywhere to retire some domain controllers and voice was (almost!) the last piece of it. CUCM and IM&P went fine. For some reason UNCX continued to send some DNS lookups to the old server that was removed from the configuration even though show network and the OS administration GUI showed the change made. I probably could have tracked down the service with cached resolvers but it was quicker to just reboot the thing and that fixed it. 🙂
Excellent Post! Really helped me out, and the only good article I could find on this subject. Thanks for taking the time to create it!
Hi there! I know its been a minute since anyone has posted….
If a change is made to a DNS setting with CUCM, specifically “set network dns options [timeout”, what service, if any should be restared?
I just went through this same thing. The rehost itself was uneventful, but there was a gotcha waiting for me: Finesse. It turns out that a license rehost in UCCX deactivates Finesse. TAC told me this goes away in UCCX 12. Anyway, a “utils uccx finesse activate” on publisher & subscriber, and another round of reboots, and all is well.
I didn’t know this! Thanks for sharing!!
This is a great article. We love Cisco but haven’t really had a chance to dip too much in to CUCM/UCCX yet. I had no idea the licensing was so precious so I will definitely be mindful of this in future. If I get stuck anywhere you’ll be the first person I ask!
Hi, I have a 10.5.2.14 CUCM version, and need to change CUCM Publisher and DNS IP addresses, Will I need to re-host license? Which cisco oficcial document for supporting, can you share to help me?