<%! struct server_spec_type { int max_conn; int cur_conn; int peak_conn; }; struct server_spec_stack { int req_no_total_stateless; int req_no_total_group; int req_no_total_stateful; int req_no_act_stateless; int req_no_act_group; int req_no_act_stateful; string req_no_timesection[16]; string req_per_min_stateless[16]; string req_per_min_group[16]; string req_per_min_stateful[16]; int resp_time_last; int resp_time_avg; int resp_time_min; int ping_time_last; boolean operational; boolean valid; boolean active; boolean responding; int capacity; boolean capacity_is_fixed; int load; int load_static; string error_text; }; struct wdisp_host_info_type { string name; string host_name; string http_port; string https_port; boolean has_abap; boolean has_j2ee; struct server_spec_stack stack[2]; struct server_spec_type http; struct server_spec_type https; }; struct wdisp_group_info_type { string name; string pref_server; string last_server; string next_server; int no_server; }; struct wdisp_url_type { string prefix; string virt_host; string logon_group; string stack; int flags; }; %> <% int host_count, group_count, url_count, nr; int tabsel; string what, browser, group, str, cap, systemID, systemID_show; struct wdisp_host_info_type wdisp_host_info[]; struct wdisp_group_info_type wdisp_group_info[]; struct wdisp_url_type wdisp_url_map[]; systemID = htmlenc(__icm_get_form_field ("systemID")); if (systemID != "000") { systemID_show = " (" + systemID + ")"; } group_count = __wdisp_get_groups (wdisp_group_info, systemID); tabsel = __icm_get_form_field ("tabsel"); if ((tabsel < 0) || (tabsel > group_count)) tabsel = 0; browser = __icm_get_browser_type(); what = anumenc(__icm_get_form_field ("what")); group = wdisp_group_info[tabsel].name; host_count = __wdisp_get_host_info (group, wdisp_host_info, systemID); url_count = __wdisp_get_url_map (wdisp_url_map, systemID, group); %> Table test <% for (nr = 0; nr < host_count; nr++) { %>
<% if (wdisp_host_info[nr].has_abap) { if (!wdisp_host_info[nr].stack[0].active) { __output(""); wdisp_host_info[nr].stack[0].error_text = "Server was manually deactivated"; } else if (!wdisp_host_info[nr].stack[0].valid) { __output(""); wdisp_host_info[nr].stack[0].error_text = "Server is not reachable"; } else if (!wdisp_host_info[nr].stack[0].responding) { __output(""); wdisp_host_info[nr].stack[0].error_text = "Server is not responding to ping requests"; } } else { __output(""); wdisp_host_info[nr].stack[0].error_text = "Server offers no ABAP services"; } %>
"); __output ("Server was manually deactivated"); __output("
"); __output ("Server is not reachable"); __output("
"); __output ("Server is not responding to ping requests"); __output("
"); __output ("Server offers no ABAP services"); __output("
<% if (wdisp_host_info[nr].has_j2ee) { if (!wdisp_host_info[nr].stack[1].active) { __output(""); wdisp_host_info[nr].stack[1].error_text = "Server was manually deactivated"; } else if (!wdisp_host_info[nr].stack[1].valid) { __output(""); wdisp_host_info[nr].stack[1].error_text = "Server is not reachable"; } else if (!wdisp_host_info[nr].stack[1].responding) { __output(""); wdisp_host_info[nr].stack[1].error_text = "Server is not responding to ping requests"; } } else { __output(""); wdisp_host_info[nr].stack[1].error_text = "Server offers no Java services"; } %>
"); __output ("Server was manually deactivated"); __output("
"); __output ("Server is not reachable"); __output("
"); __output ("Server is not responding to ping requests"); __output("
"); __output ("Server offers no Java services"); __output("
<% } %>
Server Group Monitor<%=systemID_show%> Reload Web Dispatcher configuration Refresh

<% for (nr = 0; nr <% } %>
class="sapTbsTabSel"> <%=wdisp_group_info[nr].name%> <% } else { %> class="sapTbsTab"> <%=wdisp_group_info[nr].name%> <% } %>
Status of Server Group "<%=htmlenc(group)%>"
Loadbalancing Information
Number of Servers in this group <%= wdisp_group_info[tabsel].no_server %>
Last used Server <%= wdisp_group_info[tabsel].last_server %>
Preferred next Server <%= wdisp_group_info[tabsel].next_server %>
 
<% for (nr = 0; nr < host_count; nr++) { %> <% __output(""); __output(""); %> <% } %>
Hosts in Group
Nr. Operational (ABAP) Operational (Java) Name Hostname
<%= nr %>"); if (wdisp_host_info[nr].has_abap) { if (wdisp_host_info[nr].stack[0].operational) __output ("\"OK\""); else { __output (""); __output ("\"","); __output (""); } } else { __output (""); __output("-"); } __output(""); if (wdisp_host_info[nr].has_j2ee) { if (wdisp_host_info[nr].stack[1].operational) __output ("\"OK\""); else { __output (""); __output ("\"","); __output (""); } } else { __output (""); __output("-"); } __output(" <%= wdisp_host_info[nr].name %> <%= wdisp_host_info[nr].host_name %>
 
<% for (nr = 0; nr < url_count; nr++) { %> <% } %>
URL Prefixes for this Logon Group
Nr. URL Virtual Host Stack
<%= nr %> <%=wdisp_url_map[nr].prefix%> <%=wdisp_url_map[nr].virt_host %> <%=wdisp_url_map[nr].stack %>