aboutsummaryrefslogtreecommitdiffstats
path: root/clients/ping.pl
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-22 16:05:04 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-22 16:05:04 +0100
commit10271b0e95a424e191926a945fe785e9cce046c1 (patch)
tree9116f8c485fda55f02f20916d3db1c81fd8a7247 /clients/ping.pl
parent89c78bc9eab3b69fe31babe5e64f0343386f67be (diff)
NMS: Update schema to FAP
Diffstat (limited to 'clients/ping.pl')
-rwxr-xr-xclients/ping.pl2
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) {