1 | <?xml version="1.0"?>
|
---|
2 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
3 | <xsl:output method="html"/>
|
---|
4 |
|
---|
5 | <xsl:template match="cws-status-resp">
|
---|
6 | <div id="header">
|
---|
7 | <div id="headerInfoLeft"><xsl:call-template name="jvm"/></div>
|
---|
8 | <div id="headerInfo">
|
---|
9 | <img id="busyImg" src="/images/bigrotation.gif" alt="loading" style="visibility: hidden;"/>
|
---|
10 | </div>
|
---|
11 |
|
---|
12 | </div>
|
---|
13 | <div id="subheader">
|
---|
14 | <a href="#" id="events">Events</a> 
|
---|
15 | <a href="#" id="channels">Channels</a> 
|
---|
16 | <a href="#" id="status">Status</a> 
|
---|
17 | <a href="#" id="sessions">Sessions</a> 
|
---|
18 | <a href="#" id="admin" style="visibility: hidden">Admin</a> 
|
---|
19 | <a href="#" id="config" style="visibility: hidden">Config</a> 
|
---|
20 | <!-- <a href="#" id="viewXml">View XML</a>  -->
|
---|
21 | <a href="#" id="logout" style="visibility: visible; position: absolute; left: 745px">Logout</a>
|
---|
22 | </div>
|
---|
23 | <div id="mainstart"> </div>
|
---|
24 | <div id="main">
|
---|
25 | <div id="content">
|
---|
26 | <xsl:apply-templates/>
|
---|
27 | </div>
|
---|
28 | </div>
|
---|
29 | <div id="footer"> </div>
|
---|
30 | </xsl:template>
|
---|
31 |
|
---|
32 | <xsl:template match="error-log">
|
---|
33 | <xsl:call-template name="profile-filter"/>
|
---|
34 | <fieldset>
|
---|
35 | <legend><strong>CWS Events</strong> (connector activities) <input id="clearEventsBtn" type="button" value="Clear"/> </legend>
|
---|
36 | <table class="error-log">
|
---|
37 | <tbody>
|
---|
38 | <tr><td>
|
---|
39 | <xsl:for-each select="event">
|
---|
40 | <xsl:value-of select="@timestamp"/> -
|
---|
41 | <strong> <xsl:value-of select="@label"/>: </strong>
|
---|
42 | <strong>
|
---|
43 | <xsl:choose>
|
---|
44 | <xsl:when test="@type = 1">Channel changed</xsl:when>
|
---|
45 | <xsl:when test="@type = 2">Successfully connected</xsl:when>
|
---|
46 | <xsl:when test="@type = 3">Disconnected</xsl:when>
|
---|
47 | <xsl:when test="@type = 4">Connection attempt failed</xsl:when>
|
---|
48 | <xsl:when test="@type = 5">Warning (timeout)</xsl:when>
|
---|
49 | <xsl:when test="@type = 6">Lost service</xsl:when>
|
---|
50 | <xsl:when test="@type = 9">Found service</xsl:when>
|
---|
51 | <xsl:when test="@type = 8">Invalid card data</xsl:when>
|
---|
52 | <xsl:when test="@type = 10">Startup</xsl:when>
|
---|
53 | <xsl:otherwise>Unknown</xsl:otherwise>
|
---|
54 | </xsl:choose>
|
---|
55 | </strong> - <xsl:value-of select="@msg"/><br />
|
---|
56 | </xsl:for-each>
|
---|
57 | <xsl:if test="@size = 0">No events</xsl:if>
|
---|
58 | </td></tr>
|
---|
59 | </tbody>
|
---|
60 | </table>
|
---|
61 | </fieldset><br /><br />
|
---|
62 | </xsl:template>
|
---|
63 |
|
---|
64 | <xsl:template match="file-log">
|
---|
65 | <xsl:if test="@size > -1">
|
---|
66 | <fieldset>
|
---|
67 | <legend><strong>File Log Events</strong> (recent WARNING and SEVERE level loggings) <input id="clearFileLogBtn" type="button" value="Clear"/> </legend>
|
---|
68 | <table class="error-log">
|
---|
69 | <tbody>
|
---|
70 | <tr><td>
|
---|
71 | <xsl:for-each select="event">
|
---|
72 | <xsl:value-of select="@timestamp"/> -
|
---|
73 | <strong> <xsl:value-of select="@log-level"/>: </strong>
|
---|
74 | <strong><xsl:value-of select="@label"/></strong> - <xsl:value-of select="@msg"/><br />
|
---|
75 | </xsl:for-each>
|
---|
76 | <xsl:if test="@size = 0">No events</xsl:if>
|
---|
77 | </td></tr>
|
---|
78 | </tbody>
|
---|
79 | </table>
|
---|
80 | </fieldset><br /><br />
|
---|
81 | </xsl:if>
|
---|
82 | </xsl:template>
|
---|
83 |
|
---|
84 | <xsl:key name="ev-by-time" match="ecm" use="substring(@timestamp, 1, string-length(@timestamp) - 3)"/>
|
---|
85 |
|
---|
86 | <xsl:template match="user-warning-log">
|
---|
87 | <fieldset>
|
---|
88 | <legend><strong>User Transaction Warnings</strong> (recent potential traffic problems) <input id="clearWarningsBtn" type="button" value="Clear"/> </legend>
|
---|
89 | <table class="error-log">
|
---|
90 | <tbody>
|
---|
91 | <tr><td> <!-- bwahaha, this is just an insane amount of xsl crud just to get grouping of events per minute -->
|
---|
92 | <xsl:for-each select="ecm[generate-id(.) = generate-id(key('ev-by-time', substring(@timestamp, 1, string-length(@timestamp) - 3))[1])]">
|
---|
93 | <xsl:variable name="curcount" select="count(key('ev-by-time', substring(@timestamp, 1, string-length(@timestamp) - 3)))"/>
|
---|
94 | <xsl:variable name="trunctime" select="substring(@timestamp, 1, string-length(@timestamp) - 3)"/>
|
---|
95 | <xsl:choose>
|
---|
96 | <xsl:when test="$curcount = 1"> <!-- show as single event, no indentation -->
|
---|
97 | <xsl:call-template name="user-warning-entry">
|
---|
98 | <xsl:with-param name="indent" select="''"/>
|
---|
99 | </xsl:call-template>
|
---|
100 | </xsl:when>
|
---|
101 | <xsl:otherwise>
|
---|
102 | <a id="openhref"> <!-- show as group, indented and collapsible with the minute-timestamp as href -->
|
---|
103 | <xsl:attribute name="href"><xsl:value-of select="translate($trunctime, ' ', '_')"/></xsl:attribute>
|
---|
104 | <xsl:value-of select="$trunctime"/> (<xsl:value-of select="$curcount"/> events)
|
---|
105 | </a>
|
---|
106 | <br /><div>
|
---|
107 | <xsl:attribute name="style">display: <xsl:value-of select="@display"/>;</xsl:attribute>
|
---|
108 | <xsl:attribute name="id"><xsl:value-of select="translate($trunctime, ' ', '_')"/></xsl:attribute>
|
---|
109 | <xsl:for-each select="key('ev-by-time', $trunctime)">
|
---|
110 | <xsl:call-template name="user-warning-entry">
|
---|
111 | <xsl:with-param name="indent" select="'   '"/>
|
---|
112 | </xsl:call-template>
|
---|
113 | </xsl:for-each>
|
---|
114 | </div>
|
---|
115 | </xsl:otherwise>
|
---|
116 | </xsl:choose>
|
---|
117 | </xsl:for-each>
|
---|
118 | <xsl:if test="count(ecm) = 0">No warnings (debugging must be enabled per ca-profile for these to be logged)</xsl:if>
|
---|
119 | </td></tr>
|
---|
120 | </tbody>
|
---|
121 | </table>
|
---|
122 | </fieldset><br /><br />
|
---|
123 | <xsl:if test="count(ecm) > 0">
|
---|
124 | <xsl:call-template name="flag-legend"/>
|
---|
125 | </xsl:if>
|
---|
126 | </xsl:template>
|
---|
127 |
|
---|
128 | <xsl:template match="cws-connectors">
|
---|
129 | <xsl:call-template name="proxy-status"/>
|
---|
130 | <br />
|
---|
131 | <xsl:call-template name="cache-status"/>
|
---|
132 | <xsl:call-template name="proxy-plugins"/>
|
---|
133 | <br />
|
---|
134 | <xsl:call-template name="ca-profiles"/>
|
---|
135 | <br />
|
---|
136 | <fieldset>
|
---|
137 | <legend><strong>Connectors (<xsl:value-of select="count(connector)"/>)</strong></legend>
|
---|
138 | <xsl:for-each select="connector">
|
---|
139 | <xsl:sort select="@profile"/>
|
---|
140 | <xsl:sort select="@name"/>
|
---|
141 | <div class="cwsheader">
|
---|
142 | <table border="0" width="98%" cellspacing="0" cellpadding="0"><tr>
|
---|
143 | <td width="25%"><strong><xsl:value-of select="@protocol"/>Cws: </strong>
|
---|
144 | <xsl:choose>
|
---|
145 | <xsl:when test="@duration"> <!-- duration exists == connector is connected -->
|
---|
146 | <a id="openhref">
|
---|
147 | <xsl:attribute name="href"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
148 | <xsl:value-of select="@name"/>
|
---|
149 | </a>
|
---|
150 | </xsl:when>
|
---|
151 | <xsl:otherwise>
|
---|
152 | <xsl:value-of select="@name"/>
|
---|
153 | </xsl:otherwise>
|
---|
154 | </xsl:choose>
|
---|
155 | </td>
|
---|
156 | <td width="20%"><strong>Status: </strong><xsl:value-of select="@status"/></td>
|
---|
157 | <td width="20%"><strong>Profile: </strong><xsl:value-of select="@profile"/></td>
|
---|
158 | <td width="15%">
|
---|
159 | <xsl:if test="@service-count">
|
---|
160 | <strong>Services: </strong><xsl:value-of select="@service-count"/>
|
---|
161 | </xsl:if>
|
---|
162 | <xsl:if test="@disconnected">
|
---|
163 | <strong>Disconnected: </strong><br /><xsl:value-of select="@disconnected"/>
|
---|
164 | </xsl:if>
|
---|
165 | </td>
|
---|
166 | <td width="10%">
|
---|
167 | <xsl:if test="@metric != 1">
|
---|
168 | <strong>Metric: </strong><xsl:value-of select="@metric"/>
|
---|
169 | </xsl:if>
|
---|
170 | </td>
|
---|
171 | <td width="20%" align="right">
|
---|
172 | <xsl:if test="@utilization">
|
---|
173 | <xsl:choose>
|
---|
174 | <xsl:when test="@utilization > 100">
|
---|
175 | <strong><font color="red"><xsl:value-of select="@utilization"/>%</font></strong>
|
---|
176 | </xsl:when>
|
---|
177 | <xsl:otherwise>
|
---|
178 | <xsl:value-of select="@utilization"/>%
|
---|
179 | </xsl:otherwise>
|
---|
180 | </xsl:choose>
|
---|
181 |  (<xsl:value-of select="@ecm-load"/>)
|
---|
182 | </xsl:if>
|
---|
183 | <xsl:if test="@next-attempt">
|
---|
184 | <strong>Retry in: </strong><xsl:value-of select="@next-attempt"/>
|
---|
185 | </xsl:if>
|
---|
186 | </td>
|
---|
187 | </tr>
|
---|
188 | </table>
|
---|
189 | <div class="cwscontent">
|
---|
190 | <xsl:attribute name="style">display: <xsl:value-of select="@display"/>;</xsl:attribute>
|
---|
191 | <xsl:attribute name="id"><xsl:value-of select="concat('toggle-', @name)"/></xsl:attribute>
|
---|
192 | <xsl:if test="@host"><strong>Host: </strong><xsl:value-of select="@host"/><br /></xsl:if>
|
---|
193 | <xsl:if test="@provider-idents"><strong>Provider-idents: </strong><xsl:value-of select="@provider-idents"/><br /></xsl:if>
|
---|
194 | <strong>Connected: </strong><xsl:value-of select="@connected"/><br />
|
---|
195 | <strong>Uptime: </strong><xsl:value-of select="@duration"/><br />
|
---|
196 | <xsl:if test="@card-data1"><strong>Card-data: </strong><xsl:value-of select="@card-data1"/><br /></xsl:if>
|
---|
197 | <strong>Processing time: </strong><xsl:value-of select="@cutime"/> ms (avg: <xsl:value-of select="@avgtime"/> ms)<br />
|
---|
198 | <strong>Utilization: </strong><xsl:value-of select="@utilization"/>% (total: <xsl:value-of select="@avgutilization"/>%)<br />
|
---|
199 | <strong>Estimated capacity: </strong><xsl:value-of select="@capacity"/><br />
|
---|
200 | <strong>Queue size: </strong><xsl:value-of select="@sendq"/><br />
|
---|
201 | <strong>ECM count: </strong><xsl:value-of select="@ecm-count"/><br />
|
---|
202 | <strong>ECM load: </strong><xsl:value-of select="@ecm-load"/> (over the last cw-max-age period)<br />
|
---|
203 | <xsl:if test="@emm-count > 0"><strong>EMM count: </strong><xsl:value-of select="@emm-count"/><br /></xsl:if>
|
---|
204 | <strong>Timeouts: </strong><xsl:value-of select="@timeout-count"/><br />
|
---|
205 | <xsl:if test="@cws-log">
|
---|
206 | <strong>Transaction log: </strong>
|
---|
207 | <a target="_blank">
|
---|
208 | <xsl:attribute name="href">/xmlHandler?command=cws-log&name=<xsl:value-of select="@name"/></xsl:attribute>
|
---|
209 | <xsl:value-of select="@cws-log"/>
|
---|
210 | </a>
|
---|
211 | <br />
|
---|
212 | </xsl:if>
|
---|
213 | <br />
|
---|
214 | <table width="95%" cellspacing="0" cellpadding="0"><tr>
|
---|
215 | <td width="55%" valign="top">
|
---|
216 | <strong>Services: </strong> 
|
---|
217 | <xsl:if test="count(service) > 0">
|
---|
218 | <a target="_blank">
|
---|
219 | <xsl:attribute name="href">/xmlHandler?command=export-services&name=<xsl:value-of select="@name"/></xsl:attribute>
|
---|
220 | show full
|
---|
221 | </a> 
|
---|
222 | <a target="_blank">
|
---|
223 | <xsl:attribute name="href">/xmlHandler?command=export-services&name=<xsl:value-of select="@name"/>&format=hex</xsl:attribute>
|
---|
224 | show hex
|
---|
225 | </a>
|
---|
226 | </xsl:if>
|
---|
227 | <ul>
|
---|
228 | <xsl:for-each select="service">
|
---|
229 | <xsl:sort select="@name"/>
|
---|
230 | <li>
|
---|
231 | <xsl:choose>
|
---|
232 | <xsl:when test="@hit = 'true'"><font color="blue"><strong><xsl:value-of select="@name"/></strong></font></xsl:when>
|
---|
233 | <xsl:otherwise><xsl:value-of select="@name"/></xsl:otherwise>
|
---|
234 | </xsl:choose>
|
---|
235 | <xsl:choose>
|
---|
236 | <xsl:when test="not(starts-with(@name, 'Unknown '))"> (<xsl:value-of select="@hex-id"/><xsl:if test="@profile">:<xsl:value-of select="@profile"/></xsl:if>)</xsl:when>
|
---|
237 | <xsl:otherwise><xsl:if test="@profile"> (<xsl:value-of select="@profile"/>)</xsl:if></xsl:otherwise>
|
---|
238 | </xsl:choose>
|
---|
239 | </li>
|
---|
240 | </xsl:for-each>
|
---|
241 | </ul>
|
---|
242 | </td>
|
---|
243 | <td valign="top">
|
---|
244 | <strong>Remote properties: </strong>
|
---|
245 | <ul>
|
---|
246 | <xsl:for-each select="remote-info/cws-param"><li>
|
---|
247 | <strong><xsl:value-of select="@name"/>: </strong>
|
---|
248 | <xsl:choose>
|
---|
249 | <xsl:when test="@name = 'url'">
|
---|
250 | <a target="_blank">
|
---|
251 | <xsl:attribute name="href"><xsl:value-of select="@value"/></xsl:attribute>
|
---|
252 | <xsl:value-of select="@value"/>
|
---|
253 | </a>
|
---|
254 | </xsl:when>
|
---|
255 | <xsl:otherwise>
|
---|
256 | <xsl:value-of select="@value"/>
|
---|
257 | </xsl:otherwise>
|
---|
258 | </xsl:choose>
|
---|
259 | </li>
|
---|
260 | </xsl:for-each>
|
---|
261 | </ul>
|
---|
262 | </td>
|
---|
263 | </tr></table>
|
---|
264 | </div>
|
---|
265 | </div>
|
---|
266 | </xsl:for-each>
|
---|
267 | </fieldset><br />
|
---|
268 | </xsl:template>
|
---|
269 |
|
---|
270 | <xsl:template match="watched-services">
|
---|
271 | <xsl:call-template name="profile-filter"/>
|
---|
272 |
|
---|
273 | <xsl:if test="count(//linked-services/link/service) > 0">
|
---|
274 | <fieldset>
|
---|
275 | <legend><strong>Channel groups using same dcw (configured, not verified) (<xsl:value-of select="count(//linked-services/link)"/>)</strong></legend><br />
|
---|
276 | <xsl:for-each select="//linked-services/link">
|
---|
277 | <xsl:if test="count(service) > 0">
|
---|
278 | <xsl:value-of select="@id"/>.
|
---|
279 | <xsl:for-each select="service">
|
---|
280 | <xsl:variable name="srvname" select="@name"/>
|
---|
281 | <xsl:variable name="srvprofile" select="@profile"/>
|
---|
282 | <xsl:choose>
|
---|
283 | <xsl:when test="//watched-services/service[@name=$srvname and @profile=$srvprofile]"> <!-- highlight linked services currently being watched -->
|
---|
284 | <font color="blue"><strong><xsl:value-of select="@name"/></strong> (<xsl:value-of select="@profile"/>:<xsl:value-of select="@cdata"/>) </font>
|
---|
285 | </xsl:when>
|
---|
286 | <xsl:otherwise>
|
---|
287 | <strong><xsl:value-of select="@name"/></strong> (<xsl:value-of select="@profile"/>:<xsl:value-of select="@cdata"/>)
|
---|
288 | </xsl:otherwise>
|
---|
289 | </xsl:choose>
|
---|
290 | </xsl:for-each>
|
---|
291 | <br />
|
---|
292 | </xsl:if>
|
---|
293 | </xsl:for-each>
|
---|
294 | <br />
|
---|
295 | </fieldset><br />
|
---|
296 | </xsl:if>
|
---|
297 |
|
---|
298 | <fieldset>
|
---|
299 | <legend><strong>Currently watched channels (<xsl:value-of select="@count"/>)</strong></legend><br />
|
---|
300 | <xsl:for-each select="service">
|
---|
301 | <xsl:sort select="@profile"/>
|
---|
302 | <strong><xsl:value-of select="@name"/></strong> (<xsl:value-of select="@profile"/>:<xsl:value-of select="@hex-id"/>) - <strong><xsl:value-of select="@watchers"/></strong> viewers<br />
|
---|
303 | </xsl:for-each>
|
---|
304 | <xsl:if test="count(service) = 0">No channels</xsl:if>
|
---|
305 | <br />
|
---|
306 | </fieldset><br />
|
---|
307 |
|
---|
308 | <xsl:if test="count(//all-services) = 0">
|
---|
309 | <br />
|
---|
310 | <strong>All mapped channels: </strong><a href="#" id="showAllServices"> show</a>
|
---|
311 | </xsl:if>
|
---|
312 | </xsl:template>
|
---|
313 |
|
---|
314 | <xsl:template match="all-services">
|
---|
315 | <!-- xsl:call-template name="profile-filter"/ -->
|
---|
316 | <!-- xsl:call-template name="watched-services"/ -->
|
---|
317 | <br />
|
---|
318 | <fieldset>
|
---|
319 | <legend><strong>All mapped channels (<xsl:value-of select="@count"/>)</strong></legend><br />
|
---|
320 | <ul id="chanList">
|
---|
321 | <xsl:for-each select="service">
|
---|
322 | <li class="channel">
|
---|
323 | <xsl:attribute name="id"><xsl:value-of select="concat('channel', @id)"/></xsl:attribute>
|
---|
324 | <img width="40">
|
---|
325 | <xsl:attribute name="src"><xsl:value-of select="concat('picon/', @id, '.', @profile, '.png')"/></xsl:attribute>
|
---|
326 | </img>
|
---|
327 | <input name="chanId" type="checkbox">
|
---|
328 | <xsl:attribute name="name"><xsl:value-of select="@id"/></xsl:attribute>
|
---|
329 | <xsl:attribute name="id"><xsl:value-of select="concat('chan', @id)"/></xsl:attribute>
|
---|
330 | </input>
|
---|
331 | <label>
|
---|
332 | <xsl:attribute name="for"><xsl:value-of select="concat('chan', @id)"/></xsl:attribute>
|
---|
333 | <strong><xsl:value-of select="@name"/></strong> (<xsl:value-of select="@profile"/>:<xsl:value-of select="@hex-id"/>)
|
---|
334 | </label>
|
---|
335 | </li>
|
---|
336 | </xsl:for-each>
|
---|
337 | </ul><br />
|
---|
338 | <xsl:if test="count(service) > 0">
|
---|
339 | <input name="checkAllCb" id="checkAllCb" type="checkbox"/>
|
---|
340 | <label for="checkAllCb">Check all</label> 
|
---|
341 | <input name="enigma2Cb" id="enigma2Cb" type="checkbox"/>
|
---|
342 | <label for="enigma2Cb">Use enigma2 format</label> 
|
---|
343 | <input value="Create bouquet file" type="button" id="createChannelFileBtn"/><br />
|
---|
344 | </xsl:if>
|
---|
345 | <xsl:if test="count(service) = 0">
|
---|
346 | No channels<br />
|
---|
347 | </xsl:if>
|
---|
348 | </fieldset>
|
---|
349 | </xsl:template>
|
---|
350 |
|
---|
351 | <xsl:template match="last-seen">
|
---|
352 | <strong>Name: </strong><xsl:value-of select="../proxy-status/@name"/><br />
|
---|
353 | <strong>State: </strong>up<br />
|
---|
354 | <br />
|
---|
355 | <strong>Sessions: </strong><a href="javascript:clickSection('sessions');">show current</a><br />
|
---|
356 | <br />
|
---|
357 | <xsl:for-each select="//last-seen">
|
---|
358 | <xsl:if test="count(entry) > 0">
|
---|
359 | <fieldset id="disconnectedUsers">
|
---|
360 | <legend><strong>Disconnected users (last seen)</strong></legend>
|
---|
361 | <div class="cwsheader">
|
---|
362 | <table border="0" width="80%"><tbody>
|
---|
363 | <tr>
|
---|
364 | <td><strong>User</strong></td><td><strong>Profile</strong></td><td><strong>Last login</strong></td><td><strong>Last seen (or logout)</strong></td><td><strong>IP</strong></td><td><strong>Log</strong></td>
|
---|
365 | </tr>
|
---|
366 | <xsl:for-each select="entry">
|
---|
367 | <xsl:sort order="descending" select="@last-seen"/>
|
---|
368 | <tr>
|
---|
369 | <xsl:if test="position() mod 2 = 1">
|
---|
370 | <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
|
---|
371 | </xsl:if>
|
---|
372 | <td><xsl:value-of select="@name"/></td>
|
---|
373 | <td><xsl:value-of select="@profile"/></td>
|
---|
374 | <td><xsl:value-of select="@last-login"/></td>
|
---|
375 | <td><xsl:value-of select="@last-seen"/></td>
|
---|
376 | <td><xsl:value-of select="@host"/></td>
|
---|
377 | <td><a target="_blank">
|
---|
378 | <xsl:attribute name="href">/xmlHandler?command=user-log&name=<xsl:value-of select="@name"/>&profile=<xsl:value-of select="@profile"/></xsl:attribute>
|
---|
379 | <xsl:value-of select="@user-log"/>
|
---|
380 | </a></td>
|
---|
381 | </tr>
|
---|
382 | </xsl:for-each>
|
---|
383 | </tbody></table>
|
---|
384 | </div>
|
---|
385 | </fieldset>
|
---|
386 | </xsl:if>
|
---|
387 | </xsl:for-each>
|
---|
388 | <br />
|
---|
389 | </xsl:template>
|
---|
390 |
|
---|
391 | <xsl:template match="login-failures">
|
---|
392 | <strong>Name: </strong><xsl:value-of select="../proxy-status/@name"/><br />
|
---|
393 | <strong>State: </strong>up<br />
|
---|
394 | <br />
|
---|
395 | <strong>Sessions: </strong><a href="javascript:clickSection('sessions');">show current</a><br />
|
---|
396 | <br />
|
---|
397 | <xsl:for-each select="//login-failures">
|
---|
398 | <xsl:if test="count(entry) > 0">
|
---|
399 | <fieldset id="disconnectedUsers">
|
---|
400 | <legend><strong>Login failures/connection attempts</strong></legend>
|
---|
401 | <div class="cwsheader">
|
---|
402 | <table border="0" width="99%"><tbody>
|
---|
403 | <tr>
|
---|
404 | <td><strong>User</strong></td><td><strong>Context</strong></td><td><strong>Count</strong></td><td><strong>Last failure</strong></td><td><strong>IP</strong></td><td><strong>Reason</strong></td>
|
---|
405 | </tr>
|
---|
406 | <xsl:for-each select="entry">
|
---|
407 | <xsl:sort order="descending" select="@last-failure"/>
|
---|
408 | <tr>
|
---|
409 | <xsl:if test="position() mod 2 = 1">
|
---|
410 | <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
|
---|
411 | </xsl:if>
|
---|
412 | <td><xsl:value-of select="@name"/></td>
|
---|
413 | <td><xsl:value-of select="@context"/></td>
|
---|
414 | <td><xsl:value-of select="@failure-count"/></td>
|
---|
415 | <td><xsl:value-of select="@last-failure"/></td>
|
---|
416 | <td><xsl:value-of select="@host"/></td>
|
---|
417 | <td><xsl:value-of select="@reason"/></td>
|
---|
418 | </tr>
|
---|
419 | </xsl:for-each>
|
---|
420 | </tbody></table>
|
---|
421 | </div>
|
---|
422 | </fieldset>
|
---|
423 | </xsl:if>
|
---|
424 | </xsl:for-each>
|
---|
425 | <br />
|
---|
426 | </xsl:template>
|
---|
427 |
|
---|
428 | <xsl:template match="proxy-users">
|
---|
429 | <strong>Name: </strong><xsl:value-of select="../proxy-status/@name"/><br />
|
---|
430 | <strong>State: </strong>up<br />
|
---|
431 | <strong>Profiles: </strong><xsl:value-of select="count(../ca-profiles/profile)"/><br />
|
---|
432 | <xsl:if test="@count > 1"><strong>Users: </strong><xsl:value-of select="@count"/><br /></xsl:if>
|
---|
433 | <strong>Sessions: </strong><xsl:value-of select="../proxy-status/@sessions"/> (active: <xsl:value-of select="../proxy-status/@active-sessions"/>)<br />
|
---|
434 | <br />
|
---|
435 | <strong>Disconnected users/last seen: </strong><a href="javascript:clickSection('seen');">show log</a><br />
|
---|
436 | <strong>Login failures/connect attempts: </strong><a href="javascript:clickSection('failures');">show log</a> (<xsl:value-of
|
---|
437 | select="@login-failures"/> entries)<br />
|
---|
438 | <br />
|
---|
439 | <input type="checkbox" name="hideInactiveCb" id="hideInactiveCb">
|
---|
440 | <xsl:if test="@hide-inactive">
|
---|
441 | <xsl:attribute name="checked">checked</xsl:attribute>
|
---|
442 | </xsl:if>
|
---|
443 | </input>
|
---|
444 | <label for="hideInactiveCb">Hide idle sessions</label><br />
|
---|
445 | <br />
|
---|
446 | <div class="cwsheader" style="width: 750px;">
|
---|
447 | <table id="userSessions" border="0" width="100%"><tbody>
|
---|
448 | <tr>
|
---|
449 | <td><strong>User</strong></td><td title="Number of connections/maximum"><strong>#</strong></td><td><strong>IP</strong></td><td title="Start Date"><strong>Start</strong></td><td title="Expire Date"><strong>Expire</strong></td><td title="Kick User"><strong>Kick</strong></td>
|
---|
450 | <td><strong>
|
---|
451 | <xsl:choose>
|
---|
452 | <xsl:when test="@toggle-duration"><a href="#" id="toggleDuration" title="Toggle Connected/Zapped Time">Zapped</a></xsl:when>
|
---|
453 | <xsl:otherwise><a href="#" id="toggleDuration" title="Toggle Connected/Zapped Time">Connected</a></xsl:otherwise>
|
---|
454 | </xsl:choose>
|
---|
455 | </strong></td>
|
---|
456 | <td title="ECMs sent by client since connect"><strong>ECM</strong></td><td title="EMMs sent by client since connect"><strong>EMM</strong></td>
|
---|
457 | <td title="Interval between ECMs (sliding window average)"><strong>Iv</strong></td><td title="Processing time for last ECM transaction"><strong>Time</strong></td>
|
---|
458 | <td title="Proxy flags for last ECM transaction"><strong>Flags</strong></td><td><strong>ClientID</strong></td><td><strong>Service</strong></td>
|
---|
459 | </tr>
|
---|
460 | <xsl:for-each select="../ca-profiles/profile">
|
---|
461 | <xsl:sort select="@name"/>
|
---|
462 | <tr>
|
---|
463 | <td colspan="14" align="left" bgcolor="#dddddd">
|
---|
464 | <div><xsl:value-of select="@name"/> (capacity: <xsl:value-of select="@capacity"/>, mapped-services: <xsl:value-of select="@mapped-services"/>)</div>
|
---|
465 | </td>
|
---|
466 | </tr>
|
---|
467 | <xsl:variable name="profile" select="@name"/>
|
---|
468 | <xsl:for-each select="../../proxy-users/user/session[@profile=$profile]">
|
---|
469 | <tr>
|
---|
470 | <xsl:if test="@active = 'false'">
|
---|
471 | <xsl:attribute name="style">font-style: italic</xsl:attribute>
|
---|
472 | <xsl:if test="@keepalive-count">
|
---|
473 | <xsl:attribute name="style">font-style: italic; color: blue</xsl:attribute>
|
---|
474 | </xsl:if>
|
---|
475 | </xsl:if>
|
---|
476 | <xsl:if test="position() mod 2 = 0">
|
---|
477 | <xsl:attribute name="bgcolor">#ffffff</xsl:attribute>
|
---|
478 | </xsl:if>
|
---|
479 | <td>  
|
---|
480 | <a target="_blank">
|
---|
481 | <xsl:attribute name="id"><xsl:value-of select="../@name"/></xsl:attribute>
|
---|
482 | <xsl:if test="@active = 'false'">
|
---|
483 | <xsl:attribute name="style">font-style: italic</xsl:attribute>
|
---|
484 | </xsl:if>
|
---|
485 | <xsl:attribute name="href">/xmlHandler?command=proxy-users&name=<xsl:value-of select="../@name"/></xsl:attribute>
|
---|
486 | <xsl:attribute name="title">Show session xml for user</xsl:attribute>
|
---|
487 | <xsl:choose>
|
---|
488 | <xsl:when test="../@display-name">
|
---|
489 | <xsl:value-of select="../@display-name"/>
|
---|
490 | </xsl:when>
|
---|
491 | <xsl:otherwise>
|
---|
492 | <xsl:value-of select="../@name"/>
|
---|
493 | </xsl:otherwise>
|
---|
494 | </xsl:choose>
|
---|
495 | </a>
|
---|
496 | </td>
|
---|
497 | <td><xsl:value-of select="@count"/></td>
|
---|
498 | <td><xsl:value-of select="@host"/>
|
---|
499 | <xsl:variable name="host" select="@host"/>
|
---|
500 | <xsl:variable name="count" select="count(//proxy-users/user/session[@host=$host])"/>
|
---|
501 | <xsl:if test="$count > 1"> (<xsl:value-of select="$count"/>)</xsl:if>
|
---|
502 | </td>
|
---|
503 | <td><xsl:value-of select="../@start-date"/></td>
|
---|
504 | <td><xsl:value-of select="../@expire-date"/></td>
|
---|
505 | <td>
|
---|
506 | <a target="_blank"><xsl:attribute name="href">/xmlHandler?command=kick-user&name=<xsl:value-of select="../@name"/></xsl:attribute>kick</a>
|
---|
507 | </td>
|
---|
508 | <td>
|
---|
509 | <xsl:value-of select="@duration"/>
|
---|
510 | <xsl:if test="@last-zap">
|
---|
511 | <xsl:value-of select="@last-zap"/>
|
---|
512 | </xsl:if>
|
---|
513 | </td>
|
---|
514 | <td><a target="_blank">
|
---|
515 | <xsl:attribute name="href">/xmlHandler?command=user-log&name=<xsl:value-of select="../@name"/>&profile=<xsl:value-of select="@profile"/></xsl:attribute>
|
---|
516 | <xsl:attribute name="title">Show ECM transaction log for user</xsl:attribute>
|
---|
517 | <xsl:value-of select="@ecm-count"/>
|
---|
518 | </a></td>
|
---|
519 | <td>
|
---|
520 | <xsl:value-of select="@emm-count"/><xsl:if test="@au"> -> <br /><xsl:value-of select="@au"/></xsl:if>
|
---|
521 | </td>
|
---|
522 | <td>
|
---|
523 | <xsl:choose>
|
---|
524 | <xsl:when test="@avg-ecm-interval < 7 and @avg-ecm-interval > 0">
|
---|
525 | <strong><font color="red"><xsl:value-of select="@avg-ecm-interval"/></font></strong>
|
---|
526 | </xsl:when>
|
---|
527 | <xsl:otherwise>
|
---|
528 | <xsl:if test="@avg-ecm-interval > -1">
|
---|
529 | <xsl:value-of select="@avg-ecm-interval"/>
|
---|
530 | </xsl:if>
|
---|
531 | </xsl:otherwise>
|
---|
532 | </xsl:choose>
|
---|
533 | <xsl:if test="@pending-count > 1">
|
---|
534 | (<strong><font color="red"><xsl:value-of select="@pending-count"/></font></strong>)
|
---|
535 | </xsl:if>
|
---|
536 | </td>
|
---|
537 | <td>
|
---|
538 | <xsl:choose>
|
---|
539 | <xsl:when test="@last-transaction > 4500">
|
---|
540 | <strong><font color="red"><xsl:value-of select="@last-transaction"/></font></strong>
|
---|
541 | </xsl:when>
|
---|
542 | <xsl:otherwise>
|
---|
543 | <xsl:if test="@last-transaction > -1">
|
---|
544 | <xsl:value-of select="@last-transaction"/>
|
---|
545 | </xsl:if>
|
---|
546 | </xsl:otherwise>
|
---|
547 | </xsl:choose>
|
---|
548 | </td>
|
---|
549 | <td><xsl:value-of select="@flags"/></td>
|
---|
550 | <td><xsl:value-of select="@client-id"/></td>
|
---|
551 | <td>
|
---|
552 | <xsl:value-of select="service/@name"/>
|
---|
553 | <xsl:if test="service/@profile">:<xsl:value-of select="service/@profile"/></xsl:if>
|
---|
554 | </td>
|
---|
555 | </tr>
|
---|
556 | </xsl:for-each>
|
---|
557 | <tr><td colspan="11"> </td></tr>
|
---|
558 | </xsl:for-each>
|
---|
559 | </tbody></table>
|
---|
560 | </div><br />
|
---|
561 | <xsl:call-template name="flag-legend"/>
|
---|
562 | <!-- xsl:call-template name="last-seen"/ -->
|
---|
563 | </xsl:template>
|
---|
564 |
|
---|
565 | <xsl:template match="ctrl-commands">
|
---|
566 | <xsl:for-each select="command-group">
|
---|
567 | <fieldset>
|
---|
568 | <legend><strong><xsl:value-of select="@name"/> commands</strong> (<xsl:value-of select="@handler"/>)</legend>
|
---|
569 | <xsl:for-each select="command">
|
---|
570 | <form action="">
|
---|
571 | <xsl:attribute name="name"><xsl:value-of select="concat(@name, '-form')"/></xsl:attribute>
|
---|
572 | <xsl:attribute name="id"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
573 | <xsl:value-of select="@label"/>
|
---|
574 | <xsl:for-each select="command-param">
|
---|
575 | <xsl:if test="@label != '' and position() = 1"> - </xsl:if>
|
---|
576 | <xsl:value-of select="@label"/>:
|
---|
577 | <xsl:choose>
|
---|
578 | <xsl:when test="@allow-arbitrary = 'true'">
|
---|
579 | <xsl:choose>
|
---|
580 | <xsl:when test="@size">
|
---|
581 | <textarea>
|
---|
582 | <xsl:attribute name="style">vertical-align: middle;</xsl:attribute>
|
---|
583 | <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
584 | <xsl:attribute name="rows"><xsl:value-of select="@size"/></xsl:attribute>
|
---|
585 | <xsl:attribute name="cols">45</xsl:attribute>
|
---|
586 | <xsl:value-of select="@label"/>
|
---|
587 | </textarea> 
|
---|
588 | </xsl:when>
|
---|
589 | <xsl:otherwise>
|
---|
590 | <input type="text">
|
---|
591 | <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
592 | <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
|
---|
593 | </input> 
|
---|
594 | </xsl:otherwise>
|
---|
595 | </xsl:choose>
|
---|
596 | </xsl:when>
|
---|
597 | <xsl:otherwise>
|
---|
598 | <xsl:choose>
|
---|
599 | <xsl:when test="@boolean">
|
---|
600 | <input type="checkbox">
|
---|
601 | <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
602 | </input> 
|
---|
603 | </xsl:when>
|
---|
604 | <xsl:otherwise>
|
---|
605 | <select>
|
---|
606 | <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
607 | <xsl:for-each select="option">
|
---|
608 | <xsl:variable name="listname" select="@value"/>
|
---|
609 | <xsl:choose>
|
---|
610 | <xsl:when test="starts-with(@value, '@')"> <!-- @ indicates named list of options -->
|
---|
611 | <xsl:for-each select="//ctrl-commands/option-list[@name=$listname]/option">
|
---|
612 | <option>
|
---|
613 | <xsl:if test="position() = 1">
|
---|
614 | <xsl:attribute name="selected">selected</xsl:attribute>
|
---|
615 | </xsl:if>
|
---|
616 | <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
|
---|
617 | <xsl:value-of select="@value"/>
|
---|
618 | </option>
|
---|
619 | </xsl:for-each>
|
---|
620 | </xsl:when>
|
---|
621 | <xsl:otherwise> <!-- no named list of options -->
|
---|
622 | <option>
|
---|
623 | <xsl:if test="position() = 1">
|
---|
624 | <xsl:attribute name="selected">selected</xsl:attribute>
|
---|
625 | </xsl:if>
|
---|
626 | <xsl:attribute name="value"><xsl:value-of select="@value"/></xsl:attribute>
|
---|
627 | <xsl:value-of select="@value"/>
|
---|
628 | </option>
|
---|
629 | </xsl:otherwise>
|
---|
630 | </xsl:choose>
|
---|
631 |
|
---|
632 | </xsl:for-each>
|
---|
633 | </select> 
|
---|
634 | </xsl:otherwise>
|
---|
635 | </xsl:choose>
|
---|
636 | </xsl:otherwise>
|
---|
637 | </xsl:choose>
|
---|
638 | </xsl:for-each>
|
---|
639 | <xsl:if test="@confirm = 'true'">
|
---|
640 | <input type="hidden" name="confirm" value="true"/>
|
---|
641 | </xsl:if>
|
---|
642 |   <input value="OK" type="submit"/><br />
|
---|
643 | • <xsl:value-of select="@description"/>
|
---|
644 | </form>
|
---|
645 | </xsl:for-each>
|
---|
646 | </fieldset><br />
|
---|
647 | <br />
|
---|
648 | </xsl:for-each>
|
---|
649 | </xsl:template>
|
---|
650 |
|
---|
651 | <!-- common named templates for elements that appear in the root but should only be rendered where explicitly called -->
|
---|
652 |
|
---|
653 | <xsl:template name="proxy-status">
|
---|
654 | <xsl:for-each select="//proxy-status">
|
---|
655 | <strong>Name: </strong><xsl:value-of select="@name"/><br />
|
---|
656 | <strong>State: </strong>up<br />
|
---|
657 | <strong>Started: </strong><xsl:value-of select="@started"/><br />
|
---|
658 | <strong>Uptime: </strong><xsl:value-of select="@duration"/><br />
|
---|
659 | <strong>Connectors: </strong><xsl:value-of select="@connectors"/><br />
|
---|
660 | <strong>Sessions: </strong><xsl:value-of select="@sessions"/> (active: <xsl:value-of select="@active-sessions"/>)<br />
|
---|
661 | <strong>Estimated total capacity: </strong><xsl:value-of select="@capacity"/> (ECM->CW transactions per CW-validity-period)<br />
|
---|
662 | <strong>Estimated total load: </strong><xsl:value-of select="sum(//connector/@ecm-load)"/> (forwards during the last period)<br />
|
---|
663 | <strong>ECM total: </strong><xsl:value-of select="@ecm-count"/> (average rate: <xsl:value-of select="@ecm-rate"/>/s)<br />
|
---|
664 | <strong>ECM forwards: </strong><xsl:value-of select="@ecm-forwards"/> 
|
---|
665 | <xsl:if test="@ecm-count > 0">(<xsl:value-of select="format-number(@ecm-forwards div @ecm-count, '##.0%')"/>)</xsl:if><br />
|
---|
666 | <strong>ECM cache hits: </strong><xsl:value-of select="@ecm-cache-hits"/> 
|
---|
667 | <xsl:if test="@ecm-count > 0">(<xsl:value-of select="format-number(@ecm-cache-hits div @ecm-count, '##.0%')"/>)</xsl:if><br />
|
---|
668 | <strong>ECM denied: </strong><xsl:value-of select="@ecm-denied"/> 
|
---|
669 | <xsl:if test="@ecm-denied > 0">(<xsl:value-of select="format-number(@ecm-denied div @ecm-count, '##.0%')"/>)</xsl:if><br />
|
---|
670 | <strong>ECM filtered: </strong><xsl:value-of select="@ecm-filtered"/> 
|
---|
671 | <xsl:if test="@ecm-filtered > 0">(<xsl:value-of select="format-number(@ecm-filtered div @ecm-count, '##.0%')"/>)</xsl:if><br />
|
---|
672 | <strong>ECM failures: </strong><xsl:value-of select="@ecm-failures"/><br />
|
---|
673 | <strong>EMM total: </strong><xsl:value-of select="@emm-count"/><br />
|
---|
674 | </xsl:for-each>
|
---|
675 | </xsl:template>
|
---|
676 |
|
---|
677 | <xsl:template name="jvm">
|
---|
678 | <span style="font-size: smaller">
|
---|
679 | <xsl:for-each select="//proxy-status/jvm">
|
---|
680 | <strong>CSP <xsl:value-of select="../@version"/> <xsl:value-of select="../@build"/></strong> - <strong>JVM: </strong>
|
---|
681 | <span id="jvm">[<xsl:value-of select="@name"/> <xsl:value-of select="@version"/>]</span><strong> Heap: </strong>
|
---|
682 | [<xsl:value-of select="@heap-total - @heap-free"/>k/<xsl:value-of select="@heap-total"/>k] <strong>TC: </strong>
|
---|
683 | <span id="tc"> [<xsl:value-of select="@threads"/>]</span>
|
---|
684 | <xsl:if test="@filedesc-open">
|
---|
685 | <strong> FD: </strong> [<xsl:value-of select="@filedesc-open"/>/<xsl:value-of select="@filedesc-max"/>]
|
---|
686 | </xsl:if>
|
---|
687 | <strong> OS: </strong> [<xsl:value-of select="@os"/>]
|
---|
688 | <div style="position: absolute; top: 30px; left: 120px;"><strong><xsl:value-of select="@time"></xsl:value-of></strong></div>
|
---|
689 | <div id="autoPollDiv" style="position: absolute; top: 26px; left: 660px;">
|
---|
690 | <input type="checkbox" name="autoPollCb" id="autoPollCb" checked="checked"/>
|
---|
691 | <label for="autoPollCb">Auto polling</label>
|
---|
692 | </div>
|
---|
693 | </xsl:for-each>
|
---|
694 | </span>
|
---|
695 | </xsl:template>
|
---|
696 |
|
---|
697 | <xsl:template name="cache-status">
|
---|
698 | <xsl:for-each select="//cache-status">
|
---|
699 | <div class="cwsheader"><strong>Cache-Handler: </strong>
|
---|
700 | <a id="openhref">
|
---|
701 | <xsl:attribute name="href"><xsl:value-of select="@type"/></xsl:attribute>
|
---|
702 | <xsl:value-of select="@type"/>
|
---|
703 | </a><br />
|
---|
704 | <div class="cwscontent">
|
---|
705 | <xsl:attribute name="style">display: <xsl:value-of select="@display"/>;</xsl:attribute>
|
---|
706 | <xsl:attribute name="id"><xsl:value-of select="concat('toggle-', @type)"/></xsl:attribute>
|
---|
707 | <xsl:for-each select="cache-param">
|
---|
708 | <strong><xsl:value-of select="@name"/>: </strong> <xsl:value-of select="@value"/><br />
|
---|
709 | </xsl:for-each>
|
---|
710 | </div>
|
---|
711 | </div>
|
---|
712 | </xsl:for-each>
|
---|
713 | </xsl:template>
|
---|
714 |
|
---|
715 | <xsl:template name="ca-profiles">
|
---|
716 | <xsl:for-each select="//ca-profiles">
|
---|
717 | <fieldset>
|
---|
718 | <legend><strong>Profiles (<xsl:value-of select="count(profile)"/>)</strong></legend>
|
---|
719 | <xsl:for-each select="profile">
|
---|
720 | <xsl:sort select="@name"/>
|
---|
721 | <xsl:variable name="profile" select="@name"/>
|
---|
722 | <div class="cwsheader">
|
---|
723 |
|
---|
724 | <table border="0" width="98%" cellspacing="0" cellpadding="0"><tr>
|
---|
725 | <td width="30%"><strong>CA-Profile: </strong>
|
---|
726 | <a id="openhref">
|
---|
727 | <xsl:attribute name="href">profile<xsl:value-of select="@name"/></xsl:attribute>
|
---|
728 | <xsl:value-of select="@name"/>
|
---|
729 | <xsl:choose>
|
---|
730 | <xsl:when test="@network-id"> (<xsl:value-of select="@network-id"/>)</xsl:when>
|
---|
731 | <xsl:otherwise> (ALL)</xsl:otherwise>
|
---|
732 | </xsl:choose>
|
---|
733 | </a><br /></td>
|
---|
734 | <td width="25%">
|
---|
735 | <xsl:if test="@ca-id"><strong>CA-Id: </strong><xsl:value-of select="@ca-id"/></xsl:if>
|
---|
736 | <xsl:if test="not(@network-id)">
|
---|
737 | <div style="position: relative; left: -70px">(multi-context connectors/sessions)</div>
|
---|
738 | </xsl:if>
|
---|
739 | </td>
|
---|
740 | <td width="15%"><strong>Sessions: </strong><xsl:value-of select="@sessions"/></td>
|
---|
741 | <td width="19%"><strong>
|
---|
742 | <xsl:choose>
|
---|
743 | <xsl:when test="@network-id">Local services: </xsl:when>
|
---|
744 | <xsl:otherwise>Services: </xsl:otherwise>
|
---|
745 | </xsl:choose>
|
---|
746 | </strong><xsl:value-of select="@mapped-services"/>
|
---|
747 | </td>
|
---|
748 | <td width="1%"> </td>
|
---|
749 | <td width="20%" align="right"> (<xsl:value-of select="sum(//connector[@profile=$profile]/@ecm-load)"/>)
|
---|
750 |
|
---|
751 | </td>
|
---|
752 | </tr>
|
---|
753 | </table>
|
---|
754 |
|
---|
755 | <div class="cwscontent">
|
---|
756 | <xsl:attribute name="style">display: <xsl:value-of select="@display"/>;</xsl:attribute>
|
---|
757 | <xsl:attribute name="id"><xsl:value-of select="concat('toggle-profile', @name)"/></xsl:attribute>
|
---|
758 | <xsl:if test="@network-id"><strong>Network-id: </strong> <xsl:value-of select="@network-id"/><br /></xsl:if>
|
---|
759 | <xsl:if test="@ca-id"><strong>Ca-id: </strong> <xsl:value-of select="@ca-id"/><br /></xsl:if>
|
---|
760 | <xsl:if test="@provider-idents"><strong>Provider-idents: </strong> <xsl:value-of select="@provider-idents"/><br /></xsl:if>
|
---|
761 | <xsl:if test="@provider-match"><strong>Require-provider-match: </strong> <xsl:value-of select="@provider-match"/>
|
---|
762 | <xsl:if test="@provider-match='true'"> (provider-ident in requests must exist on connector for forwards to proceed)</xsl:if>
|
---|
763 | <xsl:if test="@provider-match='false'"> (provider-ident in requests not considered when forwarding)</xsl:if>
|
---|
764 | <br />
|
---|
765 | </xsl:if>
|
---|
766 | <strong>Debug: </strong> <xsl:value-of select="@debug"/>
|
---|
767 | <xsl:if test="@debug='true'"> (backlog of 100 transactions kept for every session - memory intensive)</xsl:if>
|
---|
768 | <xsl:if test="@debug='false'"> (no transaction backlogs kept)</xsl:if>
|
---|
769 | <br />
|
---|
770 | <strong>Estimated capacity: </strong> <xsl:value-of select="@capacity"/><br />
|
---|
771 | <strong>Estimated load: </strong><xsl:value-of select="sum(//connector[@profile=$profile]/@ecm-load)"/><br />
|
---|
772 | <strong>
|
---|
773 | <xsl:choose>
|
---|
774 | <xsl:when test="@network-id">Locally mapped services: </xsl:when>
|
---|
775 | <xsl:otherwise>Services: </xsl:otherwise>
|
---|
776 | </xsl:choose>
|
---|
777 | </strong><xsl:value-of select="@mapped-services"/>
|
---|
778 | <xsl:if test="@parsed-services"> (<xsl:value-of select="@parsed-services"/> parsed from services file, with <xsl:value-of select="@parsed-conflicts"/> conflicts)</xsl:if>
|
---|
779 | <br />
|
---|
780 | <xsl:if test="@reset-services"><strong>Reset services: </strong><xsl:value-of select="@reset-services"/><br /></xsl:if>
|
---|
781 | <xsl:if test="@blocked-services"><strong>Blocked services: </strong><xsl:value-of select="@blocked-services"/><br /></xsl:if>
|
---|
782 | <xsl:if test="@allowed-services"><strong>Allowed services: </strong><xsl:value-of select="@allowed-services"/><br /></xsl:if>
|
---|
783 |
|
---|
784 | <strong>Max-cw-wait: </strong> <xsl:value-of select="@max-cw-wait"/> ms
|
---|
785 | <xsl:if test="@congestion-limit"> (congestion-limit at <xsl:value-of select="@congestion-limit"/> ms)</xsl:if>
|
---|
786 | <br />
|
---|
787 | <strong>Max-cache-wait: </strong> <xsl:value-of select="@max-cache-wait"/> ms<br />
|
---|
788 |
|
---|
789 | <xsl:if test="count(listen-port) > 0">
|
---|
790 | <br /><strong>Listen-ports: </strong>
|
---|
791 | <ul>
|
---|
792 | <xsl:for-each select="listen-port"><li>
|
---|
793 | <span>
|
---|
794 | <xsl:if test="@alive = 'false'">
|
---|
795 | <xsl:attribute name="style">text-decoration: line-through; font-weight: bold</xsl:attribute>
|
---|
796 | </xsl:if>
|
---|
797 | <xsl:value-of select="@name"/> 
|
---|
798 | </span>
|
---|
799 | <xsl:value-of select="@properties"/>
|
---|
800 |
|
---|
801 | </li></xsl:for-each>
|
---|
802 | </ul>
|
---|
803 | </xsl:if>
|
---|
804 |
|
---|
805 | </div>
|
---|
806 | </div>
|
---|
807 | </xsl:for-each>
|
---|
808 | </fieldset><br />
|
---|
809 | </xsl:for-each>
|
---|
810 | </xsl:template>
|
---|
811 |
|
---|
812 | <xsl:template name="proxy-plugins">
|
---|
813 | <xsl:for-each select="//proxy-plugins">
|
---|
814 | <xsl:if test="count(plugin) > 0">
|
---|
815 | <br /><fieldset>
|
---|
816 | <legend><strong>Plugins (<xsl:value-of select="count(plugin)"/>)</strong></legend>
|
---|
817 | <xsl:for-each select="plugin">
|
---|
818 | <xsl:sort select="@name"/>
|
---|
819 | <div class="cwsheader">
|
---|
820 |
|
---|
821 | <table border="0" width="98%" cellspacing="0" cellpadding="0"><tr>
|
---|
822 | <td width="25%"><strong>Plugin: </strong>
|
---|
823 | <xsl:choose>
|
---|
824 | <xsl:when test="count(plugin-param) > 0">
|
---|
825 | <a id="openhref">
|
---|
826 | <xsl:attribute name="href">plugin<xsl:value-of select="@name"/></xsl:attribute>
|
---|
827 | <xsl:value-of select="@name"/>
|
---|
828 | </a>
|
---|
829 | </xsl:when>
|
---|
830 | <xsl:otherwise>
|
---|
831 | <xsl:value-of select="@name"/>
|
---|
832 | </xsl:otherwise>
|
---|
833 | </xsl:choose>
|
---|
834 | <br />
|
---|
835 | </td>
|
---|
836 | <td width="75%"><xsl:value-of select="@description"/></td>
|
---|
837 | </tr>
|
---|
838 | </table>
|
---|
839 |
|
---|
840 | <div class="cwscontent">
|
---|
841 | <xsl:attribute name="style">display: <xsl:value-of select="@display"/>;</xsl:attribute>
|
---|
842 | <xsl:attribute name="id"><xsl:value-of select="concat('toggle-plugin', @name)"/></xsl:attribute>
|
---|
843 |
|
---|
844 | <xsl:if test="count(plugin-param) > 0">
|
---|
845 | <xsl:for-each select="plugin-param">
|
---|
846 | <strong><xsl:value-of select="@name"/>: </strong> <xsl:value-of select="@value"/><br />
|
---|
847 | </xsl:for-each>
|
---|
848 | </xsl:if>
|
---|
849 |  
|
---|
850 |
|
---|
851 | </div>
|
---|
852 | </div>
|
---|
853 | </xsl:for-each>
|
---|
854 | </fieldset><br />
|
---|
855 | </xsl:if>
|
---|
856 | </xsl:for-each>
|
---|
857 | </xsl:template>
|
---|
858 |
|
---|
859 | <xsl:template name="flag-legend">
|
---|
860 | <fieldset>
|
---|
861 | <legend><strong>Transaction Flags</strong></legend>
|
---|
862 | <table class="error-log">
|
---|
863 | <tbody>
|
---|
864 | <tr><td>
|
---|
865 | Normal traffic flags: <br />
|
---|
866 | <strong>F</strong> = Normal forward to CWS<br />
|
---|
867 | <strong>C</strong> = Cache hit (local)<br />
|
---|
868 | <strong>R</strong> = Cache hit (received from remote cache)<br />
|
---|
869 | <strong>I</strong> = Instant cache hit (no waiting at all in cache, both request and reply already available)<br />
|
---|
870 | <strong>L</strong> = Linked cache hit (CW from a different service was used, via sid linking)<br />
|
---|
871 | <strong>1</strong> = This was the first transaction performed by a new session.<br />
|
---|
872 | <strong>Z</strong> = SID changed (compared to previous transaction = user zap, can also indicate multiple tuners or users in one session if it occurs every time)<br />
|
---|
873 |
|
---|
874 | <br />Service mapper flags: <br />
|
---|
875 | <strong>N</strong> = Cannot decode (service mapper says service not on any card, or service blocked)<br />
|
---|
876 | <strong>P</strong> = Service mapper didn't know status for this SID on one or more cards (may have triggered probing if accepted by connectors)<br />
|
---|
877 | <strong>2</strong> = Triggered broadcast to additional cards besides the selected one (broadcast-missing-sid or redundant-forwarding in use)<br />
|
---|
878 | <strong>+</strong> = Caused an addition to the service map (found service, after probing/successful decode)<br />
|
---|
879 | <strong>-</strong> = Caused a removal from the service map (lost service, after repeated failed decodes)<br />
|
---|
880 |
|
---|
881 | <br />Flags indicating possible problems/recovery situations: <br />
|
---|
882 | <strong>B</strong> = Blocked by exceeded limits or by filters (plugins)<br />
|
---|
883 | <strong>M</strong> = Ca-id mismatch. The ecm reply didn't have the same ca-id as the request, indicates some clients are sending ecms to the wrong ports.<br />
|
---|
884 | <strong>E</strong> = Client got an empty reply (cannot-decode received from CWS, or from the proxy itself with situation <strong>N</strong>)<br />
|
---|
885 | <strong>Y</strong> = Forward retry performed (first chosen CWS disconnected during the transaction, but alternatives exist)<br />
|
---|
886 | <strong>A</strong> = Abort when forwarding (CWS connection was closed before forward, because of other request timeouts or by the network/server).<br />
|
---|
887 | <strong>T</strong> = Timeout when forwarding (no response from CWS within time limit, i.e max-cw-wait)<br />
|
---|
888 | <strong>O</strong> = Timeout while waiting in cache (waited for max-cache-wait, but no reply was reported to the cache).<br />
|
---|
889 | <strong>Q</strong> = Abort while waiting in cache (the forward the cache was waiting for failed, either locally or remotely).<br />
|
---|
890 | <strong>G</strong> = Congestion when forwarding (time was > max-cw-wait/2, but forward still performed)<br />
|
---|
891 | <strong>X</strong> = Cache hit after failed forward (situation <strong>Y</strong>, but reply became available in cache so no need for new forward)<br />
|
---|
892 |
|
---|
893 | <br />Internal/debugging flags: <br />
|
---|
894 | <strong>S</strong> = Timeout in send queue (when trying to forward to connector, should normally not occur)<br />
|
---|
895 | <strong>W</strong> = Triggered cannot-decode-wait (would have been situation <strong>N</strong>, but waiting for remote cache paid off)<br />
|
---|
896 | <strong>H</strong> = Caused an internal failed rechecking of the cache, represents an attempt to recover from an immediately preceeding problem.<br />
|
---|
897 | <strong>U</strong> = Interrupt in the no-sid-delay sleep, a request without sid was delayed but disconnected during the delay.<br />
|
---|
898 | <strong>D</strong> = The user session disconnected before it could receive the reply (likely reached the client ecm timeout)<br />
|
---|
899 | </td></tr>
|
---|
900 | </tbody>
|
---|
901 | </table>
|
---|
902 | </fieldset><br /><br />
|
---|
903 | </xsl:template>
|
---|
904 |
|
---|
905 | <xsl:template name="profile-filter">
|
---|
906 | <xsl:for-each select="//ca-profiles">
|
---|
907 | <xsl:if test="count(profile) > 1">
|
---|
908 | <strong>Profile filter: </strong>
|
---|
909 | <select name="profileFilter" id="profileFilter">
|
---|
910 | <option>
|
---|
911 | <xsl:attribute name="value">ALL</xsl:attribute>
|
---|
912 | ALL
|
---|
913 | </option>
|
---|
914 | <xsl:for-each select="profile">
|
---|
915 | <xsl:if test="@name != '*'">
|
---|
916 | <option>
|
---|
917 | <xsl:attribute name="value"><xsl:value-of select="@name"/></xsl:attribute>
|
---|
918 | <xsl:value-of select="@name"/>
|
---|
919 | </option>
|
---|
920 | </xsl:if>
|
---|
921 | </xsl:for-each>
|
---|
922 | </select>
|
---|
923 | <br /><br />
|
---|
924 | </xsl:if>
|
---|
925 | </xsl:for-each>
|
---|
926 | </xsl:template>
|
---|
927 |
|
---|
928 | <xsl:template name="user-warning-entry">
|
---|
929 | <xsl:param name="indent"/>
|
---|
930 | <xsl:value-of select="$indent"/><xsl:text> </xsl:text><xsl:value-of select="@timestamp"/> -
|
---|
931 | <strong> <xsl:value-of select="@name"/> </strong>
|
---|
932 | <xsl:text> </xsl:text><xsl:value-of select="@session-id"/> -
|
---|
933 | <xsl:text> </xsl:text><xsl:value-of select="@service-name"/> -
|
---|
934 | <strong> <xsl:value-of select="@time"/> ms</strong> -
|
---|
935 | <strong> "<xsl:value-of select="@flags"/>" </strong>
|
---|
936 | <xsl:if test="@count"> - (<xsl:value-of select="@count"/> occurances)</xsl:if>
|
---|
937 | <br />
|
---|
938 | <xsl:if test="@time-cache and @time > 5000">
|
---|
939 | <xsl:value-of select="$indent"/>  - Time breakdown - Cache wait: <strong><xsl:value-of select="@time-cache"/> ms </strong>
|
---|
940 | Send queue: <strong><xsl:value-of select="@time-queue"/> ms </strong>
|
---|
941 | Server wait: <strong><xsl:value-of select="@time-cws"/> ms </strong>
|
---|
942 | <xsl:if test="@cws-name"> (<xsl:value-of select="@cws-name"/>) </xsl:if>
|
---|
943 | Client writeback: <strong><xsl:value-of select="@time-client"/> ms </strong>
|
---|
944 | <br />
|
---|
945 | </xsl:if>
|
---|
946 | </xsl:template>
|
---|
947 |
|
---|
948 |
|
---|
949 |
|
---|
950 | </xsl:stylesheet>
|
---|
951 |
|
---|