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:
show hostname
switch(config)# hostname switch-test
show hostname
switch-test