PHP : Function Reference : SNMP Functions : snmp_read_mib
ptitgal
Importing massive Mibs located in a directory
<?php
/******************** Loading Mibs **************/
$mib_path='YourPath';
if ($handle = opendir($mib_path))
{ echo "Directory handle: $handle ";
echo "Files: ";
while (false !== ($file = readdir($handle)))
{ if($file!='.')
{ if($file!='..')
{ echo "Read : ";
echo "$mib_path.$file";
if(snmp_read_mib($mib_path.'\\'.$file)) echo " Succesful ";
else echo " Failed ";
}
}
}
}
closedir($handle);
?>
|
|