Test results for Win32 Console

test_010114_example_netstat_5

Test description

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

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -F1 "Ip:" -F1 "Icmp:" -F1 "Tcp:" -F1 "Udp:" -F1 "TcpExt:" -F2 "\n" -F3 ":" -t -A1 number -T0 name netstat -T1 name category -T3 level

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

Output result

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE netstat SYSTEM "xmlfy.dtd">
<netstat>
  <category number="1">
    <field></field>
    <field>1623 total packets received</field>
    <field>0 forwarded</field>
    <field>0 incoming packets discarded</field>
    <field>1623 incoming packets delivered</field>
    <field>1623 requests sent out</field>
    <field></field>
  </category>
  <category number="2">
    <field></field>
    <field>0 ICMP messages received</field>
    <field>0 input ICMP message failed.</field>
    <field>
      <L3field>ICMP input histogram</L3field>
      <L3field></L3field>
    </field>
    <field>0 ICMP messages sent</field>
    <field>0 ICMP messages failed</field>
    <field>
      <L3field>ICMP output histogram</L3field>
      <L3field></L3field>
    </field>
    <field></field>
  </category>
  <category number="3">
    <field></field>
    <field>2 active connections openings</field>
    <field>2 passive connection openings</field>
    <field>0 failed connection attempts</field>
    <field>0 connection resets received</field>
    <field>0 connections established</field>
    <field>1615 segments received</field>
    <field>1615 segments send out</field>
    <field>0 segments retransmited</field>
    <field>0 bad segments received.</field>
    <field>0 resets sent</field>
    <field></field>
  </category>
  <category number="4">
    <field></field>
    <field>8 packets received</field>
    <field>0 packets to unknown port received.</field>
    <field>0 packet receive errors</field>
    <field>8 packets sent</field>
    <field></field>
  </category>
  <category number="5">
    <field></field>
    <field>
      <L3field>ArpFilter</L3field>
      <L3field>0</L3field>
    </field>
    <field>2 TCP sockets finished time wait in fast timer</field>
    <field>331 delayed acks sent</field>
    <field>4 packets directly queued to recvmsg prequeue.</field>
    <field>239 packets directly received from backlog</field>
    <field>54 packets directly received from prequeue</field>
    <field>292 packets header predicted</field>
    <field>3 packets header predicted and directly queued to user</field>
    <field>
      <L3field>TCPPureAcks</L3field>
      <L3field>38</L3field>
    </field>
    <field>
      <L3field>TCPHPAcks</L3field>
      <L3field>618</L3field>
    </field>
    <field>
      <L3field>TCPRenoRecovery</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSackRecovery</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSACKReneging</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPFACKReorder</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSACKReorder</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPRenoReorder</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPTSReorder</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPFullUndo</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPPartialUndo</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPDSACKUndo</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPLossUndo</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPLoss</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPLostRetransmit</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPRenoFailures</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSackFailures</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPLossFailures</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPFastRetrans</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPForwardRetrans</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSlowStartRetrans</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPTimeouts</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPRenoRecoveryFail</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSackRecoveryFail</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPSchedulerFailed</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPRcvCollapsed</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPDSACKOldSent</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPDSACKOfoSent</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPDSACKRecv</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPDSACKOfoRecv</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnSyn</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnData</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnClose</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnMemory</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnTimeout</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortOnLinger</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPAbortFailed</L3field>
      <L3field>0</L3field>
    </field>
    <field>
      <L3field>TCPMemoryPressures</L3field>
      <L3field>0</L3field>
    </field>
    <field></field>
  </category>
</netstat>

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