010-151 · Question #27
To do a password recovery on a Cisco NX-OS Switch, which option shows the correct syntax to display the bootflash contents at the switch(boot)#?
The correct answer is C. dir bootflash. During Cisco NX-OS password recovery, the switch(boot)# prompt supports the 'dir' command to list bootflash contents, not 'show' or 'display'.
Question
To do a password recovery on a Cisco NX-OS Switch, which option shows the correct syntax to display the bootflash contents at the switch(boot)#?
Options
- Adisplay bootflash:
- Bshow bootflash:
- Cdir bootflash:
- Dfind bootflash:
How the community answered
(26 responses)- A8% (2)
- B4% (1)
- C73% (19)
- D15% (4)
Why each option
During Cisco NX-OS password recovery, the switch(boot)# prompt supports the 'dir' command to list bootflash contents, not 'show' or 'display'.
'display bootflash:' is not a valid NX-OS command in either normal or boot mode.
'show bootflash:' is not recognized at the switch(boot)# prompt because 'show' commands are only available in the full NX-OS CLI after a complete boot.
At the switch(boot)# prompt in NX-OS boot mode, 'dir bootflash:' is the correct command to list the contents of the bootflash filesystem. The boot loader environment has a limited command set derived from common filesystem utilities, and 'dir' is the standard directory listing command available in that restricted context.
'find bootflash:' is not a valid boot mode command for listing directory contents in NX-OS.
Concept tested: NX-OS password recovery boot mode filesystem commands
Source: https://www.cisco.com/c/en/us/support/docs/switches/nexus-7000-series-switches/116007-nx-os-password-recovery.html
Topics
Community Discussion
No community discussion yet for this question.