<% local uci = luci.model.uci.cursor() telnet_enable = uci:get("system","telnet","enable") cloud_status = luci.util.trim(luci.util.exec("LD_LIBRARY_PATH=/opt/netgear/usr/lib /opt/netgear/usr/bin/insight-cli get brokerd-status |grep 'insight_state' |grep -v 'insight_state_message' |awk -F ' ' '{print $2}'|cut -d ',' -f1")) or "0" %> <% if uci:get('functionlist','functionlist','SUPPORT_MYID') == '1' then %> <%+myid%> <% end %> <%+header%> <% local md5_mac = luci.util.split(luci.util.exec("sh /usr/sbin/check_code.sh"), "\n") %>

<%:Management Mode: Choose whether to manage the AirBridge device in NETGEAR Insight Mode or in Standalone Mode.%>
<%:NETGEAR Insight Mode: Manage the device through the Insight app or Insight Cloud portal.%>
<%:Standalone Mode: Manage as a standalone device through the local browser interface using the IP address.%>

<%:A secure communication protocol can be enabled to allow secure remote shell access or command execution.%>

<%:A secure communication protocol can be enabled to allow secure management web access over a computer network.%>

<% if uci:get('functionlist','functionlist','SUPPORT_TELNET_SETTING') == '1' then %> <% end %> <% if (uci:get('functionlist','functionlist','SUPPORT_CAPWAP_CONTROL') == '1') then -----#### SUPPORT_CAPWAP_CONTROL START ### %>
<% if uci:get('functionlist','functionlist','SUPPORT_ATKK_FW_VERSION') == '1' then -----#### SUPPORT_ATKK_FW_VERSION START ### %> <% else -----#### SUPPORT_ATKK_FW_VERSION else #### %> <% end -----#### SUPPORT_ATKK_FW_VERSION END #### %>
<%:Controller Settings%>
"/>
<%:Disconnect%>
<%=md5_mac[1]%>
<% end-----#### SUPPORT_CAPWAP_CONTROL END #### %> <% if uci:get('functionlist','functionlist','SUPPORT_MANAGEMENT_MODE') == '1' then -----#### SUPPORT_MANAGEMENT_MODE START ### %>
<%if (uci:get('apcontroller','capwap','enable') == '1') then %> <% end %>
<%:Management Mode%>
   
<%:Cloud Connectivity Status%>
<% if cloud_status == '3' or cloud_status == '4' then %> <%:Connected%> <% else %> <%:Disconnected%> <% end %>
 <%:Apply saved settings to take effect %>
<% end-----#### SUPPORT_MANAGEMENT_MODE END #### %>
<% if uci:get('functionlist','functionlist','SUPPORT_SNMP_GEN_MAIN_PORT') == '1' then -----#### SUPPORT_SNMP_GEN_MAIN_PORT START ### %> <% end -----#### SUPPORT_SNMP_GEN_MAIN_PORT END ### %>
<%:SNMP Settings%>
<%:Contact%>
<%:Location%>
<%:Port%>
<%:Community Name (Read Only)%>
<%:Community Name (Read Write)%>
<%:Trap Destination%>
- <%:Port%>
- <%:IP Address%>
- <%:Community Name%>
<%:SNMPv3 Settings%>
- <%:Username%>  <%:(1-31 Characters)%>
- <%:Authorized Protocol%>
- <%:Authorized Key%>  <%:(8-32 Characters)%>
- <%:Private Protocol%>
- <%:Private Key%>  <%:(8-32 Characters)%>
- <%:Engine ID%>
<%:CLI Setting%>
<% if uci:get('functionlist','functionlist','SUPPORT_TELNET_SETTING') == '1' then %>
<%:TELNET Setting%>
<% end %>
<%:SSH Setting%>
<%:HTTPS Settings%>
<%:Email Alert%>
<%:Status%>
- <%:From%>
- <%:To%>
- <%:Subject%>
<%:Email Account%>
- <%:Username%>
- <%:Password%>  
- <%:SMTP Server%>   <%:Port:%>
- <%:Security Mode%>
<% if (uci:get('functionlist','functionlist','SUPPORT_CAPWAP_CONTROL') == '1') then -----#### SUPPORT_CAPWAP_CONTROL START ### %>  <%:Apply saved settings to take effect %> <%else%>  <%:Apply saved settings to take effect %> <%end%>
<%+footer%>