Celestica Documentation Portal

Find your product documents here

hostname

Configures the system hostname.

Syntaxhostname <host_name>
Command ModeCONFIG
Parametershost_name – String with a maximum length of 64 and minimum length of 1. Does not accept any special characters including the white spaces.
UsageUse no hostname to reset the hostname to default. The default hostname is sonic.
Supported Releases1.0.0 or later
Click Commandconfig hostname <new_hostname>
Example
sonic# configure terminal
sonic(config)# hostname mysystem
sonic(config)# exit
sonic# exit
admin@sonic:~$ sonic-cli
mysystem# configure terminal

mysystem(config)# no hostname
mysystem(config)# exit
mysystem# exit

admin@sonic:~$ sonic-cli
sonic#