Home | History | Annotate | Line # | Download | only in Examples
      1 The following is an example of the udpstat.d script,
      2 
      3 
      4 
      5 Here we run udpstat for a few seconds. Firstly, we run a "spray" command
      6 outbound, followed by a spray inbound. Both can be identified in the 
      7 output below,
      8 
      9    # udpstat.d
     10        UDP_out  UDP_outErr      UDP_in   UDP_inErr  UDP_noPort
     11              0           0           0           0           1
     12              0           0           0           0           2
     13              0           0           0           0           0
     14           1165           0           2           0           0
     15              0           0           0           0           0
     16              0           0           0           0           2
     17              3           0        1166           0           1
     18              0           0           0           0           0
     19              0           0           0           0           0
     20              0           0           0           0           0
     21    ^C
     22 
     23 
     24 
     25 Here we run udpstat.d while an outbound DNS lookup is performed using
     26 "nslookup",
     27 
     28    # udpstat.d
     29        UDP_out  UDP_outErr      UDP_in   UDP_inErr  UDP_noPort
     30              0           0           0           0           1
     31              0           0           0           0           1
     32              1           0           1           0           0
     33              0           0           0           0           0
     34              0           0           0           0           3
     35    ^C
     36 
     37 Little output is observed as this tracks datagrams not bytes. There is 
     38 one outbound and one inbound datagram.
     39 
     40