System Administration Guide: IP Services

ProcedureHow to Modify DHCP Option Properties (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. Modify an option by typing a command using the following format:


    # dhtadm -M -s option-name -d 'category,code,data-type,granularity,maximum' -g
    
    option-name

    Specifies the name of the option that you want to change.

    category

    Can be Site, Extend, or Vendor=list-of-classes. list-of-classes is a space-separated list of vendor client classes to which the option applies. For example, SUNW.Sun-Blade-100 SUNW.Ultra-80 SUNWi86pc.

    code

    Specifies a numeric value that is appropriate to the option category, as explained in Table 14–5.

    data-type

    Specifies a keyword that indicates the type of data that is passed with the option, as explained in Table 14–5.

    granularity

    Is a nonnegative number, as explained in Table 14–5.

    maximum

    Is a nonnegative number, as explained in as explained in Table 14–5.

    Note that you must specify all of the DHCP option properties with the -d switch, not just the properties that you want to change.


Example 14–4 Modifying a DHCP Option With dhtadm

The following command would modify an option called NewOpt. The option is a Site category option. The option's code is 135. The option's value can be set to a single 8-bit unsigned integer.

# dhtadm -M -s NewOpt -d 'Site,135,UNUMBER8,1,1'

The following command would modify an option called NewServ, which is a Vendor category option. The option now applies to clients whose machine type is SUNW,Sun-Blade-100 or SUNW,i86pc. The option's code is 200. The option's value can be set to one IP address.

# dhtadm -M -s NewServ -d 'Vendor=SUNW.Sun-Blade-100 \
SUNW.i86pc,200,IP,1,1' -g