Network Timezone is not configured yet. Currently default timezone(UTC) is being used for showing past data. Please Configure it here.
<% end -%>
<%= link_to_if (can? :manage, RouterInventory), "Device", inventory_index_path, {:class=>"text-info"} %> <%= @inventory.name_with_mac_id%> ( Last Seen: ">- ) <% if(can? :manage, @inventory) -%> <%= link_to (" Reboot").html_safe, "#", class: "btn btn-info pull-right reboot-btn", style: "display:none;" %> <% end -%>
Configuration<% if(can? :manage, @inventory) || (can? :update, @inventory) -%> |
<%= link_to "Edit configuration","javascript:void(0);",:class=>"right-align-text label label-success",:id=>"a_edit"%><% end -%>
<% e = link_to @enabled_ssids, "javascript:void(0)", :id=>"enabled", :class=>"en_dis",:url_link=> url_for({:controller=>'inventory',:action=>'show_enable_disable', :id=>@inventory.id}) d = link_to @disabled_ssids, "javascript:void(0)", :id=>"disabled", :class=>"en_dis" ch = router_channel_nummber @inventory, @network_radio_profile po = router_power_nummber @inventory, @network_radio_profile radio_details = [["24",ch['2.4'],po['2.4'],@inventory.id.to_s],["5",ch['5'],po['5'],@inventory.id.to_s]] %> <% hs = {"MAC Address"=>@inventory.mac_id, "Serial Number"=>@inventory.router_serial_number, "Notes"=>@inventory.notes, "Address"=> formatted_address(@inventory), "Tags"=>@inventory.tag_list.to_s, "Channel"=>@inventory.channel, "Power"=>@inventory.power, "Enable L2oGRE"=> @inventory.enable_gre_on_lan.blank? || "0".eql?(@inventory.enable_gre_on_lan) ? "Disabled" : "Enabled", "Enable DHCP"=> @inventory.enable_dhcp_on_lan.blank? || "0".eql?(@inventory.enable_dhcp_on_lan) ? "Disabled": "Enabled", "Latitude" => @inventory.latitude || '(Drag marker on map to set)', "Longitude" => @inventory.longitude || '(Drag marker on map to set)', "SSIDs"=> (@enabled_ssids == 0 && @disabled_ssids == 0) ? nil : (e.to_s+" enabled, "+d.to_s+" disabled"), #"Radio" => radio_details, "Uplinks" => @inventory.uplinks} %>
<%if @inventory.hardware_part_id == 10%>
<%= image_tag "https://cloud.prontonetworks.com/assets/device_model/PC-31.png", width: "300" %>
<%end%>
<%= inventory_show(hs) %>
Note: By dragging marker you can set new location for your device.
<%if @inventory.hardware_part_id == 10 %> <%else%> <%end%>Status
<%= render "status" %>System Information
<%= render "system" %>Memory Information
<%= render "meminfo" %>
<%= render "ethernet_traffic" %>
Clients Devices
Downstream
<%= render "connected_clients",:locals => { :client_details => @client_details } %>
<% if @inventory.get_bands.present? %>
<% if !@inventory.get_bands.radio_settings.where(band: "2.4").first.try(:is_disable) %>
<% ch_u_2 = @inventory.get_bands.radio_settings.where(band: "2.4").first.try(:channel_utlilization)%>
<% if false %>
Radio 2.4 GHz
<% end %>
<% else %>
<% ch_u_2 = @default_radio["RADIO_SETTINGS"][0]["CH_UTIL_EN"] %>
<% if ch_u_2 %>
<% end %>
Channel Utilization(%) for 2.4 GHz
Radio 2.4 GHz
<% end %>
<% if @inventory.get_bands.present? %>
<% if !@inventory.get_bands.radio_settings.where(band: "5").first.try(:is_disable) %>
<% ch_u_5 = @inventory.get_bands.radio_settings.where(band: "5").first.try(:channel_utlilization)%>
<% if ch_u_2 %>
<% end %>
Channel Utilization(%) for 2.4 GHz
Radio 5 GHz
<% else %>
<% end %>
<% else %>
<% ch_u_5 = @default_radio["RADIO_SETTINGS"][1]["CH_UTIL_EN"] %>
<% if ch_u_5 %>
<% end %>
Channel Utilization(%) for 5 GHz
Radio 5 GHz
<% end %>
<% if ch_u_2 %>
<% end %>
Channel Utilization(%) for 5 GHz
<%= render "air_quality" %>
<% end -%>
<% if @port_count %>
<%= render "port_details" if true%>
<% end %>
<%= render "live_connectivity" %>
<%= render "dhcp_subnet" %>
<%= render "vlan_table" %>
<%= render "data_usages" %>