pbnoscli# configure terminal
pbnoscli(config)# hostname Switch-1
Switch-1(config)#
Hostname should be configured using only the below character combinations
A-Z, a-z, 0-9, hyphen (-), cannot start or end with '-'. Max 63 chars
pbnoscli(config)# hostname Device_1
% Error: Invalid hostname 'Device_1'. Allowed: A-Z, a-z, 0-9, hyphen (-), cannot start or end with '-'. Max 63 chars.
pbnoscli(config)#
Switch-1# show running-config
configure terminal
hostname Switch-1
!
Switch-1#