Skip to content
Snippets Groups Projects
Commit f3647413 authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

zmena volani funkce getClientInfo; pridan modul warnings; uprava data

parent 8066fbdc
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/perl -w #!/usr/bin/perl
# #
# Copyright (C) 2011-2013 Cesnet z.s.p.o # Copyright (C) 2011-2015 Cesnet z.s.p.o
# #
# Use of this source is governed by a BSD-style license, see LICENSE file. # Use of this source is governed by a BSD-style license, see LICENSE file.
use strict; use strict;
use warnings;
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Warden 2.2 Client, Info, Example # Warden 2.2 Client, Info, Example
...@@ -23,7 +24,7 @@ my $warden_path = '/opt/warden-client/'; ...@@ -23,7 +24,7 @@ my $warden_path = '/opt/warden-client/';
# Inclusion of warden-client receiving functionality # Inclusion of warden-client receiving functionality
require $warden_path . '/lib/WardenClientCommon.pm'; require $warden_path . '/lib/WardenClientCommon.pm';
my @clients = WardenClientCommon::getClientsInfo($warden_path) or exit 1; # receive data or exit my @clients = WardenClient::getClientInfo() or exit 1; # receive data or exit
print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n"; print "+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+\n";
print "| Client ID | Hostname | Registered | Requestor | Service | CT | Type | ROE | Description tags | IP Net Client |\n"; print "| Client ID | Hostname | Registered | Requestor | Service | CT | Type | ROE | Description tags | IP Net Client |\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment