Actions

Toolpack Installation:Change hostname: Difference between revisions

(Add warning about OS)
No edit summary
 
(20 intermediate revisions by 6 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]], [[TMP7950]]) and TBLinux ([[TMG800]], [[TMG3200]]) host:
== CentOS 5 procedure ==
<pre>hostname NewHostName
*[[Accessing_Device#SSH|ssh]] to the management interface
</pre>
*To view current hostname:
To modify the
hostname
*Modify the name of the host in this file (if present)
*To update the hostname:
<pre>vi /etc/hosts
hostname NewHostName
</pre>
*Reboot server:
*Activate config:
shutdown -r now
<pre>Systems -&gt; Edit -&gt; Activate
</pre>
<br> You need to do this for all configurations.


''(Reference: trk#7921)''
Note: DO NOT change the hostname via webportal.
 
<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.