Red Hat Training

A Red Hat training course is available for RHEL 8

38.2. 使用 CLI 查看 IdM 主机组

这部分论述了如何使用命令行界面(CLI)查看 IdM 主机组。

先决条件

流程

  1. 使用 ipa hostgroup-find 命令查找所有主机组。

    $ ipa hostgroup-find
    -------------------
    1 hostgroup matched
    -------------------
      Host-group: ipaservers
      Description: IPA server hosts
    ----------------------------
    Number of entries returned 1
    ----------------------------

    若要显示主机组的所有属性,可添加 --all 选项。例如:

    $ ipa hostgroup-find --all
    -------------------
    1 hostgroup matched
    -------------------
      dn: cn=ipaservers,cn=hostgroups,cn=accounts,dc=idm,dc=local
      Host-group: ipaservers
      Description: IPA server hosts
      Member hosts: xxx.xxx.xxx.xxx
      ipauniqueid: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
      objectclass: top, groupOfNames, nestedGroup, ipaobject, ipahostgroup
    ----------------------------
    Number of entries returned 1
    ----------------------------