xref: /illumos-gate/usr/src/boot/common/help.common (revision 22028508fd28d36ff74dc02c5774a8ba1f0db045)
1*22028508SToomas Soome################################################################################
2*22028508SToomas Soome# Thelp DDisplay command help
3*22028508SToomas Soome
4*22028508SToomas Soome	help [topic [subtopic]]
5*22028508SToomas Soome	help index
6*22028508SToomas Soome
7*22028508SToomas Soome	The help command displays help on commands and their usage.
8*22028508SToomas Soome
9*22028508SToomas Soome	In command help, a term enclosed with <...> indicates a value as
10*22028508SToomas Soome	described by the term.  A term enclosed with [...] is optional,
11*22028508SToomas Soome	and may not be required by all forms of the command.
12*22028508SToomas Soome
13*22028508SToomas Soome	Some commands may not be available.  Use the '?' command to list
14*22028508SToomas Soome	most available commands.
15*22028508SToomas Soome
16*22028508SToomas Soome################################################################################
17*22028508SToomas Soome# T? DList available commands
18*22028508SToomas Soome
19*22028508SToomas Soome	?
20*22028508SToomas Soome
21*22028508SToomas Soome	Lists all available commands.
22*22028508SToomas Soome
23*22028508SToomas Soome################################################################################
24*22028508SToomas Soome# Tautoboot DBoot after a delay
25*22028508SToomas Soome
26*22028508SToomas Soome	autoboot [<delay> [<prompt>]]
27*22028508SToomas Soome
28*22028508SToomas Soome	Displays <prompt> or a default prompt, and counts down <delay> seconds
29*22028508SToomas Soome	before attempting to boot.  If <delay> is not specified, the default
30*22028508SToomas Soome	value is 10.
31*22028508SToomas Soome
32*22028508SToomas Soome################################################################################
33*22028508SToomas Soome# Tbeadm DList or switch Boot Environment
34*22028508SToomas Soome
35*22028508SToomas Soome	beadm activate beName [<device>]
36*22028508SToomas Soome	beadm list [<device>]
37*22028508SToomas Soome
38*22028508SToomas Soome	beadm activate unloads the currently loaded configuration and modules,
39*22028508SToomas Soome	sets currdev to <device> and loads configuration from new device.
40*22028508SToomas Soome	Use lsdev to get available device names.
41*22028508SToomas Soome
42*22028508SToomas Soome################################################################################
43*22028508SToomas Soome# Tboot DBoot immediately
44*22028508SToomas Soome
45*22028508SToomas Soome	boot [<kernelname>] [-<arg> ...]
46*22028508SToomas Soome
47*22028508SToomas Soome	Boot the system.  If arguments are specified, they are added to the
48*22028508SToomas Soome	arguments for the kernel.  If <kernelname> is specified, and a kernel
49*22028508SToomas Soome	has not already been loaded, it will be booted instead of the default
50*22028508SToomas Soome	kernel.
51*22028508SToomas Soome
52*22028508SToomas Soome################################################################################
53*22028508SToomas Soome# Tbcachestat DGet disk block cache stats
54*22028508SToomas Soome
55*22028508SToomas Soome	bcachestat
56*22028508SToomas Soome
57*22028508SToomas Soome	Displays statistics about disk cache usage.  For debugging only.
58*22028508SToomas Soome
59*22028508SToomas Soome################################################################################
60*22028508SToomas Soome# Tconsole DOutput information about console devices
61*22028508SToomas Soome
62*22028508SToomas Soome	console
63*22028508SToomas Soome
64*22028508SToomas Soome	Display the currently active console device(s) and show
65*22028508SToomas Soome	information about available console devices.
66*22028508SToomas Soome
67*22028508SToomas Soome################################################################################
68*22028508SToomas Soome# Tchain DChain load disk block
69*22028508SToomas Soome
70*22028508SToomas Soome	chain disk:
71*22028508SToomas Soome
72*22028508SToomas Soome	chain will read stage1 (MBR or VBR) boot block from specified device
73*22028508SToomas Soome	to address 0000:7C00 and attempts to run it. Use lsdev to get available
74*22028508SToomas Soome	device names. Disk name must end with colon.
75*22028508SToomas Soome
76*22028508SToomas Soome################################################################################
77*22028508SToomas Soome# Techo DEcho arguments
78*22028508SToomas Soome
79*22028508SToomas Soome	echo [-n] [<message>]
80*22028508SToomas Soome
81*22028508SToomas Soome	Emits <message>, with no trailing newline if -n is specified.  This is
82*22028508SToomas Soome	most useful in conjunction with scripts and the '@' line prefix.
83*22028508SToomas Soome
84*22028508SToomas Soome	Variables are substituted by prefixing them with $, eg.
85*22028508SToomas Soome
86*22028508SToomas Soome		echo Current device is $currdev
87*22028508SToomas Soome
88*22028508SToomas Soome	will print the current device.
89*22028508SToomas Soome
90*22028508SToomas Soome################################################################################
91*22028508SToomas Soome# Tframebuffer DManage framebuffer setup
92*22028508SToomas Soome
93*22028508SToomas Soome	framebuffer on | off | get | list [depth] | set <display or mode number>
94*22028508SToomas Soome
95*22028508SToomas Soome	Switch framebuffer mode on or off, get current mode, list available
96*22028508SToomas Soome	modes or set mode by using either display resolution or framebuffer
97*22028508SToomas Soome	mode number. If the system does not provide display resolution via
98*22028508SToomas Soome	EDID, the default resolution will be set to 800x600. If depth is not
99*22028508SToomas Soome	specified, the best depth is used.
100*22028508SToomas Soome
101*22028508SToomas Soome################################################################################
102*22028508SToomas Soome# Tload DLoad a kernel or module
103*22028508SToomas Soome
104*22028508SToomas Soome	load [-t <type>] <filename> [arguments]
105*22028508SToomas Soome
106*22028508SToomas Soome	Loads the module contained in <filename> into memory.  If no other
107*22028508SToomas Soome	modules are loaded, <filename> must be a kernel or the command will
108*22028508SToomas Soome	fail.
109*22028508SToomas Soome
110*22028508SToomas Soome	If -t is specified, the module is loaded as raw data of <type>, for
111*22028508SToomas Soome	later use by the kernel or other modules.  <type> may be any string.
112*22028508SToomas Soome
113*22028508SToomas Soome	Optional arguments will be set as module arguments.
114*22028508SToomas Soome
115*22028508SToomas Soome################################################################################
116*22028508SToomas Soome# Tls DList files
117*22028508SToomas Soome
118*22028508SToomas Soome	ls [-l] [<path>]
119*22028508SToomas Soome
120*22028508SToomas Soome	Displays a listing of files in the directory <path>, or the root
121*22028508SToomas Soome	directory of the current device if <path> is not specified.
122*22028508SToomas Soome
123*22028508SToomas Soome	The -l argument displays file sizes as well; the process of obtaining
124*22028508SToomas Soome	file sizes on some media may be very slow.
125*22028508SToomas Soome
126*22028508SToomas Soome################################################################################
127*22028508SToomas Soome# Tlsdev DList devices
128*22028508SToomas Soome
129*22028508SToomas Soome	lsdev [-v]
130*22028508SToomas Soome
131*22028508SToomas Soome	List all of the devices from which it may be possible to load modules.
132*22028508SToomas Soome	If -v is specified, print more details.
133*22028508SToomas Soome
134*22028508SToomas Soome################################################################################
135*22028508SToomas Soome# Tlsmod DList modules
136*22028508SToomas Soome
137*22028508SToomas Soome	lsmod [-v]
138*22028508SToomas Soome
139*22028508SToomas Soome	List loaded modules. If [-v] is specified, print more details.
140*22028508SToomas Soome
141*22028508SToomas Soome################################################################################
142*22028508SToomas Soome# Tmap-vdisk DMap virtual disk
143*22028508SToomas Soome
144*22028508SToomas Soome	map-vdisk filename
145*22028508SToomas Soome
146*22028508SToomas Soome	Map file as virtual disk.
147*22028508SToomas Soome
148*22028508SToomas Soome################################################################################
149*22028508SToomas Soome# Tmore DPage files
150*22028508SToomas Soome
151*22028508SToomas Soome	more <filename> [<filename> ...]
152*22028508SToomas Soome
153*22028508SToomas Soome	Show contents of text files. When displaying the contents of more,
154*22028508SToomas Soome	than one file, if the user elects to quit displaying a file, the
155*22028508SToomas Soome	remaining files will not be shown.
156*22028508SToomas Soome
157*22028508SToomas Soome################################################################################
158*22028508SToomas Soome# Tpnpscan DScan for PnP devices
159*22028508SToomas Soome
160*22028508SToomas Soome	pnpscan [-v]
161*22028508SToomas Soome
162*22028508SToomas Soome	Scan for Plug-and-Play devices.  This command is normally automatically
163*22028508SToomas Soome	run as part of the boot process, in order to dynamically load modules
164*22028508SToomas Soome	required for system operation.
165*22028508SToomas Soome
166*22028508SToomas Soome	If the -v argument is specified, details on the devices found will
167*22028508SToomas Soome	be printed.
168*22028508SToomas Soome
169*22028508SToomas Soome################################################################################
170*22028508SToomas Soome# Tset DSet a variable
171*22028508SToomas Soome
172*22028508SToomas Soome	set <variable name>
173*22028508SToomas Soome	set <variable name>=<value>
174*22028508SToomas Soome
175*22028508SToomas Soome	The set command is used to set variables.
176*22028508SToomas Soome
177*22028508SToomas Soome################################################################################
178*22028508SToomas Soome# Tsetprop DSet a variable
179*22028508SToomas Soome
180*22028508SToomas Soome	setprop <variable name> <value>
181*22028508SToomas Soome
182*22028508SToomas Soome	The setprop command is used to set variables.
183*22028508SToomas Soome
184*22028508SToomas Soome################################################################################
185*22028508SToomas Soome# Tset Sautoboot_delay DSet the default autoboot delay
186*22028508SToomas Soome
187*22028508SToomas Soome	set autoboot_delay=<value>
188*22028508SToomas Soome
189*22028508SToomas Soome	Sets the default delay for the autoboot command to <value> seconds.
190*22028508SToomas Soome	Set value to -1 if you don't want to allow user to interrupt autoboot
191*22028508SToomas Soome	process and escape to the loader prompt.
192*22028508SToomas Soome
193*22028508SToomas Soome################################################################################
194*22028508SToomas Soome# Tset Sbootfile DSet the default boot file set
195*22028508SToomas Soome
196*22028508SToomas Soome	set bootfile=<filename>[;<filename>...]
197*22028508SToomas Soome
198*22028508SToomas Soome	Sets the default set of kernel boot filename(s). It may be overridden
199*22028508SToomas Soome	by setting the bootfile variable to a semicolon-separated list of
200*22028508SToomas Soome	filenames, each of which will be searched for in the module_path
201*22028508SToomas Soome	directories. The default bootfile set is "unix".
202*22028508SToomas Soome
203*22028508SToomas Soome################################################################################
204*22028508SToomas Soome# Tset Sboot_ask DPrompt for configuration information
205*22028508SToomas Soome
206*22028508SToomas Soome	set boot_ask
207*22028508SToomas Soome
208*22028508SToomas Soome	Instructs the kernel to prompt the user for the configuration
209*22028508SToomas Soome	information when the kernel is booted.
210*22028508SToomas Soome
211*22028508SToomas Soome################################################################################
212*22028508SToomas Soome# Tset Sboot_drop_into_kmdb DDrop into the kernel debugger (kmdb)
213*22028508SToomas Soome
214*22028508SToomas Soome	set boot_drop_into_kmdb
215*22028508SToomas Soome
216*22028508SToomas Soome	Instructs the kernel to start in the kmdb debugger, rather than
217*22028508SToomas Soome	proceeding to initialize when booted. Can only be used when boot_kmdb
218*22028508SToomas Soome	is set.
219*22028508SToomas Soome
220*22028508SToomas Soome################################################################################
221*22028508SToomas Soome# Tset Sboot_kmdb DStart the kernel debugger (kmdb)
222*22028508SToomas Soome
223*22028508SToomas Soome	set boot_kmdb
224*22028508SToomas Soome
225*22028508SToomas Soome	Instructs the kernel to start the kmdb debugger and then continue
226*22028508SToomas Soome	with normal boot.
227*22028508SToomas Soome
228*22028508SToomas Soome################################################################################
229*22028508SToomas Soome# Tset Sboot_reconfigure DInitaiate reconfiguration boot
230*22028508SToomas Soome
231*22028508SToomas Soome	set boot_reconfigure
232*22028508SToomas Soome
233*22028508SToomas Soome	The system will probe all attached hardware devices and configure
234*22028508SToomas Soome	the logical namespace in /dev.
235*22028508SToomas Soome
236*22028508SToomas Soome################################################################################
237*22028508SToomas Soome# Tset Sboot_multicons DUse multiple consoles
238*22028508SToomas Soome
239*22028508SToomas Soome	set boot_multicons
240*22028508SToomas Soome
241*22028508SToomas Soome	Enables multiple console support in the kernel early on boot.
242*22028508SToomas Soome	In a running system, console configuration can be manipulated
243*22028508SToomas Soome	by the conscontrol(8) utility.
244*22028508SToomas Soome
245*22028508SToomas Soome################################################################################
246*22028508SToomas Soome# Tset Sboot_single DBoot into the single user mode
247*22028508SToomas Soome
248*22028508SToomas Soome	set boot_single
249*22028508SToomas Soome
250*22028508SToomas Soome	Boots only to init level 's'.
251*22028508SToomas Soome
252*22028508SToomas Soome################################################################################
253*22028508SToomas Soome# Tset Sboot_verbose DBoot with verbose messages enabled
254*22028508SToomas Soome
255*22028508SToomas Soome	set boot_verbose
256*22028508SToomas Soome
257*22028508SToomas Soome	Without this setting, the messages are only logged in the system log.
258*22028508SToomas Soome
259*22028508SToomas Soome################################################################################
260*22028508SToomas Soome# Tset Sconsole DSet the current console
261*22028508SToomas Soome
262*22028508SToomas Soome	set console[=<value>[,<value>]]
263*22028508SToomas Soome
264*22028508SToomas Soome	Sets the current console.  If <value> is omitted, a list of valid
265*22028508SToomas Soome	consoles will be displayed.
266*22028508SToomas Soome
267*22028508SToomas Soome################################################################################
268*22028508SToomas Soome# Tset Scurrdev DSet the current device
269*22028508SToomas Soome
270*22028508SToomas Soome	set currdev=<device>
271*22028508SToomas Soome
272*22028508SToomas Soome	Selects the default device.  See lsdev for available devices.
273*22028508SToomas Soome
274*22028508SToomas Soome################################################################################
275*22028508SToomas Soome# Tset Smodule_path DSet the module search path
276*22028508SToomas Soome
277*22028508SToomas Soome	set module_path=<path>[;<path>...]
278*22028508SToomas Soome
279*22028508SToomas Soome	Sets the list of directories which will be searched in for modules
280*22028508SToomas Soome	named in a load command or implicitly required by a dependency. The
281*22028508SToomas Soome	default module_path is "/boot/modules" with the kernel directory
282*22028508SToomas Soome	prepended.
283*22028508SToomas Soome
284*22028508SToomas Soome################################################################################
285*22028508SToomas Soome# Tset Sprompt DSet the command prompt
286*22028508SToomas Soome
287*22028508SToomas Soome	set prompt=<value>
288*22028508SToomas Soome
289*22028508SToomas Soome	The command prompt is displayed when the loader is waiting for input.
290*22028508SToomas Soome	Variable substitution is performed on the prompt.  The default
291*22028508SToomas Soome	prompt can be set with:
292*22028508SToomas Soome
293*22028508SToomas Soome		set prompt=\${interpret}
294*22028508SToomas Soome
295*22028508SToomas Soome################################################################################
296*22028508SToomas Soome# Tset Sscreen-font DSet the framebuffer font
297*22028508SToomas Soome
298*22028508SToomas Soome	Without the value, will list the currently available list
299*22028508SToomas Soome	of the fonts.
300*22028508SToomas Soome
301*22028508SToomas Soome################################################################################
302*22028508SToomas Soome# Tset Srootdev DSet the root filesystem
303*22028508SToomas Soome
304*22028508SToomas Soome	set rootdev=<path>
305*22028508SToomas Soome
306*22028508SToomas Soome	By default the value of $currdev is used to set the root filesystem
307*22028508SToomas Soome	when the kernel is booted.  This can be overridden by setting
308*22028508SToomas Soome	$rootdev explicitly.
309*22028508SToomas Soome
310*22028508SToomas Soome################################################################################
311*22028508SToomas Soome# Tshow DShow the values of variables
312*22028508SToomas Soome
313*22028508SToomas Soome	show [<variable>]
314*22028508SToomas Soome
315*22028508SToomas Soome	Displays the value of <variable>, or all variables if not specified.
316*22028508SToomas Soome
317*22028508SToomas Soome################################################################################
318*22028508SToomas Soome# Tsifting DSearch for words containing a substring
319*22028508SToomas Soome
320*22028508SToomas Soome	sifting <substring>
321*22028508SToomas Soome
322*22028508SToomas Soome	Displays words in the search order list containing the provided
323*22028508SToomas Soome	<substring>.
324*22028508SToomas Soome
325*22028508SToomas Soome################################################################################
326*22028508SToomas Soome# Tinclude DRead commands from a script file
327*22028508SToomas Soome
328*22028508SToomas Soome	include <filename> [<filename> ...]
329*22028508SToomas Soome
330*22028508SToomas Soome	The entire contents of <filename> are read into memory before executing
331*22028508SToomas Soome	commands, so it is safe to source a file from removable media.
332*22028508SToomas Soome
333*22028508SToomas Soome################################################################################
334*22028508SToomas Soome# Tread DRead input from the terminal
335*22028508SToomas Soome
336*22028508SToomas Soome	read [-t <value>] [-p <prompt>] [<variable name>]
337*22028508SToomas Soome
338*22028508SToomas Soome	The read command reads a line of input from the terminal.  If the
339*22028508SToomas Soome	-t argument is specified, it will return nothing if no input has been
340*22028508SToomas Soome	received after <value> seconds.  (Any keypress will cancel the
341*22028508SToomas Soome	timeout).
342*22028508SToomas Soome
343*22028508SToomas Soome	If -p is specified, <prompt> is printed before reading input. No
344*22028508SToomas Soome	newline is emitted after the prompt.
345*22028508SToomas Soome
346*22028508SToomas Soome	If a variable name is supplied, the variable is set to the value read,
347*22028508SToomas Soome	less any terminating newline.
348*22028508SToomas Soome
349*22028508SToomas Soome################################################################################
350*22028508SToomas Soome# Tunload DRemove all modules from memory
351*22028508SToomas Soome
352*22028508SToomas Soome	unload
353*22028508SToomas Soome
354*22028508SToomas Soome	This command removes any kernel and all loaded modules from memory.
355*22028508SToomas Soome
356*22028508SToomas Soome################################################################################
357*22028508SToomas Soome# Tunmap-vdisk DUnmap virtual disk
358*22028508SToomas Soome
359*22028508SToomas Soome	unmap-vdisk diskname
360*22028508SToomas Soome
361*22028508SToomas Soome	Delete virtual disk mapping.
362*22028508SToomas Soome
363*22028508SToomas Soome################################################################################
364*22028508SToomas Soome# Tunset DUnset a variable
365*22028508SToomas Soome
366*22028508SToomas Soome	unset <variable name>
367*22028508SToomas Soome
368*22028508SToomas Soome	If allowed, the named variable's value is discarded and the variable
369*22028508SToomas Soome	is removed.
370*22028508SToomas Soome
371*22028508SToomas Soome################################################################################
372