PHP: snmp_read_mib - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

snmp_set_enum_print snmp_get_valueretrieval

Last updated: Fri, 26 Jan 2007

view this page in

# snmp_read_mib

(PHP 5)

snmp_read_mib -- Reads and parses a MIB file into the active MIB tree

## Описание

bool snmp_read_mib ( string filename )

Внимание
К настоящему времени эта функция еще не была документирована; для ознакомления доступен только список аргументов.

add a note User Contributed Notes
snmp_read_mib
ptitgal at hotmail dot com
28-Feb-2006 02:37
`Importing massive Mibs located in a directory
<?php
/******************** Loading Mibs **************/
$mib_path='YourPath';
if ($handle = opendir($mib_path))
{ echo "Directory handle: $handle <br>";
echo "Files: <br>";
while (false !== ($file = readdir($handle)))
{ if($file!='.')
{ if($file!='..')
{ echo "Read : ";
echo "$mib_path.$file";
if(snmp_read_mib($mib_path.'\\'.$file)) echo " Succesful <br>";
else echo " Failed <br>";
}
}
}
}
closedir($handle);
?>`
add a note
snmp_set_enum_print snmp_get_valueretrieval

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST