list_dz_commands

Use the list_dz_commands command to check Active Directory and return a list of UNIX command objects defined within the currently selected zone. If executed in a script, this command outputs its list to stdout so that the output appears in the shell where the script is executed. The command does not return a Tcl list back to the executing script. Use get_dz_commands to return a Tcl list.

You can only use the list_dz_commands command to return UNIX command data for classic4 and hierarchical zones.

Zone type

Classic and hierarchical

Syntax

list_dz_commands

Abbreviation

lsdzc

Options

This command takes no options.

Arguments

This command takes no arguments.

Return value

This command returns a list to stdout of UNIX commands defined in the currently selected zone. Each entry in the list contains the following fields, separated by colons (:):

  • The name of the UNIX command followed by a slash (/) and the name of the zone where the command is defined.
  • The properties of the command.
  • Text describing the command.

Examples

list_dz_commands

This example returns commands in the following format:

root_any/global : * form(0) dzdo_runas(root) flags(16) : Run any command as root

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:

  • get_dz_commands returns a Tcl list of UNIX commands in the current zone.
  • new_dz_command creates a new UNIX command and stores it in memory.
  • select_dz_command retrieves a UNIX command from Active Directory 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.