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.
Modify an option by typing a command using the following format:
# dhtadm -M -s option-name -d 'category,code,data-type,granularity,maximum' -g
Specifies the name of the option that you want to change.
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.
Specifies a numeric value that is appropriate to the option category, as explained in Table 15–5.
Specifies a keyword that indicates the type of data that is passed with the option, as explained in Table 15–5.
Is a nonnegative number, as explained in Table 15–5.
Is a nonnegative number, as explained in as explained in Table 15–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.
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