Differences

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

Link to this comparison view

cmd:clear [2011/03/23 20:22]
mcb30 created
cmd:clear [2013/08/02 11:15]
mcb30
Line 29: Line 29:
   * [[:cfg|List of all iPXE settings]]   * [[:cfg|List of all iPXE settings]]
   * [[:cmd|List of all iPXE commands]]   * [[:cmd|List of all iPXE commands]]
 +
 +===== Notes =====
 +
 +The configuration setting will be cleared only within the specified scope. ​ This may reveal an underlying value for the setting within a child scope. ​ For example, suppose that we already have a DNS server address obtained via DHCP, which we then override manually using the ''​[[:​cmd:​set]]''​ command:
 +
 +    iPXE> dhcp net0
 +    DHCP (net0 52:​54:​00:​12:​34:​56).... ok
 +    iPXE> show dns
 +    net0.dhcp/​dns:​ipv4 = 192.168.0.1
 +    iPXE> set dns 8.8.8.8
 +    iPXE> show dns
 +    dns:ipv4 = 8.8.8.8
 +
 +If we then ''​clear''​ the DNS server address within the top-level scope, the underlying value will be restored:
 +
 +    iPXE> show dns
 +    dns:ipv4 = 8.8.8.8
 +    iPXE> clear dns
 +    iPXE> show dns
 +    net0.dhcp/​dns:​ipv4 = 192.168.0.1
  
cmd/clear.txt ยท Last modified: 2013/08/02 11:15 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.