Test results for Linux

test_010111_example_netstat_2

Test description

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

Test status

 Pass

Run command

cat _INPUT_DATA_ ¦ xmlfy -R '^' -F '\n' -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>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>Icmp:</field>
    <field>0 ICMP messages received</field>
    <field>0 input ICMP message failed.</field>
    <field>ICMP input histogram:</field>
    <field>0 ICMP messages sent</field>
    <field>0 ICMP messages failed</field>
    <field>ICMP output histogram:</field>
    <field>Tcp:</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>Udp:</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>TcpExt:</field>
    <field>ArpFilter: 0</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>TCPPureAcks: 38</field>
    <field>TCPHPAcks: 618</field>
    <field>TCPRenoRecovery: 0</field>
    <field>TCPSackRecovery: 0</field>
    <field>TCPSACKReneging: 0</field>
    <field>TCPFACKReorder: 0</field>
    <field>TCPSACKReorder: 0</field>
    <field>TCPRenoReorder: 0</field>
    <field>TCPTSReorder: 0</field>
    <field>TCPFullUndo: 0</field>
    <field>TCPPartialUndo: 0</field>
    <field>TCPDSACKUndo: 0</field>
    <field>TCPLossUndo: 0</field>
    <field>TCPLoss: 0</field>
    <field>TCPLostRetransmit: 0</field>
    <field>TCPRenoFailures: 0</field>
    <field>TCPSackFailures: 0</field>
    <field>TCPLossFailures: 0</field>
    <field>TCPFastRetrans: 0</field>
    <field>TCPForwardRetrans: 0</field>
    <field>TCPSlowStartRetrans: 0</field>
    <field>TCPTimeouts: 0</field>
    <field>TCPRenoRecoveryFail: 0</field>
    <field>TCPSackRecoveryFail: 0</field>
    <field>TCPSchedulerFailed: 0</field>
    <field>TCPRcvCollapsed: 0</field>
    <field>TCPDSACKOldSent: 0</field>
    <field>TCPDSACKOfoSent: 0</field>
    <field>TCPDSACKRecv: 0</field>
    <field>TCPDSACKOfoRecv: 0</field>
    <field>TCPAbortOnSyn: 0</field>
    <field>TCPAbortOnData: 0</field>
    <field>TCPAbortOnClose: 0</field>
    <field>TCPAbortOnMemory: 0</field>
    <field>TCPAbortOnTimeout: 0</field>
    <field>TCPAbortOnLinger: 0</field>
    <field>TCPAbortFailed: 0</field>
    <field>TCPMemoryPressures: 0</field>
    <field></field>
  </line>
</xmlfy>

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