System Administration Guide: IP Services

ProcedureHow to Create a DHCP Macro (dhtadm)

  1. Become superuser or assume a role or user name that is assigned to the DHCP Management profile.

    For more information about the DHCP Management profile, see Setting Up User Access to DHCP Commands.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Create a macro by typing a command of the following format:


    # dhtadm -A -m macroname -d ':option=value:option=value:option=value:' -g
    

    There is no limit to the number of option=value pairs that can be included in the argument to -d. The argument must begin and end with colons, with colons between each option=value pair. The complete string must be enclosed in quotation marks.

    For example, to create the macro bluenote, type the following command:

    # dhtadm -A -m bluenote -d ':Router=10.63.6.121\
    :LeaseNeg=_NULL_VALUE:DNSserv=10.63.28.12:' -g
    

    Note that if an option does not require a value, you must use _NULL_VALUE as the value for the option.