mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more debugging
git-svn-id: http://www.observium.org/svn/observer/trunk@760 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -81,7 +81,9 @@ if (isset($peerlist))
|
||||
unset($af_list);
|
||||
$af_cmd = $config['snmpwalk'] . " -CI -m CISCO-BGP4-MIB -OsQ -" . $device['snmpver'] . " -c" . $device['community'] . " " . $device['hostname'].":".$device['port'] . " ";
|
||||
$af_cmd .= "cbgpPeerAddrFamilyName." . $peer['ip'];
|
||||
$afs = trim(str_replace("cbgpPeerAddrFamilyName.".$peer['ip'].".", "", `$af_cmd`));
|
||||
$af_data = shell_exec($af_cmd);
|
||||
if($debug) { echo("afi data :: $af_data \n"); }
|
||||
$afs = trim(str_replace("cbgpPeerAddrFamilyName.".$peer['ip'].".", "", $af_data));
|
||||
foreach (explode("\n", $afs) as $af)
|
||||
{
|
||||
if($debug) { echo("AFISAFI = $af\n"); }
|
||||
|
Reference in New Issue
Block a user