Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch

Rev 1.6.2
Mellanox Technologies
43
2.1.2 Hostname Resolution
Sets a static system hostname.
The no form of the command clears the system hostname.
hostname A free-form string.
Default hostname
Config
3.1.0000
admin
switch (config) # hostname my-switch-hostname
my-switch-hostname (config) #
show hosts
Hostname may contain letters, numbers, periods ('.'), and hyphens ('-'), in any combination
Hostname can’t contain other letters, such as ‘%’, ‘_’, etc.
Hostname can’t begin with a hyphen.
Hostname can be 1-63 characters long
hostname
hostname <hostname>
no hostname
Syntax Description
Default
Modes/Context
History
Role
Example
Related Commands
Note