1 2 Previous Next 16 Replies Latest reply: May 21, 2012 2:08 PM by Bill Robinson RSS

enumerating a list of servers from a smartgroup

Darrell NameToUpdate

i am able to sucessfully get a list of servers when i execute

 

blcli  Server listServersInGroup "/Servers by OS/Windows/All Windows"

 

however, when create a simple script using this command i get a error "Unknown command : name space = 'Server', command = 'listServersInGroup'.com.bladelogic.cli.factory.CommandNotFoundException: Found command 'Server.listServersInGroup' but with mismatching arguments."

 

script is:

 

 

 

GROUP="/Servers by OS/Windows/All Windows"

SERVER_LIST=`blcli Server listServersInGroup $GROUP`

for serverName in $SERVER_LIST

do

 

echo "$serverName"

 

 

done

1 2 Previous Next