Server - listServersInGroup
Server - listServersInGroup
Description :
This command lists all the servers in a specified static or smart group. This command returns a list of server names.
Return type : String
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
qualifiedGroupName | String | Full path to a server group. |
Example
The following example lists all properties for all servers in a specified group:
Script
GROUP="/parent/group1"
SERVER_LIST=`blcli Server listServersInGroup $GROUP`
for serverName in $SERVER_LIST
do
#perform some task with a server name such as...
echo "Properties for server $serverName"
blcli Server printAllProperties $serverName
done
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*