show hostname

Syntax

show hostname

描述

Shows the current host name.

命令上下文

经理(#)

权威

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