set_zone_computer_field
Use the set_zone_computer_field command to set the value for a specified field in the currently selected zone computer stored in memory. The set_zone_computer_field command does not set a field value stored in Active Directory for this zone computer.
If you change any fields, you must save the zone computer using the save_zone_computer command for your changes to take effect in Active Directory. If you select another zone computer or end the ADEdit session before saving the currently selected zone computer, your changes will be lost.
Zone Type
Classic and hierarchical
Syntax
set_zone_computer_field field value
Abbreviation
szcf
Options
This command takes no options.
Arguments
This command takes the following arguments:
| Argument | Type | Description |
|---|---|---|
| field | string | Required. Specifies the name of the field whose value want set. The possible values are: cpus: Set to a positive integer for the number of CPUs in the computer. enabled: Set the value to 1, y, yes, or true if the computer is enabled in the zone or to 0, n, no, or false if the computer is not enabled in the zone. All other values throw an exception. licensetype: Specifies the type of license a computer uses. The valid values for this field are server or workstation. |
| value | Required. Specifies the value to assign to the specified field. In some cases, you can assign a dash (-) to a field to unset the field value. However, this is not supported for all fields or all zone types. |
Return Value
This command returns nothing if it runs successfully.
Examples
set_zone_computer_field cpus 2
This example sets the current zone computer’s number of CPUs to 2.
Related Commands
Before you use this command, you must have a currently selected zone stored in memory. The following commands enable you to view and manage the zone computers:
get_zone_computersreturns a Tcl list of the Active Directory names of all zone computers in the current zone.list_zone_computerslists tostdoutthe zone computers in the current zone.new_zone_computercreates a new zone computer and stores it in memory.select_zone_computerretrieves a zone computer from Active Directory and stores it in memory.
After you have a zone computer stored in memory, you can use the following commands to work with that zone computer:
delete_zone_computerdeletes the zone computer from Active Directory and from memory.get_zone_computer_fieldreads a field value from the currently selected zone computer.save_zone_computersaves the zone computer with its current settings to Active Directory.set_zone_computer_fieldsets a field value in the currently selected zone computer.