DHCP Manager Help

 

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

  1. Choose the Macros tab in the main window.
    The DHCP Manager displays a list of macros that have been configured for this network.
  2. Choose Create from the Edit menu.
    The Create Macro dialog box opens.
  3. 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.)
  4. 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
  5. 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.

  1. Choose the Macros tab in the main window.
    DHCP Manager displays a list of macros that have been configured for this network.

  2. Select the macro you want to copy, and then choose Duplicate from the Edit window.
    The Duplicate Macro dialog box opens.
  3. Enter a name for the new macro.
    (See the note about macro names at the end of the previous procedure.)

  4. Modify the macro settings as desired.
  5. Click OK to accept your settings.
    The new macro definition is stored in the dhcptab.


Modify a Macro

  1. Choose the Macros tab in the main window.
    DHCP Manager displays a list of macros that have been configured for this network.

  2. Select the macro you want to edit, and then choose Properties from the Edit window.
    The Macro Properties dialog box opens.

  3. Modify the macro settings as desired and click OK.


Delete a Macro

  1. Choose the Macros tab in the main window.
    DHCP Manager displays a list of macros that have been configured for this network.
  2. Select the macro to delete, and then choose Delete from the Edit window.
    The Delete Macro dialog box opens.

  3. Click OK.
    The macro definition is deleted from the dhcptab database.

   return to top