010-151 · Question #90
Which command syntax is correct to reset the admin password when the switch is in the kickstart prompt? switch(boot) #"
The correct answer is C. configure terminal -> admin-password. At the Cisco NX-OS kickstart prompt (switch(boot)#), the admin password is reset by entering configure terminal to reach configuration mode and then issuing the admin-password command.
Question
Which command syntax is correct to reset the admin password when the switch is in the kickstart prompt? switch(boot) #"
Options
- Aexec -> admin-password
- Bconnect local-mgmt -> admin-password
- Cconfigure terminal -> admin-password
- Dconnect nxos -> admin-password <password>
- Eadmin-password
How the community answered
(31 responses)- A6% (2)
- B10% (3)
- C81% (25)
- E3% (1)
Why each option
At the Cisco NX-OS kickstart prompt (switch(boot)#), the admin password is reset by entering configure terminal to reach configuration mode and then issuing the admin-password command.
'exec' is not a valid NX-OS kickstart-mode command for transitioning to a context where the admin password can be reset.
'connect local-mgmt' is a Cisco UCS Fabric Interconnect command used to access the local management shell, not a valid command in NX-OS kickstart mode.
In Cisco NX-OS boot/kickstart mode, 'configure terminal' transitions the session into configuration mode, from which the 'admin-password' command can be executed to set a new administrator password. This two-step sequence is the documented NX-OS password recovery procedure when the switch is accessed at the kickstart prompt. The configure terminal step is mandatory because 'admin-password' is a configuration-level command and cannot be executed directly from the exec-level boot prompt.
'connect nxos' followed by 'admin-password' is not the correct syntax for kickstart-mode password recovery and does not replace the required configure terminal step.
Running 'admin-password' directly at the switch(boot)# prompt without first entering configure terminal fails because the command requires configuration mode context and is not accessible from the exec-level boot prompt.
Concept tested: NX-OS admin password reset from kickstart boot prompt
Source: https://www.cisco.com/c/en/us/support/docs/ios-nx-os-software/nx-os-software/116187-technote-nexus-00.html
Topics
Community Discussion
No community discussion yet for this question.