more debugging

git-svn-id: http://www.observium.org/svn/observer/trunk@760 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-02-04 16:30:41 +00:00
parent 31d6a9e6c0
commit e00f4a8163

View File

@ -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"); }