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.
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.
Run the following command from a shell prompt:
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.
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
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: