每个 AIX® 和 LDAP 组都具有关联的属性,这些属性包括组中用户的名称,组的管理员的用户名以及组标识。 在 AIX 操作系统中,通过运行 lsgroup 命令来获取有关 AIX 系统上定义的所有组的信息。
关于本任务
注: LDAP 功能仅适用于 PowerHA® SystemMirror® 7.1.1 或更高版本。
您可以按照以下过程中的描述,从 C-SPOC 获取有关在所有集群节点上定义的组的信息,或者通过运行 C-SPOC cl_lsgroup 命令并指定 ALL 参数来获取上述信息。 C-SPOC 以及 cl_lsgroup 命令均在每个集群节点上运行 lsgroup 命令。 对于所有节点,lsgroup 命令的输出将显示在运行命令的节点上。
如果您指定一个在集群节点上不存在的组名,那么 cl_lsgroup 命令显示一个警告消息,但是会继续在所有其他集群节点上运行命令。
要使用 C-SPOC 实用程序列出 LDAP 或每个 AIX 集群节点上定义的所有组,请完成以下步骤:
过程
- 从命令行输入
smit
cl_admin。 - 在 SMIT 中,选择 ,然后按 Enter。
- 在 " 选择认证和注册表方式 " 面板上,选择方式并按 Enter 键。
- 如果选择 LOCAL 作为方式,那么 SMIT 将显示以下命令状态窗口。
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear as follows.
[TOP]
cav system 0true root
cav staff 1false daemo
cav bin 2true root,bin
cav sys 3true root,bin,sys
cav adm 4true bin,adm
cav uucp 5true nuucp,uucp
cav mail 6true
cav security7true root
cav cron 8true root
cav printq 9true
cav audit 10 true root
cav ecs 28 true
cav nobody -2 false nobody,lpd
[MORE...56]
- 如果您选择 LDAP 方式,那么 SMIT 将显示以下命令状态窗口。
COMMAND STATUS
Command: OK stdout: yes stderr: no
Before command completion, additional instructions may appear as follows.
[TOP]
system 0true root
taff 1false daemo
bin 2true root,bin
ys 3true root,bin,sys
adm 4true bin,adm
uucp 5true nuucp,uucp
mail 6true
security7true root
cron 8true root
printq 9true
audit 10 true root
ecs 28 true
nobody -2 false nobody,lpd
[MORE...56]