I needed to change the hostname and IP Address of the CiscoWorks server (LMS2.6).
As I dont have LMS V3 so I dont have the changehostname.pl script.
I followed a few threads and the cisco document on how to successfully change the hostname on our CW2k server. However, it hasnt worked and is a bit bizarre.
Whereas the Splash-screen and the main GUI (after login) shows the new_name, the various modules show the old_name.(e.g. Common Services [Old_name] etc).
Looking in each of the modules, e.g. Common Services, the menu item Server (in this case) points to the new_name, yet each option (Security, Reports, Admin and HomePage Admin) point to the old_name.
This happens in each of the modules.
In Common Services, the "Server" url points to https://new_name/cwhp/cwhp.applications.do#
If I look at the other modules, they each have similar issues.
If I click on one of the links, say "Security", it obviously times out because of the
old_name in the url, however if I change the url manually to new_name, this then works.
I thought that most things (processes) were running however looking at the CiscoWorks
processes in the GUI (Server->Admin->Processes) I see that the ANIServer and the
CTMJrmServer have never started.
Now going back to what I did to change the hostname, I followed a Cisco document on this as
Step1 & 2 - Change the hostname. (I am using Win2003 server)
Step3 - Search and replace Registry entries (old_name to new_name)
Step4 - Change hostname in regdaemon.xml
Step5 - Change hostname in web.xml
Step6 - Create changehostname.info file with the line old_name:new_name.
I put this at the top of the file with no spaces. I understand that this file is removed
when the services are restarted, however this didnt happen and the file remains.
Step7 - Delete gatekeeper.ior file. I did this and understood that this would be recreated,
however it didnt.
Step8 - I wasnt sure whether I needed to do this but I did it anyway and took me a few goes getting it to not throw up an error.
dbisql -c "uid=cmfDBA;pwd=<pwd>;eng=cmfEng;dbf=%NMSROOT%\databases\cmf\cmf.db" -q update PIDM_app_device_map SET app_hostname='new_name' where app_hostname='old_name'
When I realised that I had to type the "where app_hostname='old_name' " as well, this finished without showing an error.
Step9 - Regenerate new certificate - I did this and checked the certificate using sslutil.pl in the Apache directory to confirm the name.
So apart from Step 6 and Step7, everything worked correctly, however the server does not work correctly.
Would any one have any ideas?