This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
cmd:ifstat [2013/07/17 12:36] mcb30 |
cmd:ifstat [2014/03/03 13:25] mcb30 |
||
---|---|---|---|
Line 41: | Line 41: | ||
* ''[[:cmd:ifclose]]'' | * ''[[:cmd:ifclose]]'' | ||
* ''[[:cmd:route]]'' | * ''[[:cmd:route]]'' | ||
- | * ''[[:cfg:bustype]]'' | + | * ''[[:cmd:ipstat]]'' |
- | * ''[[:cfg:busloc]]'' | + | |
- | * ''[[:cfg:chip]]'' | + | |
* [[:cmd|List of all iPXE commands]] | * [[:cmd|List of all iPXE commands]] | ||
===== Notes ===== | ===== Notes ===== | ||
- | ''ifstat'' displays information about the physical network interface. To view information about the IP addresses assigned to the network interface, you can use the ''[[:cmd:route]]'' command. | + | ''ifstat'' displays information about the physical network interface. To view information about the IP addresses assigned to the network interface, you can use the ''[[:cmd:route]]'' command. To view statistics about IP traffic, you can use the ''[[:cmd:ipstat]]'' command. |
+ | |||
+ | You can access some information about network devices from within an iPXE [[:scripting|script]] using the ''[[:cfg:mac]]'', ''[[:cfg:bustype]]'', ''[[:cfg:busloc]]'', and ''[[:cfg:chip]]'' settings. For example: | ||
+ | |||
+ | echo Interface net0 (${net0/mac}) is at PCI${net0/busloc:busdevfn} using driver ${net0/chip} | ||