makedhcp - Creates new dhcp configuration files and updates live dhcp configuration using omapi.
makedhcp [-n]>
makedhcp [-a]
makedhcp [-a] [-d]
makedhcp [-d] noderange
makedhcp noderange [-s statements]
makedhcp [h|--help]
The makedhcp command with the -n option will create a dhcpd.conf file to allow xCAT to manage the DHCP configuration, including certain general parameters such as a dynamic range and omapi configuration. With a noderange, makedhcp will inject configuration data pertinent to the specified nodes that immediately takes effect without a reset.
The makedhcp command with the -a option will create a dhcpd.leases file for all nodes. If the -d flag is used with the -a flag then it will delete all nodes dhcp service host definitions.
The makedhcp -d flag followed with a <noderange> will delete the dhcp server host definitons for the noderange.
The makedhcp command also uses the following attributes from the xCAT database: site.xcatservers, site.dhcpinterfaces, site.domain, networks.dynamicrange, networks.dhcpserver
-h Display usage message.
-n Create a new dhcpd.conf file.
-a Define all nodes to the dhcp server.
-a <-d> Delete all defined nodes to the dhcp server.
-d <noderange> Delete all defined nodes in the noderange to the dhcp server.
-s For the input noderange, the argument will be interpreted like dhcpd.conf text.
0 The command completed successfully.
1 An error has occurred.
1. The following example, will cause dhcp on the next request to set root-path appropriately for only node5. Note some characters (e.g. ``) must be doubly escaped (once for the shell, and once for the OMAPI layer).
makedhcp node5 -s 'option root-path \``172.16.0.1:/install/freebsd6.2/x86_64\'';'
2. The following example, will update the dhcpd.conf file.
makedhcp -n
2. The following example, will define all nodes to the dhcp server.
makedhcp -a
This command is part of the xCAT software product.