get_zone_computer_field

Use the get_zone_computer_field command to return the value of a specified field from the currently selected zone computer stored in memory. The get_zone_computer_field command does not query Active Directory for the zone computer. If you change field values using ADEdit without saving the zone computer to Active Directory, the field value you retrieve using get_zone_computer_field won’t match the same field value for the zone computer stored in Active Directory.

Zone type

Classic and hierarchical

Syntax

get_zone_computer_field field

Abbreviation

gzcf

Options

This command takes no options.

Arguments

This command takes the following argument:

Argument Type Description

field

string

Required. Specifies the case-sensitive name of the field whose value to retrieve. The possible values are:

  • addn: Returns the distinguished name of the Active Directory computer object for the zone computer. For example, if the computer object is created in the default Computers container, this field might return a path similar to CN=firefly-sf,CN=Computers,DC=ajax,DC=org.
  • agentVersion: Returns the version of agent currently installed on the zone computer.
  • cpus: Returns the number of CPUs in the computer.
  • createTime: Returns the time and date this zone computer was created (in generalized time format).
  • dn: Returns the distinguished name of the service connection point for the zone computer. If the computer is in a Services for UNIX (SFU) zone, no value is returned for this field.
  • dnsname: Returns the domain name service (DNS) name of the zone computer.
  • enabled: Returns 1 if the zone computer is enabled in its zone or 0 if it is not.
  • modifyTime: Returns the time and date this zone computer was last modified (in generalized time format).

Return value

This command returns a field value. The data type depends on the field specified.

Examples

get_zone_computer_field dnsname

This example returns the name of the zone computer as listed in DNS:

printserver.acme.com

Related commands

Before you use this command, you must have a currently selected zone computer stored in memory. The following commands enable you to view and manage the zone computers:

After you have a zone computer stored in memory, you can use the following commands to work with that zone computer: