FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
tcourbet
Staff
Staff
Description

This article explains how to modify the hostname of a Shelf Manager unit. The hostname will appear when the administrator logs on to the system and will help to identify the FortiGate Chassis to which it is connected.


Scope


Solution
The following steps will allow the hostname of a Shelf Manager to be changed:

1. Login to the Shelf Manager.

Display the current environment variables from the Shelf Manager Linux shell:

# getenv

baudrate=115200
ipaddr=192.168.0.22
serverip=192.168.0.7
netmask=255.255.255.0
bootfile=sentry.kernel
ramdisk=sentry.rfs
rootpath=/rootfs
ramargs=setenv bootargs root=/dev/ram rw
net=tftpboot 80400000 $(bootfile); tftpboot 81200000 $(ramdisk); run ramargs
addmisc; bootm 80400000 81200000
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath)
addip=setenv bootargs $(bootargs)
ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(ipdevice)
addmisc=setenv bootargs $(bootargs) $(quiet) console=$(console),$(baudrate)
reliable_upgrade=$(reliable_upgrade)
nfs=tftpboot 80800000 $(bootfile); run nfsargs addip addmisc; bootm
bootcmd=run ramargs addmisc; bootm $(kernel_start) $(rfs_start)
console=ttyS0
quiet=quiet
ipdevice=eth0
ip1device=eth1
ip1addr=192.168.1.2
gatewayip=192.168.0.1
rmcpaddr=192.168.0.2
hostname=shmm500
flash_reset=n
password_reset=n
logging=ram
timezone=UTC
rc_ifconfig=n
start_rc2_daemons=y
reliable_upgrade=y
ethact=Au1X00 ETHERNET
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:18:49:00:0c:42
eth1addr=00:18:49:00:0c:43
serial#=08009847
kernel_start=0xbe080000
rfs_start=0xbe440000
rc2=/etc/rc.acb3
bootdelay_old=3
post_normal=
bootdelay=3
#

2. Set the new hostname (for example: shelf-chassis-1).

# setenv hostname shelf-chassis-1

3. Reboot the Shelf Manager.

# reboot

4. Login to the Shelf Manager.

The new hostname should now be seen.

5. From The Shelf Manager Linux Shell, verify that the hostname environment variable is properly set.

# getenv

Contributors