2008-01-07 17:37:19 +00:00
=head1 NAME
2008-03-14 20:54:31 +00:00
B<makedhcp> - Creates new dhcp configuration files and updates live dhcp configuration using omapi.
2008-01-07 17:37:19 +00:00
=head1 SYNOPSIS
2008-03-14 20:54:31 +00:00
B<makedhcp [-n]>
B<makedhcp> I<noderange> [B<-s> I<statements>]
2008-01-07 17:37:19 +00:00
2008-03-14 20:54:31 +00:00
B<makedhcp> I<[h|--help]>
2008-01-07 17:37:19 +00:00
=head1 DESCRIPTION
2008-03-14 20:54:31 +00:00
The B<makedhcp> command with the B<-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.
2008-01-07 17:37:19 +00:00
2008-03-14 20:54:31 +00:00
The B<makedhcp> command also uses the following attributes from the xCAT database: B<site.xcatservers>,
B<site.dhcpinterfaces>, B<site.domain>,
B<networks.dynamicrange>, B<networks.dhcpserver>
2008-01-07 17:37:19 +00:00
2008-03-14 20:54:31 +00:00
=head1 OPTIONS
2008-01-07 17:37:19 +00:00
B<-h> Display usage message.
2008-03-14 20:54:31 +00:00
B<-n> Create a new dhcpd.conf file.
2008-01-07 17:37:19 +00:00
2008-03-14 20:54:31 +00:00
B<-s> For the input noderange, the argument will be interpreted like dhcpd.conf text.
2008-01-07 17:37:19 +00:00
=head1 RETURN VALUE
0 The command completed successfully.
1 An error has occurred.
=head1 EXAMPLES
2008-03-14 20:54:31 +00:00
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).
2008-01-07 17:37:19 +00:00
2008-03-14 20:54:31 +00:00
I<makedhcp node5 -s 'option root-path \"172.16.0.1:/install/freebsd6.2/x86_64\";'>
2008-01-07 17:37:19 +00:00
=head1 NOTES
This command is part of the xCAT software product.