Overview Servers and Relay Agents IP Addresses Macros Options How To.. Servers/Relays Addresses Macros View Create Duplicate Modify Delete Options Menus Index |  |  | # How To: Macros View Macros Choose the Macros tab in the main window. DHCP Manager displays a list of macros that have been configured for this network. You can view the relationship between macros. Click on a macro to view its associated options. Click Properties from the Edit menu to view a list of options and their values. Create a New Macro Choose the Macros tab in the main window. The DHCP Manager displays a list of macros that have been configured for this network. Choose Create from the Edit menu. The Create Macro dialog box opens. Enter a unique name for the new macro. The name must be unique within the server's DHCP table (`dhcptab`). (See the note about macro names at the end of this procedure.) Enter the definition of the macro. This can be built by including other macros, or by defining values for options to be included in the macro. The standard options are described in the `dhcp_inittab`(4) man page Click OK to accept your settings. The new macro definition is stored in the `dhcptab`.
The important thing to remember when naming your macro is to give it the same name as the resource or device in the category you want to control. For example, to create a Client Class macro for configuring Ultra-5sTM (which have the client class name `SUNW,Ultra5_10`), name your macro `SUNW.Ultra5_10`. See Using Macros and Options for more information.
Duplicate a Macro The Duplicate command provides a simple way to create a new macro with some or all of the properties of an existing macro. Choose the Macros tab in the main window. DHCP Manager displays a list of macros that have been configured for this network. Select the macro you want to copy, and then choose Duplicate from the Edit window. The Duplicate Macro dialog box opens. Enter a name for the new macro. (See the note about macro names at the end of the previous procedure.) Modify the macro settings as desired. Click OK to accept your settings. The new macro definition is stored in the `dhcptab`. Modify a Macro Choose the Macros tab in the main window. DHCP Manager displays a list of macros that have been configured for this network. Select the macro you want to edit, and then choose Properties from the Edit window. The Macro Properties dialog box opens. Modify the macro settings as desired and click OK. Delete a Macro Choose the Macros tab in the main window. DHCP Manager displays a list of macros that have been configured for this network. Select the macro to delete, and then choose Delete from the Edit window. The Delete Macro dialog box opens. Click OK. The macro definition is deleted from the `dhcptab` database. return to top