Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
Bookmark this on Delicious
Share on Facebook
Slashdot It!
Digg
PHP
:
Function Reference
:
SNMP Functions
: snmp_read_mib
snmp_read_mib
Reads and parses a MIB file into the active MIB tree
(
PHP 5
)
bool
snmp_read_mib
(
string
filename
)
Warning:
This function is currently not documented; only the argument list is available.
<< snmp_get_valueretrieval
PHP
:
Function Reference
:
SNMP Functions
: snmp_read_mib
snmp_set_enum_print >>
Code Examples / Notes » 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);
?>
Change Language
snmp_get_quick_print
snmp_get_valueretrieval
snmp_read_mib
snmp_set_enum_print
snmp_set_oid_numeric_print
snmp_set_oid_output_format
snmp_set_quick_print
snmp_set_valueretrieval
snmpget
snmpgetnext
snmprealwalk
snmpset
snmpwalk
snmpwalkoid