flash_init
SWITCH_IGNORE_STARTUP_CFG=1
boot flash:packages.conf
enable
configure terminal
no enable secret
no enable password
exit
copy running-config startup-config
wr mem
#reboot with rommon mode
flash_init
SWITCH_IGNORE_STARTUP_CFG=0
boot flash:packages.conf
enable
configure terminal
hostname Numair
exit
copy running-config startup-config
Wr mem