Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cmd:ifstat [2014/03/03 13:21]
mcb30
cmd:ifstat [2021/01/26 21:09]
mcb30
Line 22: Line 22:
  
     iPXE> ifstat     iPXE> ifstat
-    net0: 52:​54:​00:​12:​34:​56 using rtl8139 on PCI00:03.0 (open)+    net0: 52:​54:​00:​12:​34:​56 using rtl8139 on PCI00:03.0 (Ethernet[open]
       [Link:up, TX:5 TXE:0 RX:10 RXE:3]       [Link:up, TX:5 TXE:0 RX:10 RXE:3]
       [RXE: 1 x "The socket is not connected (http://​ipxe.org/​380f6001)"​]       [RXE: 1 x "The socket is not connected (http://​ipxe.org/​380f6001)"​]
Line 42: Line 42:
   * ''​[[:​cmd:​route]]''​   * ''​[[:​cmd:​route]]''​
   * ''​[[:​cmd:​ipstat]]''​   * ''​[[:​cmd:​ipstat]]''​
-  * ''​[[:​cfg:​bustype]]''​ 
-  * ''​[[:​cfg:​busloc]]''​ 
-  * ''​[[:​cfg:​chip]]''​ 
   * [[:cmd|List of all iPXE commands]]   * [[:cmd|List of all iPXE commands]]
  
Line 50: Line 47:
  
 ''​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. ''​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}
  
cmd/ifstat.txt ยท Last modified: 2021/01/26 21:09 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.