From 0c5b8766d01e848c104d9a63764318fd9360b73d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Fri, 18 Jun 2021 14:05:59 +0200 Subject: [PATCH] Change snmpwalk behaviour in module configuration --- .../agentes/module_manager_editor_network.php | 45 +------------------ 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/pandora_console/godmode/agentes/module_manager_editor_network.php b/pandora_console/godmode/agentes/module_manager_editor_network.php index be00db6518..d47a3b37be 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_network.php +++ b/pandora_console/godmode/agentes/module_manager_editor_network.php @@ -577,12 +577,7 @@ $(document).ready (function () { $('#text-ip_target').keyup(function() { $('#text-target_ip').val($(this).val()); }); - $('#text-target_ip').keyup(function() { - $('#text-ip_target').val($(this).val()); - }); - $('#text-community').keyup(function() { - $('#text-snmp_community').val($(this).val()); - }); + $('#text-snmp_community').keyup(function() { $('#text-community').val($(this).val()); }); @@ -591,61 +586,25 @@ $(document).ready (function () { // Display or collapse the SNMP browser's v3 options checkSNMPVersion (); }); - $('#snmp_browser_version').change(function() { - $('#snmp_version').val($(this).val()); - - // Display or collapse the SNMP v3 options in the main window - if ($(this).val() == "3") { - $("#simple-field_snmpv3_row1").attr("style", ""); - $("#simple-field_snmpv3_row2").attr("style", ""); - $("#simple-field_snmpv3_row3").attr("style", ""); - $("input[name=active_snmp_v3]").val(1); - $("input[name=snmp_community]").attr("disabled", true); - } - else { - $("#simple-field_snmpv3_row1").css("display", "none"); - $("#simple-field_snmpv3_row2").css("display", "none"); - $("#simple-field_snmpv3_row3").css("display", "none"); - $("input[name=active_snmp_v3]").val(0); - $("input[name=snmp_community]").removeAttr('disabled'); - } - }); $('#snmp3_auth_user').keyup(function() { $('#snmp3_browser_auth_user').val($(this).val()); }); - $('#snmp3_browser_auth_user').keyup(function() { - $('#snmp3_auth_user').val($(this).val()); - }); $('#snmp3_security_level').change(function() { $('#snmp3_browser_security_level').val($(this).val()); }); - $('#snmp3_browser_security_level').change(function() { - $('#snmp3_security_level').val($(this).val()); - }); $('#snmp3_auth_method').change(function() { $('#snmp3_browser_auth_method').val($(this).val()); }); - $('#snmp3_browser_auth_method').change(function() { - $('#snmp3_auth_method').val($(this).val()); - }); $('#snmp3_auth_pass').keyup(function() { $('#snmp3_browser_auth_pass').val($(this).val()); }); - $('#snmp3_browser_auth_pass').keyup(function() { - $('#snmp3_auth_pass').val($(this).val()); - }); $('#snmp3_privacy_method').change(function() { $('#snmp3_browser_privacy_method').val($(this).val()); }); - $('#snmp3_browser_privacy_method').change(function() { - $('#snmp3_privacy_method').val($(this).val()); - }); $('#snmp3_privacy_pass').keyup(function() { $('#snmp3_browser_privacy_pass').val($(this).val()); }); - $('#snmp3_browser_privacy_pass').keyup(function() { - $('#snmp3_privacy_pass').val($(this).val()); - }); + var custom_ip_target = ""; if(custom_ip_target == ''){ $("#text-custom_ip_target").hide();