2010-12-27 Sancho Lerena <slerena@artica.es>
* include/functions.php: get_snmpwalk() now accepts a specific part of the SNMP MIB, that allow to do not search the full mib on user selection. (Used on the enterprise massive SNMP module adition). git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3709 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
52011f82f1
commit
d8a39fe57d
|
@ -1,3 +1,9 @@
|
|||
2010-12-27 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* include/functions.php: get_snmpwalk() now accepts a specific part of
|
||||
the SNMP MIB, that allow to do not search the full mib on user selection.
|
||||
(Used on the enterprise massive SNMP module adition).
|
||||
|
||||
2010-12-23 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* DEBIAN/control: added php5-curl dependency.
|
||||
|
|
|
@ -1108,7 +1108,7 @@ function array_key_to_offset($array, $key) {
|
|||
*/
|
||||
function get_snmpwalk($ip_target, $snmp_version, $snmp_community = '', $snmp3_auth_user = '',
|
||||
$snmp3_security_level = '', $snmp3_auth_method = '', $snmp3_auth_pass = '',
|
||||
$snmp3_privacy_method = '', $snmp3_privacy_pass = '', $quick_print = 0) {
|
||||
$snmp3_privacy_method = '', $snmp3_privacy_pass = '', $quick_print = 0, $base_oid = NULL) {
|
||||
|
||||
snmp_set_quick_print ($quick_print);
|
||||
|
||||
|
@ -1116,15 +1116,15 @@ function get_snmpwalk($ip_target, $snmp_version, $snmp_community = '', $snmp3_au
|
|||
case '3':
|
||||
$snmpwalk = @snmp3_real_walk ($ip_target, $snmp3_auth_user,
|
||||
$snmp3_security_level, $snmp3_auth_method, $snmp3_auth_pass,
|
||||
$snmp3_privacy_method, $snmp3_privacy_pass, null);
|
||||
$snmp3_privacy_method, $snmp3_privacy_pass, $base_oid);
|
||||
break;
|
||||
case '2':
|
||||
case '2c':
|
||||
$snmpwalk = @snmp2_real_walk ($ip_target, $snmp_community, NULL);
|
||||
$snmpwalk = @snmp2_real_walk ($ip_target, $snmp_community, $base_oid);
|
||||
break;
|
||||
case '1':
|
||||
default:
|
||||
$snmpwalk = @snmprealwalk($ip_target, $snmp_community, null);
|
||||
$snmpwalk = @snmprealwalk($ip_target, $snmp_community, $base_oid);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue