Test results for Win32 Console

test_010112_example_netstat_3

Test description

Test for correct functionality of the examples used in the xmlfy documentation.

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd -L -t

Input data

Ip:
    1623 total packets received
    0 forwarded
    0 incoming packets discarded
    1623 incoming packets delivered
    1623 requests sent out
Icmp:
    0 ICMP messages received
    0 input ICMP message failed.
    ICMP input histogram:
    0 ICMP messages sent
    0 ICMP messages failed
    ICMP output histogram:
Tcp:
    2 active connections openings
    2 passive connection openings
    0 failed connection attempts
    0 connection resets received
    0 connections established
    1615 segments received
    1615 segments send out
    0 segments retransmited
    0 bad segments received.
    0 resets sent
Udp:
    8 packets received
    0 packets to unknown port received.
    0 packet receive errors
    8 packets sent
TcpExt:
    ArpFilter: 0
    2 TCP sockets finished time wait in fast timer
    331 delayed acks sent
    4 packets directly queued to recvmsg prequeue.
    239 packets directly received from backlog
    54 packets directly received from prequeue
    292 packets header predicted
    3 packets header predicted and directly queued to user
    TCPPureAcks: 38
    TCPHPAcks: 618
    TCPRenoRecovery: 0
    TCPSackRecovery: 0
    TCPSACKReneging: 0
    TCPFACKReorder: 0
    TCPSACKReorder: 0
    TCPRenoReorder: 0
    TCPTSReorder: 0
    TCPFullUndo: 0
    TCPPartialUndo: 0
    TCPDSACKUndo: 0
    TCPLossUndo: 0
    TCPLoss: 0
    TCPLostRetransmit: 0
    TCPRenoFailures: 0
    TCPSackFailures: 0
    TCPLossFailures: 0
    TCPFastRetrans: 0
    TCPForwardRetrans: 0
    TCPSlowStartRetrans: 0
    TCPTimeouts: 0
    TCPRenoRecoveryFail: 0
    TCPSackRecoveryFail: 0
    TCPSchedulerFailed: 0
    TCPRcvCollapsed: 0
    TCPDSACKOldSent: 0
    TCPDSACKOfoSent: 0
    TCPDSACKRecv: 0
    TCPDSACKOfoRecv: 0
    TCPAbortOnSyn: 0
    TCPAbortOnData: 0
    TCPAbortOnClose: 0
    TCPAbortOnMemory: 0
    TCPAbortOnTimeout: 0
    TCPAbortOnLinger: 0
    TCPAbortFailed: 0
    TCPMemoryPressures: 0

Schema

<!ELEMENT netstat (category*), (data+)>
<!ELEMENT category (title)>
<!ELEMENT data (param+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT param (#PCDATA)>

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE netstat SYSTEM "schema.dtd">
<netstat>
  <category>
    <linenumber>1</linenumber>
    <title>Ip:</title>
  </category>
  <data>
    <linenumber>1</linenumber>
    <param>1623</param>
    <param>total</param>
    <param>packets</param>
    <param>received</param>
  </data>
  <data>
    <linenumber>2</linenumber>
    <param>0</param>
    <param>forwarded</param>
  </data>
  <data>
    <linenumber>3</linenumber>
    <param>0</param>
    <param>incoming</param>
    <param>packets</param>
    <param>discarded</param>
  </data>
  <data>
    <linenumber>4</linenumber>
    <param>1623</param>
    <param>incoming</param>
    <param>packets</param>
    <param>delivered</param>
  </data>
  <data>
    <linenumber>5</linenumber>
    <param>1623</param>
    <param>requests</param>
    <param>sent</param>
    <param>out</param>
  </data>
  <category>
    <linenumber>2</linenumber>
    <title>Icmp:</title>
  </category>
  <data>
    <linenumber>6</linenumber>
    <param>0</param>
    <param>ICMP</param>
    <param>messages</param>
    <param>received</param>
  </data>
  <data>
    <linenumber>7</linenumber>
    <param>0</param>
    <param>input</param>
    <param>ICMP</param>
    <param>message</param>
    <param>failed.</param>
  </data>
  <data>
    <linenumber>8</linenumber>
    <param>ICMP</param>
    <param>input</param>
    <param>histogram:</param>
  </data>
  <data>
    <linenumber>9</linenumber>
    <param>0</param>
    <param>ICMP</param>
    <param>messages</param>
    <param>sent</param>
  </data>
  <data>
    <linenumber>10</linenumber>
    <param>0</param>
    <param>ICMP</param>
    <param>messages</param>
    <param>failed</param>
  </data>
  <data>
    <linenumber>11</linenumber>
    <param>ICMP</param>
    <param>output</param>
    <param>histogram:</param>
  </data>
  <category>
    <linenumber>3</linenumber>
    <title>Tcp:</title>
  </category>
  <data>
    <linenumber>12</linenumber>
    <param>2</param>
    <param>active</param>
    <param>connections</param>
    <param>openings</param>
  </data>
  <data>
    <linenumber>13</linenumber>
    <param>2</param>
    <param>passive</param>
    <param>connection</param>
    <param>openings</param>
  </data>
  <data>
    <linenumber>14</linenumber>
    <param>0</param>
    <param>failed</param>
    <param>connection</param>
    <param>attempts</param>
  </data>
  <data>
    <linenumber>15</linenumber>
    <param>0</param>
    <param>connection</param>
    <param>resets</param>
    <param>received</param>
  </data>
  <data>
    <linenumber>16</linenumber>
    <param>0</param>
    <param>connections</param>
    <param>established</param>
  </data>
  <data>
    <linenumber>17</linenumber>
    <param>1615</param>
    <param>segments</param>
    <param>received</param>
  </data>
  <data>
    <linenumber>18</linenumber>
    <param>1615</param>
    <param>segments</param>
    <param>send</param>
    <param>out</param>
  </data>
  <data>
    <linenumber>19</linenumber>
    <param>0</param>
    <param>segments</param>
    <param>retransmited</param>
  </data>
  <data>
    <linenumber>20</linenumber>
    <param>0</param>
    <param>bad</param>
    <param>segments</param>
    <param>received.</param>
  </data>
  <data>
    <linenumber>21</linenumber>
    <param>0</param>
    <param>resets</param>
    <param>sent</param>
  </data>
  <category>
    <linenumber>4</linenumber>
    <title>Udp:</title>
  </category>
  <data>
    <linenumber>22</linenumber>
    <param>8</param>
    <param>packets</param>
    <param>received</param>
  </data>
  <data>
    <linenumber>23</linenumber>
    <param>0</param>
    <param>packets</param>
    <param>to</param>
    <param>unknown</param>
    <param>port</param>
    <param>received.</param>
  </data>
  <data>
    <linenumber>24</linenumber>
    <param>0</param>
    <param>packet</param>
    <param>receive</param>
    <param>errors</param>
  </data>
  <data>
    <linenumber>25</linenumber>
    <param>8</param>
    <param>packets</param>
    <param>sent</param>
  </data>
  <category>
    <linenumber>5</linenumber>
    <title>TcpExt:</title>
  </category>
  <data>
    <linenumber>26</linenumber>
    <param>ArpFilter:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>27</linenumber>
    <param>2</param>
    <param>TCP</param>
    <param>sockets</param>
    <param>finished</param>
    <param>time</param>
    <param>wait</param>
    <param>in</param>
    <param>fast</param>
    <param>timer</param>
  </data>
  <data>
    <linenumber>28</linenumber>
    <param>331</param>
    <param>delayed</param>
    <param>acks</param>
    <param>sent</param>
  </data>
  <data>
    <linenumber>29</linenumber>
    <param>4</param>
    <param>packets</param>
    <param>directly</param>
    <param>queued</param>
    <param>to</param>
    <param>recvmsg</param>
    <param>prequeue.</param>
  </data>
  <data>
    <linenumber>30</linenumber>
    <param>239</param>
    <param>packets</param>
    <param>directly</param>
    <param>received</param>
    <param>from</param>
    <param>backlog</param>
  </data>
  <data>
    <linenumber>31</linenumber>
    <param>54</param>
    <param>packets</param>
    <param>directly</param>
    <param>received</param>
    <param>from</param>
    <param>prequeue</param>
  </data>
  <data>
    <linenumber>32</linenumber>
    <param>292</param>
    <param>packets</param>
    <param>header</param>
    <param>predicted</param>
  </data>
  <data>
    <linenumber>33</linenumber>
    <param>3</param>
    <param>packets</param>
    <param>header</param>
    <param>predicted</param>
    <param>and</param>
    <param>directly</param>
    <param>queued</param>
    <param>to</param>
    <param>user</param>
  </data>
  <data>
    <linenumber>34</linenumber>
    <param>TCPPureAcks:</param>
    <param>38</param>
  </data>
  <data>
    <linenumber>35</linenumber>
    <param>TCPHPAcks:</param>
    <param>618</param>
  </data>
  <data>
    <linenumber>36</linenumber>
    <param>TCPRenoRecovery:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>37</linenumber>
    <param>TCPSackRecovery:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>38</linenumber>
    <param>TCPSACKReneging:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>39</linenumber>
    <param>TCPFACKReorder:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>40</linenumber>
    <param>TCPSACKReorder:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>41</linenumber>
    <param>TCPRenoReorder:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>42</linenumber>
    <param>TCPTSReorder:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>43</linenumber>
    <param>TCPFullUndo:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>44</linenumber>
    <param>TCPPartialUndo:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>45</linenumber>
    <param>TCPDSACKUndo:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>46</linenumber>
    <param>TCPLossUndo:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>47</linenumber>
    <param>TCPLoss:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>48</linenumber>
    <param>TCPLostRetransmit:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>49</linenumber>
    <param>TCPRenoFailures:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>50</linenumber>
    <param>TCPSackFailures:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>51</linenumber>
    <param>TCPLossFailures:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>52</linenumber>
    <param>TCPFastRetrans:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>53</linenumber>
    <param>TCPForwardRetrans:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>54</linenumber>
    <param>TCPSlowStartRetrans:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>55</linenumber>
    <param>TCPTimeouts:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>56</linenumber>
    <param>TCPRenoRecoveryFail:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>57</linenumber>
    <param>TCPSackRecoveryFail:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>58</linenumber>
    <param>TCPSchedulerFailed:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>59</linenumber>
    <param>TCPRcvCollapsed:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>60</linenumber>
    <param>TCPDSACKOldSent:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>61</linenumber>
    <param>TCPDSACKOfoSent:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>62</linenumber>
    <param>TCPDSACKRecv:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>63</linenumber>
    <param>TCPDSACKOfoRecv:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>64</linenumber>
    <param>TCPAbortOnSyn:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>65</linenumber>
    <param>TCPAbortOnData:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>66</linenumber>
    <param>TCPAbortOnClose:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>67</linenumber>
    <param>TCPAbortOnMemory:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>68</linenumber>
    <param>TCPAbortOnTimeout:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>69</linenumber>
    <param>TCPAbortOnLinger:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>70</linenumber>
    <param>TCPAbortFailed:</param>
    <param>0</param>
  </data>
  <data>
    <linenumber>71</linenumber>
    <param>TCPMemoryPressures:</param>
    <param>0</param>
  </data>
</netstat>

Goto:   Top of page.   Section "Environment".   Section "Summary".   Section "Test cases".