Cisco Cisco C880 M4 Server

Page of 21
 
17 
 
C122-E176-01EN 
2.10  UEFI Shell and UEFI Commands 
Cisco C880 Server supports the UEFI shell functions that enable users to execute commands from the UEFI 
console. The following figure shows the screen display when the UEFI shell starts. 
FIGURE 2.7 Screen display immediately after the UEFI shell starts (example) 
 
2.10.1 Automatic startup file 
Immediately after the UEFI shell starts, the UEFI shell checks whether the startup.nsh file is included in the 
defined execution path. 
The execution path is the directory path specified in the shell environment path variable. 
You can view and set this directory path by using the set command. 
If the startup.nsh file exists, the shell runs the commands specified in the file and then waits for command 
input from the console. If the startup.nsh file does not exist, the shell does nothing. 
2.10.2 UEFI shell command syntax 
You can view and set shell environment variables by using the set command. 
To access an environment variable value as an argument for a shell command, enclose the variable name in 
percent signs (%) as shown below. 
%myvariable% 
Remarks 
The UEFI shell has a special variable called "lasterror." This variable holds the return value from the last 
executed shell command. 
"The following characters are wildcard characters: * ? [ ]. They can be used in a file name specified as a 
shell command argument. 
The following table provides examples of using wildcard characters. 
TABLE 2.10 Examples of using wildcard characters 
Sample character string 
Meaning 
Matches zero or more characters in the file name. 
Matches exactly one character in the file name.