CP6004-SA/-RA/-RC/CP6004X-SA
The uEFI Shell
ID 1053-6161, Rev. 3.0
Page 57
D R A F T — F O R I N T E R N A L U S E O N L Y
6.2.5
kbootnsh uEFI Shell Command
6.2.6
kclearnvram uEFI Shell Command
kbootnsh
FUNCTION:
Manage the startup script stored in the flash
SYNTAX:
kbootnsh [-b][-?|-g <filename>|-p <filename>|-d]
where:
-b
Display output page by page
-?
Show online help
-g <filename>
Store the current boot script to disk. If there is no phys-
ical disk drive present, the
kmkramdisk
command
may be used.
-p <filename>
Store the shell script pointed to by filename to flash.
Note: The shell script cannot be larger then 400 bytes.
-d
Delete the current startup script from flash.
DESCRIPTION:
The
kbootnsh
command manages the flash stored startup script. If the
shell is launched by the boot process, it executes a shell script stored in
the flash. If the shell script terminates, the shell executes a
kboot -d
command to continue the boot process. However, the shell script can of
course contain any other boot command.
USAGE:
Get current startup script to file named boot.nsh
COMMAND / RESPONSE EXAMPLE:
Shell> kbootnsh -g boot.nsh
Store file named boot.nsh to flash:
COMMAND / RESPONSE EXAMPLE:
Shell> kbootnsh -p boot.nsh
Delete startup script:
COMMAND / RESPONSE EXAMPLE:
Shell> kbootnsh -d
kclearnvram
FUNCTION:
Clear the NVRAM to restore the system’s default settings
SYNTAX:
kclearnvram
No parameters required. For safety reasons this command must be con-
firmed by pressing “c”.
DESCRIPTION:
The
kclearnvram
command allows to clear the system NVRAM. Since
all uEFI settings are stored inside the NVRAM, the default settings are
loaded afterwards.