Toolpack Installation:Change hostname

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(Formatting changes)
 
(21 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:
*Change hostname of the linux host
+
hostnamectl  set-hostname   NewHostName
<pre>hostname NewHostName
+
*To update the /etc/hosts file:
</pre>
+
vim /etc/hosts
*Activate config:
+
Replace the hostnames in the file
<pre>Systems -&gt; Edit -&gt; Activate
+
*Reboot server:
</pre>
+
shutdown -r now
<br> You need to do this for all configurations.
+
*After reboot verify if everything is ok:
 +
hostnamectl
 +
cat /etc/hosts
  
''(Reference: trk#7921)''
+
=== ProSBC license ===
 +
For [[ProSBC]], you can then update the license: [[Toolpack:Retreiving_a_License_TSBC_A|Update ProSBC license]]
  
<br>
+
== 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
  
If the Web portal is not accessible you can do direct MySQL commands:<br>
+
Note: DO NOT change the hostname via webportal.
<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 12:17, 11 March 2021

Contents


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

ProSBC license

For ProSBC, you can then update the license: Update ProSBC license

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.

Personal tools