1900 Series Switch
#config t
(config)#hostname 1900Switch
Same method as the router
1900Switch(config)#
2900/2950 Series Switch
Switch#config t
Switch(config)#hostname 2900Switch
2900Switch(config)#