Sun Update Connection - Enterprise 1.0 User's Guide

List Group’s Hosts (-lgh) Command

The list-group-hosts command outputs the hosts that are assigned to a given group.

Parameter

  • -g groupname Specify the name of the group.

  • -dlt delimiter Specify the delimiter for the output.

Syntax

uce_cli -lgh -g "groupname" [ -dlt "delimiter" ] -u username -p password

Example

uce_cli -lgh -g "topGroup/nestedGroup" -u admin -p 123

Result Example


webserver2

(Note that quotations are required for group paths and for group names that contain spaces.) 

Example

uce_cli -lgh -g "nestedGroup" -u admin -p 123

Result Example

Error: Requested group not found.

(Error indicates that parent-group path is required for nested groups.) 

To get valid values for the -g parameter, use the -lg command.