{
System.out.println("Please use (servers | hosts) in command");
shortUsage();
}
Admin _admin = getAdmin();
try
{
if (args[1].equals("servers"))
{
ServerInfo[] _info = _admin.list_servers();
System.out.println("Servers (total: " + _info.length + "):");
for(int _i = 0; _i < _info.length; _i++)
{
System.out.println((_i + 1) + ") " +_info[_i].name);
System.out.println(" " + "Host: " + _info[_i].host);
System.out.println(" " + "Command: " +
_info[_i].command);
System.out.println(" " + "active: " +
((_info[_i].active)?"yes":"no"));
System.out.println(" " + "holding: " +
((_info[_i].holding)?"yes":"no"));
}
}
else if (args[1].equals("hosts"))
{
HostInfo[] _info = _admin.list_hosts();
System.out.println("Hosts (total: " + _info.length + "):");
for(int _i = 0; _i < _info.length; _i++)
{