diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2015-04-01 03:50:56 +0200 |
---|---|---|
committer | root <root@einstein.tg15.gathering.org> | 2015-04-01 03:50:56 +0200 |
commit | cfa430c07029868bdfd65714fd4974892467b4f4 (patch) | |
tree | 99972c5503af560332f053c13326498f7466c0ae /clients/lldpdiscover.pl | |
parent | d284e121df845de3118b720e374bf3bcfd1c9317 (diff) |
Changes...
Diffstat (limited to 'clients/lldpdiscover.pl')
-rwxr-xr-x | clients/lldpdiscover.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/lldpdiscover.pl b/clients/lldpdiscover.pl index f72314e..2f33bd9 100755 --- a/clients/lldpdiscover.pl +++ b/clients/lldpdiscover.pl @@ -37,7 +37,7 @@ while (my $ref = $snmpq->fetchrow_hashref) { } # First, find all machines that lack an LLDP chassis ID. -my $q = $dbh->prepare("SELECT switch, ip, community FROM switches WHERE lldp_chassis_id IS NULL AND ip <> '127.0.0.1'"); +my $q = $dbh->prepare("SELECT switch, ip, community FROM switches WHERE lldp_chassis_id IS NULL AND ip <> '127.0.0.1' and switchtype <> 'ex2200'"); $q->execute; while (my $ref = $q->fetchrow_hashref) { @@ -58,7 +58,7 @@ while (my $ref = $q->fetchrow_hashref) { $dbh->commit; # Now ask all switches for their LLDP neighbor table. -$q = $dbh->prepare("SELECT ip, sysname, community FROM switches WHERE lldp_chassis_id IS NOT NULL AND ip <> '127.0.0.1' AND switchtype <> 'dlink3100'"); +$q = $dbh->prepare("SELECT ip, sysname, community FROM switches WHERE lldp_chassis_id IS NOT NULL AND ip <> '127.0.0.1' AND switchtype <> 'ex2200'"); $q->execute; while (my $ref = $q->fetchrow_hashref) { |