This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
cmdline [2011/02/28 00:41] mcb30 created |
cmdline [2011/02/28 02:03] mcb30 |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Command line ====== | ====== Command line ====== | ||
- | iPXE includes an interactive command line that can be used for manual booting, diagnostics, and experimentation. | + | iPXE includes an interactive command line that can be used for manual booting and for diagnosing problems. Commands can also be used as part of an iPXE [[:scripting|script]]. |
When iPXE starts up, you will see a welcome banner message: | When iPXE starts up, you will see a welcome banner message: | ||
Line 16: | Line 16: | ||
{{ :screenshots:cmdline.png?360x200 |The iPXE command line}} | {{ :screenshots:cmdline.png?360x200 |The iPXE command line}} | ||
+ | ===== Manual booting ===== | ||
+ | |||
+ | If your DHCP server is not configured to allow automatic booting, then you could use the iPXE command line to boot manually. For example, you could obtain an IP address using the ''[[:cmd:dhcp]]'' command, then boot the iPXE demonstration image using the ''[[:cmd:chain]]'' command: | ||
+ | |||
+ | iPXE> dhcp | ||
+ | DHCP (net0 52:54:00:12:34:56).... ok | ||
+ | iPXE> chain http://boot.ipxe.org/demo/boot.php | ||
+ | |||
+ | ===== Diagnostics ===== | ||
+ | |||
+ | You can use the iPXE command line to diagnose problems that are preventing you from booting successfully. For example, you could check the IP address configuration provided by your DHCP server using the ''[[:cmd:route]]'' command: | ||
+ | |||
+ | iPXE> dhcp | ||
+ | DHCP (net0 52:54:00:12:34:56).... ok | ||
+ | iPXE> route | ||
+ | net0: 192.168.0.101/255.255.255.0 gw 192.168.0.1 | ||
+ | |||
+ | ===== Commands ===== | ||
+ | |||
+ | You can use the ''[[:cmd:help]]'' command to show a list of all available commands. Full documentation for each command is provided in the iPXE [[:cmd|command line reference]]. | ||