diff options
author | Steinar H. Gunderson <sgunderson@bigfoot.com> | 2014-04-06 14:24:55 +0200 |
---|---|---|
committer | Steinar H. Gunderson <sgunderson@bigfoot.com> | 2014-04-06 14:24:55 +0200 |
commit | d2ccb04d77e266fa690831d8734389ae24807155 (patch) | |
tree | 5cefb2305c945f85844ccd37fe45afc8c93d810a /clients/accesspoints.pl | |
parent | 72f79dcd924420e9f3237c263c22f97ef36fba06 (diff) |
Switch from Net::SNMP to SNMP, since it has much better table support and seems to be faster.
Diffstat (limited to 'clients/accesspoints.pl')
-rwxr-xr-x | clients/accesspoints.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clients/accesspoints.pl b/clients/accesspoints.pl index 3e62996..85a32c2 100755 --- a/clients/accesspoints.pl +++ b/clients/accesspoints.pl @@ -35,7 +35,7 @@ sub poll_loop { my $blade = $aps->{'blade'}; my $port = $aps->{'port'}; my $oid = "1.3.6.1.2.1.105.1.1.1.9.$blade.$port"; # POWER-ETHERNET-MIB...pethPsePortType - my $mode = $session->get_request(-varbindlist=>[$oid])->{$oid}; + my $mode = $session->get($oid); $qpoll->execute($mode, $aps->{'switch'}); printf "%s (%s:%s/%s): %s\n", $sysname, $core, $blade, $port, $mode; } |