lsdom Command

Purpose

Displays domain attributes.

Syntax

lsdom [-C] [-f] [ -a Attr [Attr]... ] { ALL | Name [ , Name] ...}

Description

The lsdom command displays the attributes of the domain, which is defined from the domain database.

The command enables you to list attributes of all domains or specific domains. By default the lsdom command displays all domain attributes. To view selected attributes, use the -a list flag. If one or more attributes cannot be read, the lsdom command lists as much information as possible.

By default, the lsdom command lists each domain's attributes in one line. It displays attribute information as Attribute=Value definitions, each separated by a blank space. To list the domain attributes in stanza format, use the -f flag. To list the information as colon-separated records, use the -C flag.

Flags

Item Description
-C Displays the domain attributes in colon-separated records.

#domain:attribute1:attribute2: ...

domain1:value1:value2: ...

domain2:value1:value2: ...

-f Displays the output in stanzas, with each stanza identified by a domain name. Each Attribute=Value pair is listed in a separate line.
Domain:
attribute1=value

Parameters

Item Description
ALL Indicates that the attributes of all domains must be listed.
Name Indicates the domain name whose attributes must be listed.

Security

The lsdom command is a privileged command. Callers of the command must have activated a role that has the following authorization to run the command successfully.
Item Description
aix.security.domains.list Required to run the command.

Files Accessed

Item Description
File Mode
/etc/security/domains r

Examples

  1. To display all attributes of the domain hrdom:
    lsdom hrdom

All the attribute information is shown with each attribute separated by a blank space.