aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/api/read
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 /web/nms.gathering.org/api/read
parent89c78bc9eab3b69fe31babe5e64f0343386f67be (diff)
NMS: Update schema to FAP
Diffstat (limited to 'web/nms.gathering.org/api/read')
-rwxr-xr-xweb/nms.gathering.org/api/read/switches-management3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/nms.gathering.org/api/read/switches-management b/web/nms.gathering.org/api/read/switches-management
index b18c6cd..8235da7 100755
--- a/web/nms.gathering.org/api/read/switches-management
+++ b/web/nms.gathering.org/api/read/switches-management
@@ -12,7 +12,8 @@ use Data::Dumper;
$nms::web::cc{'max-age'} = "60";
-my $q2 = $nms::web::dbh->prepare('select sysname,ip,poll_frequency,subnet4,subnet6,distro,last_updated from switches ');
+#my $q2 = $nms::web::dbh->prepare('select sysname,ip,poll_frequency,subnet4,subnet6,distro,last_updated from switches ');
+my $q2 = $nms::web::dbh->prepare('select switch,sysname,mgmt_v4_addr,mgmt_v6_addr,mgmt_v4_gw,mgmt_v4_netsize,mgmt_v6_gw,mgmt_v6_netsize,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,community,last_updated,switchtype from switches where placement is not null');
$q2->execute();
while (my $ref = $q2->fetchrow_hashref()) {