From: kkalev Date: Thu, 26 Sep 2002 21:37:11 +0000 (+0000) Subject: Use CISCO-AAA-SESSION-MIB in snmpfinger X-Git-Url: https://git.entuzijast.net/?a=commitdiff_plain;h=d87f3b70259815d6f5dd182737a53343e9b72330;p=freeradius-dialup-admin.git Use CISCO-AAA-SESSION-MIB in snmpfinger --- diff --git a/Changelog b/Changelog index 012e114..21f3c34 100644 --- a/Changelog +++ b/Changelog @@ -13,6 +13,7 @@ Ver 1.60: used for initialization). * html fixes in accounting.php3 * Fix a problem in user_accounting when NASIPAddress is not set. +* Use CISCO-AAA-SESSION-MIB in snmpfinger Ver 1.59: * Small html fixes in user_edit.php3 and password.php3 * Show number of failed logins in the last 7 days in the user admin page diff --git a/bin/snmpfinger b/bin/snmpfinger index 94353f9..6d9ca80 100755 --- a/bin/snmpfinger +++ b/bin/snmpfinger @@ -1,11 +1,14 @@ #!/usr/bin/perl -$SNMPWALK="/usr/bin/snmpwalk"; +$SNMPWALK="/usr/local/snmpd/bin/snmpwalk"; $host=shift; $comm=shift || 'public'; -$walk =`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.2.9.2.1.18`; -$walk.=`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.9.27.1.1.3.1.7`; +$walk =`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.9.150.1.1.3.1.2`; +if ($walk =~ /^$/){ + $walk =`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.2.9.2.1.18`; + $walk.=`$SNMPWALK $host $comm .iso.org.dod.internet.private.enterprises.9.9.27.1.1.3.1.7`; +} while($walk=~/\"([\w\-]+?)\"/g){ $user=lc($1);