Test results for Linux

test_010110_example_netstat_1

Test description

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

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -F : -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

Output result

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

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