![]() |
![]() |
| |||
|
# dhtadm -M -m macroname -e 'option=value' |
For example, to add the ability to negotiate leases, in macro bluenote, type the following command:
# dhtadm -M -m bluenote -e 'LeaseNeg=_NULL_VALUE'
Note that if an option does not require a value, you must use _NULL_VALUE as the value for the option.
How to Delete Options from a DHCP Macro (DHCP Manager)Select the Macros tab.
Select the macro you want to change.
Choose Properties from the Edit menu.
The Macro Properties dialog box opens.
Select the option you want to remove from the macro.
Click Delete.
The option is removed from the list of options for this macro.
Select Notify DHCP Server of Change.
This selection tells the DHCP server to reread the dhcptab to put the change into effect immediately after you click OK.
Click OK.
How to Delete Options from a DHCP Macro (dhtadm)Become superuser or a user assigned to the DHCP Management profile.
Type a command of the following format:
# dhtadm -M -m macroname -e 'option=' |
For example, to remove the ability to negotiate leases in macro bluenote, type the following command:
# dhtadm -M -m bluenote -e 'LeaseNeg='
If an option is specified with no value, it is removed from the macro.
You may want to add new macros to your DHCP service to support clients with specific needs. You can use the dhtadm -A -m command or DHCP Manager's Create Macro dialog box to add macros. See the dhtadm man page for more information about the dhtadm command.
The following figure shows DHCP Manager's Create Macro dialog box.
Figure 10-16 Create Macro Dialog Box

How to Create a DHCP Macro (DHCP Manager)Select the Macros tab.
Choose Create from the Edit menu.
The Create Macro dialog box opens.
Type a unique name for the macro.
The name can be up to 128 alphanumeric characters. If you use a name that matches a vendor class identifier, network address, or client ID, the macro will be processed automatically for appropriate clients. If you use a different name, the macro can only be processed if it is assigned to a specific IP address or included in another macro that is processed. See Macro Processing by the DHCP Server for more detailed information.
Click the Select button next to the Option Name field.
The Select Option dialog box displays an alphabetized list of names of Standard category options and their descriptions.
If you want to add an option that is not in the Standard category, use the Category list to select the category you want.
See About Options for more information about option categories.
Select the option you want to add to the macro and click OK.
The Macro Properties dialog box displays the selected option in the Option Name field.
Type the value for the option in the Option Value field.
Click Add.
The option is added to the bottom of the list of options displayed for this macro. If you want to change the option's position in the list, select the option and click the arrow keys next to the list to move the option up or down.
Repeat Step 6 through Step 8 for each option you want to add to the macro.
Select Notify DHCP Server of Change when you are finished adding options.
This selection tells the DHCP server to reread the dhcptab to put the change into effect immediately after you click OK.
Click OK.
How to Create a DHCP Macro (dhtadm)Become superuser or a user assigned to the DHCP Management profile.
Type a command of the following format:
# dhtadm -A -m macroname -d ':option=value:option=value:option=value:' |
There is no limit to the number of option/value pairs included in the argument to -d. The argument must begin and end with colons, with colons separating each option/value pair.
For example, to create macro bluenote, type the following command:
# dhtadm -A -m bluenote -d \ ':Router=10.63.6.121:LeaseNeg=_NULL_VALUE:'DNSserv=10.63.28.12:'
Note that if an option does not require a value, you must use _NULL_VALUE as the value for the option.
Previous Contents Index Next ![]() |