This shows you the differences between two versions of the page.
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 | ||