diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-17 22:53:28 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-17 22:53:28 +0100 |
commit | 8fb5b7047179444b4e08a60b78fa6ad2bcb1cd77 (patch) | |
tree | 86c5b2452bfc44130dd27d7ef9105f2e8689d5d4 /clients/ping.pl | |
parent | a24f3520a43cf59d0ac88270ba956c9aa67de469 (diff) | |
parent | 06b47ddd070fb1b46de53c7187acbf27878b8f07 (diff) |
Merge branch 'master' of https://github.com/tech-server/tgmanage
Diffstat (limited to 'clients/ping.pl')
-rwxr-xr-x | clients/ping.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/ping.pl b/clients/ping.pl index 47119f1..27aa878 100755 --- a/clients/ping.pl +++ b/clients/ping.pl @@ -15,7 +15,7 @@ my $dbh = nms::db_connect(); $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; -my $q = $dbh->prepare("SELECT switch,ip,secondary_ip FROM switches WHERE ip is not null ORDER BY random()"); +my $q = $dbh->prepare("SELECT switch,host(ip) as ip,host(secondary_ip) as secondary_ip FROM switches WHERE ip is not null ORDER BY random()"); my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets"); while (1) { |