mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -2,7 +2,7 @@
|
||||
|
||||
if($device['os_group'] == "ios") {
|
||||
$portifIndex = array();
|
||||
$cmd = $config['snmpwalk'] . " -CI -m CISCO-STACK-MIB -O q -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " portIfIndex";
|
||||
$cmd = ($device['snmpver'] == 'v1' ? $config['snmpwalk'] : $config['snmpbulkwalk']) . " -CI -m CISCO-STACK-MIB -O q -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " portIfIndex";
|
||||
#echo("$cmd");
|
||||
$portifIndex_output = trim(shell_exec($cmd));
|
||||
foreach(explode("\n", $portifIndex_output) as $entry){
|
||||
|
Reference in New Issue
Block a user