Toolpack Installation:Change hostname

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Add warning about OS)
(fixing procedure to modify the hostname)
Line 7: Line 7:
 
Name: input new hostname
 
Name: input new hostname
 
Save  
 
Save  
</pre>
+
</pre>  
The procedure to modify the host name will depends on the OS used. Please look for the official way to modify the hostname.
+
The procedure to modify the host name will depends on the OS used. Please look for the official way to modify the hostname.  
  
The following example will show how to modify the host name of a CentOS ([[TMG5800]], [[TMP5900]], [[TMP7950]]) and TBLinux ([[TMG800]], [[TMG3200]]) host:
+
The following example will show how to modify the host name of a CentOS ([[TMG5800]], [[TMP5900]], [[TMP7950]]) and TBLinux ([[TMG800]], [[TMG3200]]) host:  
 +
 
 +
'''WARNINIG:''' There are several files to modify and it is possible that some of them do not contain the hostname. '''DO&nbsp;NOT''' modify the file if the hostname is not included in the files listed below.<br>
 
<pre>hostname NewHostName
 
<pre>hostname NewHostName
 +
</pre>
 +
*Modify the DHCP_HOSTNAME parameter of the network file (''modify only if present'')<br>
 +
<pre>vi /etc/sysconfig/network-scripts/ifcfg-eth0
 
</pre>
 
</pre>
To modify the
+
Add this next interfaces for [[TMG5800|TMG5800]], [[TMP5900|TMP5900]], [[TMP7950|TMP7950 ]]only:<br>
*Modify the name of the host in this file (if present)
+
<pre>vi /etc/sysconfig/network-scripts/ifcfg-eth1
 +
</pre>
 +
Add this next interfaces for [[TMP7950|TMP7950 ]]only:<br>
 +
<pre>vi /etc/sysconfig/network-scripts/ifcfg-eth2
 +
</pre>
 +
*Modify the HOSTNAME parameter of the network file (''modify only if present'')<br>
 +
<pre>vi /etc/sysconfig/network
 +
</pre>
 +
*Modify the name of the host in this file (''modify only if present'')
 
<pre>vi /etc/hosts
 
<pre>vi /etc/hosts
 
</pre>  
 
</pre>  
 +
After modifying the hostname, it is required to apply the Toolpack configuration again using the web portal.
 +
 
*Activate config:
 
*Activate config:
 
<pre>Systems -&gt; Edit -&gt; Activate  
 
<pre>Systems -&gt; Edit -&gt; Activate  

Revision as of 08:25, 2 November 2010

Change hostname of server

To change the hostname, connect to the Web Portal and do:

  • Edit host configuration
Hosts->Edit
Name: input new hostname
Save 

The procedure to modify the host name will depends on the OS used. Please look for the official way to modify the hostname.

The following example will show how to modify the host name of a CentOS (TMG5800, TMP5900, TMP7950) and TBLinux (TMG800, TMG3200) host:

WARNINIG: There are several files to modify and it is possible that some of them do not contain the hostname. DO NOT modify the file if the hostname is not included in the files listed below.

hostname NewHostName
  • Modify the DHCP_HOSTNAME parameter of the network file (modify only if present)
vi /etc/sysconfig/network-scripts/ifcfg-eth0

Add this next interfaces for TMG5800, TMP5900, TMP7950 only:

vi /etc/sysconfig/network-scripts/ifcfg-eth1

Add this next interfaces for TMP7950 only:

vi /etc/sysconfig/network-scripts/ifcfg-eth2
  • Modify the HOSTNAME parameter of the network file (modify only if present)
vi /etc/sysconfig/network
  • Modify the name of the host in this file (modify only if present)
vi /etc/hosts

After modifying the hostname, it is required to apply the Toolpack configuration again using the web portal.

  • Activate config:
Systems -> Edit -> Activate 


You need to do this for all configurations.

(Reference: trk#7921)


If the Web portal is not accessible you can do direct MySQL commands:

mysql -utbdb -ptbdbpw
use toolpack_0;
update host_configurations set name = 'NewHostName';
select * from host_configurations;

Change hostname of the host:

hostname NewHostName

Restart Toolpack for linux:

tbtoolpack stop
tbtoolpack start

For windows, restart service:

services.msc
tbtoolpack_12358 -> Restart
Personal tools