Symptoms
How to verify the VPLEX Management Server hostname shown in the command prompt)How to change the VPLEX Management Server hostname shown in the command prompt)Unable to determine which VPLEX cluster the user is on when viewing the system prompt.Cannot tell what the VPLEX hostname is from the default system prompt.
Resolution
To check what cluster you are on, access the vplexcli then run the command
ll /management-server
example:
VPlexcli:/> ll /management-server//management-server:Attributes:Name Value--------------- --------------cluster-ip-seed 1 part-number 100-564-932-00serial-number FCNMC193100014
To check the hostname of a management server you are on run the following command from the Management Server: Note: this is only really good when the HOSTNAME has been changed, but then you will see the HOSTNAME in the system prompt. /-- hostname -\ service@ManagementServer:~> cat /etc/HOSTNAME ManagementServer.site
Note: 'ManagementServer.site' is the default hostname when set at in manufacturing.
Normally the VPLEX hostname is changed during initial installation under the "Connecting to the service port" portion of the install guide of each platform. If you want to change the hostname from the factory default, as shown above follow the steps below.Resolution:
To change the hostname of the management server run the following command:
service@ManagementServer:~> sudo /opt/emc/VPlex/tools/ipconfig/changehostname.py -n
6.2.1 code version run the following command:
hostnamectl set-hostname
Notes:
Allow time for the hostname script to update the VPLEX, roughly 40 to 60 seconds.Only Alpha (upper and lower case), numbers and a dash can be used, no other special characters, . ? / * @ ^ % # + = _ ~ : space cannot be used.Also DO NOT use the Linux OS hostname command to make this change.Should you be prompted to enter the CST Lockbox passpharse, it is Mi@Dim7T
To verify the Change is successful:
You will need to logout of the mgmt server and back in to see if the change was successful.
When you log back in to the management server the system prompt should reflect the new HOSTNAME.
login as: serviceUsing keyboard-interactive authentication.Password:Last login: day month date HH:MM:SS YYYY from x.x.x.xservice@DC-South-VS6-C1:~> \-- new hostname --/