diff --git a/src/warden-server/bin/getClients.pl b/src/warden-server/bin/getClients.pl index 987d19238c679ada8c18003887b7b53d9575b003..d969893b2e8bda66521858906dab543c27964b4e 100755 --- a/src/warden-server/bin/getClients.pl +++ b/src/warden-server/bin/getClients.pl @@ -10,7 +10,7 @@ use strict; use Getopt::Std; use File::Basename; -our $VERSION = "2.0"; +our $VERSION = "2.1"; my $warden_path = '/opt/warden-server'; require $warden_path . '/lib/WardenStatus.pm'; @@ -71,22 +71,22 @@ if ($UID != 0) { my @clients = WardenStatus::getClients($warden_path); -print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; -print "| Client ID | Hostname | Registered | Requestor | Service | CT | Type | ROE | Description tags | IP Net Client |\n"; -print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; +print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; +print "| Client ID | Hostname | Registered | Requestor | Service | CT | Type | ROE | Description tags | IP Net Client |\n"; +print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; foreach (@clients) { printf("| %-10s ", @$_[0]); printf("| %-30s ", @$_[1]); printf("| %19s ", @$_[2]); - printf("| %-10s ", @$_[3]); - printf("| %-20s ", @$_[4]); + printf("| %-23s ", @$_[3]); + printf("| %-25s ", @$_[4]); printf("| %-2s ", @$_[5]); printf("| %-15s ", @$_[6]); printf("| %-4s ", @$_[7]); - printf("| %-30s ", @$_[8]); + printf("| %-50s ", @$_[8]); printf("| %-18s |\n", @$_[9]); } -print "+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; +print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; print "\n"; print "Current registered clients in: " . scalar localtime(time) . "\n";