A hostname is a human-friendly name used to identify a device. An example of a hostname could be the name “Test.”
Create a hostname:
switch(config)# hostname NAME
Show commands to validate functionality:
switch# show hostname
switch(config)# hostname switch-test
switch-test# show hostname
switch-test
show
commands is correct