Actions

Toolpack Installation:Change hostname: Difference between revisions

(Change from TMP7950 to TMP6400-CTRL)
No edit summary
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
== Change hostname of server  ==
{{DISPLAYTITLE:Change Hostname}}
__TOC__


To change the hostname, connect to the Web Portal and do:  
This procedure applies to [[TMG800]], [[TMG3200]], [[TMG7800]] and [[ProSBC]] with static IP for management interfaces. <br>
Requires version 2.9 and above <br>
'''Note''': For [[ProSBC]], this will require a license update. Make sure you inform the [[Support:Contacting_TelcoBridges_technical_support|Support]] team that this procedure will be done. <br>


*Edit host configuration
== CentOS 7 procedure ==
<pre>Hosts-&gt;Edit
*[[Accessing_Device#SSH|ssh]] to the management interface
Name: input new hostname
*To view current hostname:
Save
hostnamectl
</pre>
*To update 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.
hostnamectl  set-hostname   NewHostName
*To update the /etc/hosts file:
vim /etc/hosts
Replace the hostnames in the file
*Reboot server:
shutdown -r now
*After reboot verify if everything is ok:
hostnamectl
cat /etc/hosts


The following example will show how to modify the host name of a CentOS ([[TMG5800]], [[TMP5900]], [[TMP6400-CTRL]]) and TBLinux ([[TMG800]], [[TMG3200]]) host:
== CentOS 5 procedure ==
*[[Accessing_Device#SSH|ssh]] to the management interface
*To view current hostname:
hostname
*To update the hostname:
hostname NewHostName
*Reboot server:
shutdown -r now


'''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>
Note: DO NOT change the hostname via webportal.
<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>
Add this next interfaces for [[TMG5800|TMG5800]], [[TMP5900|TMP5900]], [[TMP6400-CTRL]] only:<br>
<pre>vi /etc/sysconfig/network-scripts/ifcfg-eth1
</pre>
Add this next interfaces for [[TMP6400-CTRL]] 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>
After modifying the hostname, it is required to apply the Toolpack configuration again using the web portal.
 
*Activate config:
<pre>Systems -&gt; Edit -&gt; Activate
</pre>
<br> You need to do this for all configurations.
 
''(Reference: trk#7921)''
 
<br>
 
If the Web portal is not accessible you can do direct MySQL commands:<br>
<pre>mysql -utbdb -ptbdbpw
use toolpack_0;
update host_configurations set name = 'NewHostName';
select * from host_configurations;</pre>
Change hostname of the host:<br>
<pre>hostname NewHostName
</pre>
Restart Toolpack for linux:<br>
<pre>tbtoolpack stop
tbtoolpack start
</pre>
For windows, restart service:<br>
<pre>services.msc
tbtoolpack_12358 -&gt; Restart
</pre>

Latest revision as of 14:44, 2 April 2026

This procedure applies to TMG800, TMG3200, TMG7800 and ProSBC with static IP for management interfaces.
Requires version 2.9 and above
Note: For ProSBC, this will require a license update. Make sure you inform the Support team that this procedure will be done.

CentOS 7 procedure

  • ssh to the management interface
  • To view current hostname:
hostnamectl
  • To update the hostname:
hostnamectl  set-hostname   NewHostName
  • To update the /etc/hosts file:
vim /etc/hosts

Replace the hostnames in the file

  • Reboot server:
shutdown -r now
  • After reboot verify if everything is ok:
hostnamectl
cat /etc/hosts

CentOS 5 procedure

  • ssh to the management interface
  • To view current hostname:
hostname
  • To update the hostname:
hostname NewHostName
  • Reboot server:
shutdown -r now

Note: DO NOT change the hostname via webportal.