Hostname – Allied Telesis AlliedWare Plus Operating System Version 5.4.4C (x310-26FT,x310-26FP,x310-50FT,x310-50FP) User Manual
Page 218
![background image](/manuals/427254/218/background.png)
System Configuration and Monitoring Commands
Software Reference for x310 Series Switches
8.18
AlliedWare Plus
TM
Operating System - Version 5.4.4C
C613-50046-01 REV A
hostname
This command sets the name applied to the device as shown at the prompt. The
hostname is:
■
displayed in the output of the
command
■
displayed in the CLI prompt so you know which device you are configuring
■
stored in the MIB object sysName
On a stack, after the stack master is elected, the master will have a host name: awplus by
default, and this also becomes the name of the stack. Individual stack members (excluding
the master) will have a host name that is the stack name hyphenated with a numeric suffix.
For example, awplus-1, awplus-2 and so on.
The hostname command can then be used to change the stack name and the stack
master's host name. For example, for the hostname Lab the stack master’s host name will
be Lab and the other stack members will have host names Lab-1, Lab-2 and so on.
In case of stack master fail-over, or stack split, the new stack will use the previous stack
name as its host name and the stack name, unless it is changed by executing the
hostname command on the new stack master.
Use the no variant of this command to revert the hostname setting to its default
(awplus).
Syntax
hostname
no hostname [
Default
awplus
Mode
Global Configuration
Usage
The name must also follow the rules for ARPANET host names. The name must start with a
letter, end with a letter or digit, and use only letters, digits, and hyphens. Refer to RFC
1035.
Example
To set the system name to HQ-Sales, use the command:
Parameter
Description
Specifies the name given to a specific switch. Also referred to as the
Node Name in AMF output screens.
Note
Within an AMF network, any switch without a hostname applied will
automatically be assigned a name based on its MAC address.
To efficiently manage your network using AMF, we strongly advise that you
devise a naming convention for your network switches and accordingly apply
an appropriate hostname to each switch.
awplus#
configure terminal
awplus(config)#
hostname HQ-Sales