Sometimes administrator needs to change the intial domain name of the SAP HANA cockpit from the physical machine host name to a DNS alias name. Doing that changes require few configurations. In this blog, I will show the steps that are needed to change the URL of SAP HANA cockpit form a physical host name to a DNS alias.
To change the hostname to a DNS alias, do the following:
- Login to Linux terminal where the SAP HANA cockpit is installed
- Issue this command:
su - h4cadm
Note: Assuming the SID for SAP HANA Cockpit is H4C
- Issue this command:
cdcoc
- The path should be something like that: /usr/sap/<SID>/SYS/global/hdb/custom/config or whatever your default path is for the SAP HANA cockpit
- Make backup copy of the xscontroller.ini before doing the edit of the xscontroller.ini
- Edit xscontroller.ini file to upate the default domain name:
vi xscontroller.ini
- Change the default_domain = <YOUR-NEW-DOMAIN>
- Do not change anything else, the api_url will be updated automatically after doing the changes a restart is required
- Restart SAP HANA cockpit by issuing:
HDB restart
- This will take sometimes because the system has to update the URLs with the new domain name
- Check to see if SAP HANA cockpit restarted successfully by issuing this command:
sapcontrol -nr 96 -function GetProcessList
Note: 96 is the default instance number
- Once the status shows all “GREEN”, test your cockpit new URL
- New SAP HANA Cockpit URL: https://<FQDN>:3<INTANCEID>30
Be Aware:
- SAP HANA Cockpit uses ports other than 3xx30 and 3xx32. For example, the cockpit web ui and admin ui use ports such 51xxxx. This means, you need to make sure the firewall is not blocking these ports
- Another thing we need to be aware of is once the URL is changed, now when we login back into XSA from the command line, we need to set the XSA API to the new one and to do that, issue these commands:
su - h4cadm
xs-admin-login
- Provide the cockpit admin password
- Check to see all the apps are loaded
xs a
- Once you see number “1/1” under column instances, that means the apps are loaded
- Logout
- Log back in as
xs l
- Now you should have the new API set with the new domain