Cisco 1912 support (yay for dinosours) - number of fixes to be able to support snmp v1, bulkwalk doesnt work

git-svn-id: http://www.observium.org/svn/observer/trunk@666 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-01-11 00:59:05 +00:00
parent 476316f7f8
commit 0508ccc86c
6 changed files with 26 additions and 9 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
echo("Interfaces : ");
$cmd = $config['snmpbulkwalk'] . " -m IF-MIB -O nsq -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];
$cmd = ($device['snmpver'] == 'v1' ? $config['snmpwalk'] : $config['snmpbulkwalk']) . " -m IF-MIB -O nsq -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'];
$cmd .= " ifDescr";
if ($debug) echo("$cmd\n");
$interfaces = trim(shell_exec($cmd));