select_dz_command
Use the select_dz_command
command to retrieve a UNIX command in the currently selected zone from Active Directory. This command stores the selected UNIX command in memory, and makes it the currently selected UNIX command for subsequent ADEdit commands. The UNIX command remains selected until you select another UNIX command or zone, delete the UNIX command, or end the ADEdit session.
If you use ADEdit commands such as set_dzc_field
to change settings for the selected UNIX command, you must save the selected UNIX command using the save_dz_command
command for your changes to take effect in Active Directory. If you select another UNIX command or end the ADEdit session before saving the currently selected UNIX command, your changes will be lost.
You can only use the select_dz_command
command to select UNIX commands if the currently selected zone is a classic4 or hierarchical zone. The command does not work for other types of zones.
Zone type
Classic and hierarchical
Syntax
select_dz_command command
Abbreviation
sldzc
Options
This command takes no options.
Arguments
This command takes the following arguments:
Argument | Type | Description |
command |
string |
Required. Specifies the name of the UNIX command to select. |
Return value
This command returns nothing if it runs successfully.
Examples
select_dz_command account_manager
This example looks for the UNIX command named “account_manager” in the current zone and, if found, selects it as the current UNIX command.
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 select a UNIX command to work with:
- get_dz_commands returns a Tcl list of UNIX commands in the current zone.
- list_dz_commands lists to
stdout
the UNIX commands in the current zone. - new_dz_command creates a new UNIX command and stores it in memory.
After you have a UNIX command stored in memory, you can use the following commands to work with that command:
- delete_dz_command deletes the selected command from Active Directory and from memory.
- get_dzc_field reads a field value from the currently selected command.
- save_dz_command saves the selected command with its current settings to Active Directory.
- set_dzc_field sets a field value in the currently selected command.