diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 16:08:48 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 16:08:48 +0100 |
commit | a279d087b85ad537172dae627c2793884f1b9f73 (patch) | |
tree | 3fed5518e35182e60c62248c6ac77883d4dca15d /clients/ping.pl | |
parent | 110b939413ebc7a1b4ef1dc5a5988477d9c594bd (diff) | |
parent | 72fb92979ca3dbbbeb55159ce3a9404b8ba49099 (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 174342a..3f4139e 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,host(ip) as ip,host(secondary_ip) as secondary_ip FROM switches WHERE ip is not null ORDER BY random()"); +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"); while (1) { |