Commit 1a79585f authored by Michael Graff's avatar Michael Graff
Browse files

display more info -- list of tasks, list of sockets

parent f8574167
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (C) 2006, 2007 Internet Systems Consortium, Inc. ("ISC")
-
......@@ -15,7 +16,7 @@
- PERFORMANCE OF THIS SOFTWARE.
-->
<!-- $Id: bind9.xsl,v 1.7 2007/01/05 05:56:05 marka Exp $ -->
<!-- $Id: bind9.xsl,v 1.8 2007/01/10 15:18:24 explorer Exp $ -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
......@@ -108,28 +109,129 @@ tr.lrow {
</xsl:for-each>
</table>
<br />
<br />
<xsl:for-each select="views/view">
<table>
<tr class="rowh">
<th colspan="11">Zones for View <xsl:value-of select="name" /></th>
</tr>
<tr class="rowh">
<th>Name</th>
<th>Class</th>
<th>Serial</th>
<th>Success</th>
<th>Referral</th>
<th>NXRRSET</th>
<th>NXDOMAIN</th>
<th>Recursion</th>
<th>Failure</th>
<th>Duplicate</th>
<th>Dropped</th>
</tr>
<xsl:for-each select="zones/zone">
<tr class="lrow">
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="rdataclass"/></td>
<td><xsl:value-of select="serial"/></td>
<td><xsl:value-of select="counters/success"/></td>
<td><xsl:value-of select="counters/referral"/></td>
<td><xsl:value-of select="counters/nxrrset"/></td>
<td><xsl:value-of select="counters/nxdomain"/></td>
<td><xsl:value-of select="counters/recursion"/></td>
<td><xsl:value-of select="counters/failure"/></td>
<td><xsl:value-of select="counters/duplicate"/></td>
<td><xsl:value-of select="counters/dropped"/></td>
</tr>
</xsl:for-each>
</table>
<br />
</xsl:for-each>
<br />
<table>
<tr class="rowh">
<th colspan="4">Zones for View <xsl:value-of select="name" /></th>
<th colspan="6">Network Status</th>
</tr>
<tr class="rowh">
<th>ID</th>
<th>Type</th>
<th>References</th>
<th>LocalAddress</th>
<th>PeerAddress</th>
<th>State</th>
</tr>
<xsl:for-each select="socketmgr/sockets/socket">
<tr class="lrow">
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="type"/></td>
<td><xsl:value-of select="references"/></td>
<td><xsl:value-of select="local-address"/></td>
<td><xsl:value-of select="peer-address"/></td>
<td>
<xsl:for-each select="states">
<xsl:value-of select="."/>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
<br />
<table>
<tr class="rowh"><th colspan="2">Task Manager Configuration</th></tr>
<tr class="lrow">
<td>Thread-Model</td>
<td>
<xsl:value-of select="taskmgr/thread-model/type"/>
</td>
</tr>
<tr class="lrow">
<td>Worker Threads</td>
<td>
<xsl:value-of select="taskmgr/thread-model/worker-threads"/>
</td>
</tr>
<tr class="lrow">
<td>Default Quantum</td>
<td>
<xsl:value-of select="taskmgr/thread-model/default-quantum"/>
</td>
</tr>
<tr class="lrow">
<td>Tasks Running</td>
<td>
<xsl:value-of select="taskmgr/thread-model/tasks-running"/>
</td>
</tr>
</table>
<br/>
<table>
<tr class="rowh">
<th colspan="5">Tasks</th>
</tr>
<tr class="rowh">
<th>ID</th>
<th>Name</th>
<th>Class</th>
<th>Serial</th>
<th>References</th>
<th>State</th>
<th>Quantum</th>
</tr>
<xsl:for-each select="zones/zone">
<xsl:for-each select="taskmgr/tasks/task">
<tr class="lrow">
<td><xsl:value-of select="id"/></td>
<td><xsl:value-of select="name"/></td>
<td><xsl:value-of select="rdataclass"/></td>
<td><xsl:value-of select="serial"/></td>
<td><xsl:value-of select="references"/></td>
<td><xsl:value-of select="state"/></td>
<td><xsl:value-of select="quantum"/></td>
</tr>
</xsl:for-each>
</table>
<br />
</xsl:for-each>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment