2010-08-11 Sergio Martin <sergio.martin@artica.es>

* godmode/agentes/module_manager_editor.php: Changed the old way of
	get a snmpwalk to use the new function get_snmpwalk



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3128 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-08-11 12:00:53 +00:00
parent 1050f1a048
commit 4db095873b
2 changed files with 8 additions and 17 deletions
pandora_console

@ -1,3 +1,8 @@
2010-08-11 Sergio Martin <sergio.martin@artica.es>
* godmode/agentes/module_manager_editor.php: Changed the old way of
get a snmpwalk to use the new function get_snmpwalk
2010-08-11 Sergio Martin <sergio.martin@artica.es>
* include/functions.php: Changed the newst function added name

@ -81,24 +81,10 @@ if (is_ajax ()) {
$snmp3_privacy_method = get_parameter('snmp3_privacy_method');
$snmp3_privacy_pass = get_parameter('snmp3_privacy_pass');
snmp_set_quick_print (1);
switch ($snmp_version) {
case '3':
$snmpwalk = @snmp3_real_walk ($ip_target, $snmp3_auth_user,
$snmpwalk = 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, null);
break;
case '2':
case '2c':
$snmpwalk = @snmp2_real_walk ($ip_target, $snmp_community, NULL);
break;
case '1':
default:
$snmpwalk = @snmprealwalk ($ip_target, $snmp_community, NULL);
break;
}
$snmp3_privacy_method, $snmp3_privacy_pass, 1);
if ($snmpwalk === false) {
echo json_encode ($snmpwalk);
return;