diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:09:34 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:09:34 +0100 |
commit | a974e356decee205806f366fba776f2d770bd220 (patch) | |
tree | b5d8a8046c734c5b067ce35bf285bb4e4720e003 /web/nms.gathering.org/api/read | |
parent | 1f88d1f2ba1e304abe4cd20f0bd3aae9347f4be8 (diff) | |
parent | 65c8e3fca802155828626898ede0d08beccfe579 (diff) |
Merge branch 'master' of ssh://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/api/read')
-rwxr-xr-x | web/nms.gathering.org/api/read/switches-management | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/nms.gathering.org/api/read/switches-management b/web/nms.gathering.org/api/read/switches-management index 292a6fb..9e12337 100755 --- a/web/nms.gathering.org/api/read/switches-management +++ b/web/nms.gathering.org/api/read/switches-management @@ -12,8 +12,7 @@ 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 switch,sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,last_updated,switchtype from switches where placement is not null'); +my $q2 = $nms::web::dbh->prepare('select switch,sysname,mgmt_v4_addr,subnet4,subnet6,mgmt_v6_addr,mgmt_v4_gw,mgmt_v6_gw,mgmt_vlan,traffic_vlan,last_config_fetch,current_mac,poll_frequency,last_updated from switches where placement is not null'); $q2->execute(); while (my $ref = $q2->fetchrow_hashref()) { |