For factory reset on a Cisco IOS (switch / router ), can use below commands Switch: SWITCH_IGNORE_STARTUP_CFG=1 Switch:boot switch>en Switch: factory-reset all
You can change the hostname of Cisco devices Router#configure ter Router#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#host Router(config)#hostname oslo 1- oslo(config)#hostname oslo-router 2-