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 /web/nms.gathering.org/api/read | |
parent | 110b939413ebc7a1b4ef1dc5a5988477d9c594bd (diff) | |
parent | 72fb92979ca3dbbbeb55159ce3a9404b8ba49099 (diff) |
Merge branch 'master' of https://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, 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 6b5fdcd..1bb4c4c 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,community,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,last_updated,switchtype from switches where placement is not null'); $q2->execute(); while (my $ref = $q2->fetchrow_hashref()) { |