Set Hostname for Metric Insights server
This article will show you how to set the Hostname for your Metric Insights server.
Note: If your instance of Metric Insights is hosted within our EC2 environment, we will set the Hostname ourselves -- you don't need to do anything here.
1. Login to the Metric Insights server
In order to set the Hostname, you will need direct access to the Metric insights server. Please contact your network administrator for access. Once you are properly set up, you will need to connect to the server by ssh. If you are using a Mac, you can create an ssh connection from a terminal window. If you are using a Windows machine, you can use an ssh tunneling application such as PuTTY.
2. Set the Hostname for the server
Run the following command from a shell prompt:
Hostname your.Hostname.com
Example (demo.metricinsights.com):
Hostname demo.metricinsights.com
3. Make the server Hostname permanent
Step #2 will set the Hostname. In order for the new Hostname to survive a system reboot, however, you will need to create permanent Hostname entry in an appropriate location. This will depend upon your operating system.
3.1. Debian Linux
If you are running Metric Insights on Debian Linux, you can create a permanent Hostname entry by running the following command from a shell prompt:
echo 'your.Hostname.com' > /etc/Hostname
3.2. Virtual Appliance or CentOS / Redhat Linux
If you are running Metric Insights:
1. as a virtual appliance; or...
2. on CentOS Linux or Redhat Linux
...then you can create a permanent Hostname entry by editing the file named /etc/sysconfig/network and editing the Hostname parameter as follows:
Hostname=your.Hostname.com