show hostname
Syntax
show hostname [vsx-peer]
描述
显示当前host name.
Command context
Manager (#
)
Parameters
-
[vsx-peer]
-
Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed. This parameter is available on switches that support VSX.
权威
Administrators or local user group members with execution rights for this command.
Example
Setting and showing the host name:
switch#show hostnameswitch switch#configswitch(config)#hostname myswitchmyswitch(config)#show hostnamemyswitch