diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-26 07:30:07 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-26 07:30:07 +0100 |
commit | 5755c9a0ef2d72549aa6eb281c6769c8c171421d (patch) | |
tree | f13317e4903ec7de43e6fb46b6181a5730c27016 /clients/ping.pl | |
parent | 04b13311cedf90f57db5d53feea7349a008f628b (diff) | |
parent | ec0d348139403d7caba4ee4cbb99d893d8c741b8 (diff) |
Merge branch 'master' of ssh://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 1ad7b95..d945917 100755 --- a/clients/ping.pl +++ b/clients/ping.pl @@ -16,7 +16,7 @@ $dbh->{AutoCommit} = 0; $dbh->{RaiseError} = 1; my $q = $dbh->prepare("SELECT switch,host(mgmt_v4_addr) as ip,host(mgmt_v6_addr) as secondary_ip FROM switches WHERE mgmt_v4_addr is not null ORDER BY random()"); -my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets"); +my $lq = $dbh->prepare("SELECT linknet,addr1,addr2 FROM linknets WHERE addr1 is not null and addr2 is not null"); while (1) { # ping loopbacks |