Shell scripting with type-safety using Haskell

Das ist ein netter Artikel des Linux-Magazins, der empfehlenswert ist!


Loadbars v0.5.3 ist da!

loadbarslogo.pngWas hat sich seit v0.5.1 getan? Folgendes:

loadbars (0.5.3) stable; urgency=low

* Introduce new param --hasagent. With --hasagent 1 loadbars will not
run 'ssh-add' which would ask for your SSH key password to add it to
the ssh agent. With --hasagent 0 (default value) loadbars will run
'ssh-add' on startup in order to add your SSH key to the SSH agent.

* Add openssh-client dependency to the .deb package.

* Some code bugfixing.

-- Paul Buetow <***@buetow.org> Tue, 01 May 2012 11:57:27 +0200

loadbars (0.5.2.2) stable; urgency=low

* Test release, to test the deb.buetow.org repo key sign stuff.

-- Paul Buetow <***@buetow.org> Sun, 08 Apr 2012 15:23:53 +0200

loadbars (0.5.2.1) stable; urgency=low

* Hotfix release, contains only a corrected version string.

-- Paul Buetow <***@buetow.org> Sun, 08 Apr 2012 15:23:53 +0200

loadbars (0.5.2) stable; urgency=low

* Initial .deb

* Heavy code refactoring (more modular code)

-- Paul Buetow <***@buetow.org> Sun, 08 Apr 2012 15:23:53 +0200

Redesign *.buetow.org

Nach ca. 2 Jahren hab ich meine Xerl-angetriebenen Websites ein neues Standard-CSS spendiert. Bsp.: http://loadbars.buetow.org. Das ist jetzt kein grossartiges Design, jedoch mal wieder etwas Neues. Da ich kein Webdesigner bin und meine Faehigkeiten da recht begrenzt sind, bin ich damit zufrieden :) Und nein, es ist nicht HTML5, sondern noch gutes altes XHTML 1.x Transitional. Und weniger ist oft mehr!

Hello deb.buetow.org

Jetzt habe ich mir endlich auch mal ein Debian-Repository zugelegt. Zumindest fuer Debian Squeeze gibt es schon Pakete (loadbars und httpbench) (letzteres muss ich hier noch separat vorstellen).

Wie bindet man das ein? Einfach

deb http://deb.buetow.org/apt squeeze main
deb-src http://deb.buetow.org/apt squeeze main
oder

deb ftp://deb.buetow.org/apt squeeze main
deb-src ftp://deb.buetow.org/apt squeeze main
in die sources list eintragen. Allerdings muss ich noch nen Trust-Key zur Verfuegung stellen, damit's rund ist.

Loadbars in der Version 0.5.2 ist somit das erste Relesae welchs als .deb (noarch) verfuegbar ist.

tcptrace

Ein nuetzliches Tool fuer die Analyse von Netztraffic (insbesondere TCP-Verbindungen) ist tcptrace. tcptrace nimmt einen Netzdump (in .pcap Format, z.B. erstellt per tcpdump) und kann saemtliche TCP-Verbindungen tracen und Satistiken erstellen.
root@venus:~# tcpdump -i any port 80 -c 100 -w /tmp/test.pcap
tcpdump: listening on any, link-type LINUX_SLL (Linux cooked), 
   capture size 65535 bytes
100 packets captured
100 packets received by filter
0 packets dropped by kernel
Danach mit -b einen tcptrace Brief-Output erzeugen:
root@venus:~# tcptrace -b /tmp/test.pcap 
1 arg remaining, starting with '/tmp/test.pcap'
Ostermann's tcptrace -- version 6.6.7 -- Thu Nov  4, 2004
100 packets seen, 100 TCP packets traced
elapsed wallclock time: 0:00:11.228893, 8 pkts/sec analyzed
trace file elapsed time: 0:00:00.769958
TCP connection info:
  1: r3700.fritz.box:55967 - 85.183.249.137:80 (a2b)        7>    5<  (complete)  (reset)
  2: r3700.fritz.box:56727 - server11058.yco.de:80 (c2d)   19>   29<
  3: r3700.fritz.box:59759 - pbtng.u.nuggad.net:80 (e2f)    9>    6<
  4: r3700.fritz.box:50886 - 91.215.100.138:80 (g2h)        5>    4<
  5: r3700.fritz.box:50431 - adserver.adtech.de:80 (i2j)    1>    1<
  6: r3700.fritz.box:50438 - adserver.adtech.de:80 (k2l)    7>    5<
  7: r3700.fritz.box:56730 - server11058.yco.de:80 (m2n)    1>    0<  (unidirectional)
  8: r3700.fritz.box:56741 - server11058.yco.de:80 (o2p)    1>    0<  (unidirectional)
Oder mit -l etwas mehr Statistiken zu jeder TCP-Verbindungen ausgeben lassen:
root@venus:~# tcptrace -l /tmp/test.pcap 
1 arg remaining, starting with '/tmp/test.pcap'
Ostermann's tcptrace -- version 6.6.7 -- Thu Nov  4, 2004

100 packets seen, 100 TCP packets traced
elapsed wallclock time: 0:00:10.045623, 9 pkts/sec analyzed
trace file elapsed time: 0:00:00.769958
TCP connection info:
8 TCP connections traced:
TCP connection 1:
	host a:        r3700.fritz.box:55967
	host b:        85.183.249.137:80
	complete conn: RESET
	first packet:  Mon Mar 12 08:56:36.501275 2012
	last packet:   Mon Mar 12 08:56:36.625360 2012
	elapsed time:  0:00:00.124085
	total packets: 12
	filename:      /tmp/test.pcap
   a->b:			      b->a:
     total packets:             7           total packets:             5      
     resets sent:               3           resets sent:               0      
     ack pkts sent:             3           ack pkts sent:             5      
     pure acks sent:            1           pure acks sent:            2      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:      1351           unique bytes sent:       408      
     actual data pkts:          1           actual data pkts:          1      
     actual data bytes:      1351           actual data bytes:       408      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          1           pushed data pkts:          1      
     SYN/FIN pkts sent:       1/1           SYN/FIN pkts sent:       1/1      
     req 1323 ws/ts:          Y/Y           req 1323 ws/ts:          Y/Y      
     adv wind scale:            4           adv wind scale:            0      
     req sack:                  Y           req sack:                  Y      
     sacks sent:                0           sacks sent:                0      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:          1460 bytes     mss requested:          1452 bytes
     max segm size:          1351 bytes     max segm size:           408 bytes
     min segm size:          1351 bytes     min segm size:           408 bytes
     avg segm size:          1349 bytes     avg segm size:           407 bytes
     max win adv:           14608 bytes     max win adv:           33120 bytes
     min win adv:           14608 bytes     min win adv:           33120 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:            7304 bytes     avg win adv:           33120 bytes
     initial window:         1351 bytes     initial window:          408 bytes
     initial window:            1 pkts      initial window:            1 pkts 
     ttl stream length:      1352 bytes     ttl stream length:       408 bytes
     missed data:               1 bytes     missed data:               0 bytes
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.000 secs 
     idletime max:           43.4 ms        idletime max:           56.8 ms   
     throughput:            10888 Bps       throughput:             3288 Bps  
================================
TCP connection 2:
	host c:        r3700.fritz.box:56727
	host d:        server11058.yco.de:80
	complete conn: no	(SYNs: 0)  (FINs: 0)
	first packet:  Mon Mar 12 08:56:36.585368 2012
	last packet:   Mon Mar 12 08:56:37.232081 2012
	elapsed time:  0:00:00.646713
	total packets: 48
	filename:      /tmp/test.pcap
   c->d:			      d->c:
     total packets:            19           total packets:            29      
     ack pkts sent:            19           ack pkts sent:            29      
     pure acks sent:           14           pure acks sent:            2      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:      2675           unique bytes sent:     32658      
     actual data pkts:          5           actual data pkts:         27      
     actual data bytes:      2675           actual data bytes:     32658      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          5           pushed data pkts:          6      
     SYN/FIN pkts sent:       0/0           SYN/FIN pkts sent:       0/0      
     req 1323 ws/ts:          N/Y           req 1323 ws/ts:          N/Y      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:             0 bytes     mss requested:             0 bytes
     max segm size:           561 bytes     max segm size:          1440 bytes
     min segm size:           503 bytes     min segm size:           219 bytes
     avg segm size:           534 bytes     avg segm size:          1209 bytes
     max win adv:            4333 bytes     max win adv:             247 bytes
     min win adv:            4307 bytes     min win adv:             221 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:            4331 bytes     avg win adv:             237 bytes
     initial window:          555 bytes     initial window:            0 bytes
     initial window:            1 pkts      initial window:            0 pkts 
     ttl stream length:        NA           ttl stream length:        NA      
     missed data:              NA           missed data:              NA      
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.647 secs      data xmit time:        0.407 secs 
     idletime max:          149.5 ms        idletime max:          129.0 ms   
     throughput:             4136 Bps       throughput:            50498 Bps  
================================
TCP connection 3:
	host e:        r3700.fritz.box:59759
	host f:        pbtng.u.nuggad.net:80
	complete conn: no	(SYNs: 2)  (FINs: 1)
	first packet:  Mon Mar 12 08:56:37.002390 2012
	last packet:   Mon Mar 12 08:56:37.197339 2012
	elapsed time:  0:00:00.194949
	total packets: 15
	filename:      /tmp/test.pcap
   e->f:			      f->e:
     total packets:             9           total packets:             6      
     ack pkts sent:             8           ack pkts sent:             6      
     pure acks sent:            5           pure acks sent:            1      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:      3554           unique bytes sent:      3199      
     actual data pkts:          3           actual data pkts:          3      
     actual data bytes:      3554           actual data bytes:      3199      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          2           pushed data pkts:          1      
     SYN/FIN pkts sent:       1/0           SYN/FIN pkts sent:       1/1      
     req 1323 ws/ts:          Y/Y           req 1323 ws/ts:          Y/Y      
     adv wind scale:            4           adv wind scale:            0      
     req sack:                  Y           req sack:                  Y      
     sacks sent:                0           sacks sent:                0      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:          1460 bytes     mss requested:          1452 bytes
     max segm size:          1440 bytes     max segm size:          1440 bytes
     min segm size:           674 bytes     min segm size:           319 bytes
     avg segm size:          1184 bytes     avg segm size:          1065 bytes
     max win adv:           23248 bytes     max win adv:            7910 bytes
     min win adv:           14608 bytes     min win adv:            7236 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:           17848 bytes     avg win adv:            7775 bytes
     initial window:         3554 bytes     initial window:         1440 bytes
     initial window:            3 pkts      initial window:            1 pkts 
     ttl stream length:        NA           ttl stream length:      3199 bytes
     missed data:              NA           missed data:               0 bytes
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.004 secs 
     idletime max:           97.0 ms        idletime max:          111.6 ms   
     throughput:            18230 Bps       throughput:            16409 Bps  
================================
TCP connection 4:
	host g:        r3700.fritz.box:50886
	host h:        91.215.100.138:80
	complete conn: no	(SYNs: 2)  (FINs: 1)
	first packet:  Mon Mar 12 08:56:37.002838 2012
	last packet:   Mon Mar 12 08:56:37.201353 2012
	elapsed time:  0:00:00.198515
	total packets: 9
	filename:      /tmp/test.pcap
   g->h:			      h->g:
     total packets:             5           total packets:             4      
     ack pkts sent:             4           ack pkts sent:             4      
     pure acks sent:            3           pure acks sent:            1      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:       557           unique bytes sent:       379      
     actual data pkts:          1           actual data pkts:          1      
     actual data bytes:       557           actual data bytes:       379      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          1           pushed data pkts:          1      
     SYN/FIN pkts sent:       1/0           SYN/FIN pkts sent:       1/1      
     req 1323 ws/ts:          Y/Y           req 1323 ws/ts:          Y/N      
     adv wind scale:            4           adv wind scale:            7      
     req sack:                  Y           req sack:                  N      
     sacks sent:                0           sacks sent:                0      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:          1460 bytes     mss requested:          1452 bytes
     max segm size:           557 bytes     max segm size:           379 bytes
     min segm size:           557 bytes     min segm size:           379 bytes
     avg segm size:           556 bytes     avg segm size:           378 bytes
     max win adv:           15680 bytes     max win adv:            7040 bytes
     min win adv:           14608 bytes     min win adv:            7040 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:           15144 bytes     avg win adv:            7040 bytes
     initial window:          557 bytes     initial window:          379 bytes
     initial window:            1 pkts      initial window:            1 pkts 
     ttl stream length:        NA           ttl stream length:       379 bytes
     missed data:              NA           missed data:               0 bytes
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.000 secs 
     idletime max:           79.0 ms        idletime max:          109.6 ms   
     throughput:             2806 Bps       throughput:             1909 Bps  
================================
TCP connection 5:
	host i:        r3700.fritz.box:50431
	host j:        adserver.adtech.de:80
	complete conn: no	(SYNs: 0)  (FINs: 1)
	first packet:  Mon Mar 12 08:56:37.003543 2012
	last packet:   Mon Mar 12 08:56:37.034815 2012
	elapsed time:  0:00:00.031272
	total packets: 2
	filename:      /tmp/test.pcap
   i->j:			      j->i:
     total packets:             1           total packets:             1      
     ack pkts sent:             1           ack pkts sent:             1      
     pure acks sent:            0           pure acks sent:            1      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:         0           unique bytes sent:         0      
     actual data pkts:          0           actual data pkts:          0      
     actual data bytes:         0           actual data bytes:         0      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          0           pushed data pkts:          0      
     SYN/FIN pkts sent:       0/1           SYN/FIN pkts sent:       0/0      
     req 1323 ws/ts:          N/Y           req 1323 ws/ts:          N/Y      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:             0 bytes     mss requested:             0 bytes
     max segm size:             0 bytes     max segm size:             0 bytes
     min segm size:             0 bytes     min segm size:             0 bytes
     avg segm size:             0 bytes     avg segm size:             0 bytes
     max win adv:            1353 bytes     max win adv:              90 bytes
     min win adv:            1353 bytes     min win adv:              90 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:            1353 bytes     avg win adv:              90 bytes
     initial window:            0 bytes     initial window:            0 bytes
     initial window:            0 pkts      initial window:            0 pkts 
     ttl stream length:        NA           ttl stream length:        NA      
     missed data:              NA           missed data:              NA      
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.000 secs 
     idletime max:          267.7 ms        idletime max:          236.4 ms   
     throughput:                0 Bps       throughput:                0 Bps  
================================
TCP connection 6:
	host k:        r3700.fritz.box:50438
	host l:        adserver.adtech.de:80
	complete conn: no	(SYNs: 2)  (FINs: 0)
	first packet:  Mon Mar 12 08:56:37.003792 2012
	last packet:   Mon Mar 12 08:56:37.271233 2012
	elapsed time:  0:00:00.267441
	total packets: 12
	filename:      /tmp/test.pcap
   k->l:			      l->k:
     total packets:             7           total packets:             5      
     ack pkts sent:             6           ack pkts sent:             5      
     pure acks sent:            4           pure acks sent:            1      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:      1847           unique bytes sent:      1103      
     actual data pkts:          2           actual data pkts:          3      
     actual data bytes:      1847           actual data bytes:      1103      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          2           pushed data pkts:          3      
     SYN/FIN pkts sent:       1/0           SYN/FIN pkts sent:       1/0      
     req 1323 ws/ts:          Y/Y           req 1323 ws/ts:          Y/Y      
     adv wind scale:            4           adv wind scale:            7      
     req sack:                  Y           req sack:                  Y      
     sacks sent:                0           sacks sent:                0      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:          1460 bytes     mss requested:          1452 bytes
     max segm size:           944 bytes     max segm size:           747 bytes
     min segm size:           903 bytes     min segm size:           178 bytes
     avg segm size:           923 bytes     avg segm size:           367 bytes
     max win adv:           18672 bytes     max win adv:            9600 bytes
     min win adv:           14608 bytes     min win adv:            7680 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:           16317 bytes     avg win adv:            8160 bytes
     initial window:          903 bytes     initial window:          178 bytes
     initial window:            1 pkts      initial window:            1 pkts 
     ttl stream length:        NA           ttl stream length:        NA      
     missed data:              NA           missed data:              NA      
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.195 secs      data xmit time:        0.186 secs 
     idletime max:          144.5 ms        idletime max:          183.9 ms   
     throughput:             6906 Bps       throughput:             4124 Bps  
================================
TCP connection 7:
	host m:        r3700.fritz.box:56730
	host n:        server11058.yco.de:80
	complete conn: no	(SYNs: 0)  (FINs: 0)
	first packet:  Mon Mar 12 08:56:37.232323 2012
	last packet:   Mon Mar 12 08:56:37.232323 2012
	elapsed time:  0:00:00.000000
	total packets: 1
	filename:      /tmp/test.pcap
   m->n:			      n->m:
     total packets:             1           total packets:             0      
     ack pkts sent:             1           ack pkts sent:             0      
     pure acks sent:            0           pure acks sent:            0      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:       507           unique bytes sent:         0      
     actual data pkts:          1           actual data pkts:          0      
     actual data bytes:       507           actual data bytes:         0      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          1           pushed data pkts:          0      
     SYN/FIN pkts sent:       0/0           SYN/FIN pkts sent:       0/0      
     req 1323 ws/ts:          N/Y           req 1323 ws/ts:          N/N      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:             0 bytes     mss requested:             0 bytes
     max segm size:           507 bytes     max segm size:             0 bytes
     min segm size:           507 bytes     min segm size:             0 bytes
     avg segm size:           506 bytes     avg segm size:             0 bytes
     max win adv:            4006 bytes     max win adv:               0 bytes
     min win adv:            4006 bytes     min win adv:               0 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:            4006 bytes     avg win adv:               0 bytes
     initial window:          507 bytes     initial window:            0 bytes
     initial window:            1 pkts      initial window:            0 pkts 
     ttl stream length:        NA           ttl stream length:        NA      
     missed data:              NA           missed data:              NA      
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.000 secs 
     idletime max:           38.9 ms        idletime max:             NA ms   
     throughput:               NA           throughput:               NA      
================================
TCP connection 8:
	host o:        r3700.fritz.box:56741
	host p:        server11058.yco.de:80
	complete conn: no	(SYNs: 0)  (FINs: 0)
	first packet:  Mon Mar 12 08:56:37.232553 2012
	last packet:   Mon Mar 12 08:56:37.232553 2012
	elapsed time:  0:00:00.000000
	total packets: 1
	filename:      /tmp/test.pcap
   o->p:			      p->o:
     total packets:             1           total packets:             0      
     ack pkts sent:             1           ack pkts sent:             0      
     pure acks sent:            0           pure acks sent:            0      
     sack pkts sent:            0           sack pkts sent:            0      
     dsack pkts sent:           0           dsack pkts sent:           0      
     max sack blks/ack:         0           max sack blks/ack:         0      
     unique bytes sent:       508           unique bytes sent:         0      
     actual data pkts:          1           actual data pkts:          0      
     actual data bytes:       508           actual data bytes:         0      
     rexmt data pkts:           0           rexmt data pkts:           0      
     rexmt data bytes:          0           rexmt data bytes:          0      
     zwnd probe pkts:           0           zwnd probe pkts:           0      
     zwnd probe bytes:          0           zwnd probe bytes:          0      
     outoforder pkts:           0           outoforder pkts:           0      
     pushed data pkts:          1           pushed data pkts:          0      
     SYN/FIN pkts sent:       0/0           SYN/FIN pkts sent:       0/0      
     req 1323 ws/ts:          N/Y           req 1323 ws/ts:          N/N      
     urgent data pkts:          0 pkts      urgent data pkts:          0 pkts 
     urgent data bytes:         0 bytes     urgent data bytes:         0 bytes
     mss requested:             0 bytes     mss requested:             0 bytes
     max segm size:           508 bytes     max segm size:             0 bytes
     min segm size:           508 bytes     min segm size:             0 bytes
     avg segm size:           507 bytes     avg segm size:             0 bytes
     max win adv:            3140 bytes     max win adv:               0 bytes
     min win adv:            3140 bytes     min win adv:               0 bytes
     zero win adv:              0 times     zero win adv:              0 times
     avg win adv:            3140 bytes     avg win adv:               0 bytes
     initial window:          508 bytes     initial window:            0 bytes
     initial window:            1 pkts      initial window:            0 pkts 
     ttl stream length:        NA           ttl stream length:        NA      
     missed data:              NA           missed data:              NA      
     truncated data:            0 bytes     truncated data:            0 bytes
     truncated packets:         0 pkts      truncated packets:         0 pkts 
     data xmit time:        0.000 secs      data xmit time:        0.000 secs 
     idletime max:           38.7 ms        idletime max:             NA ms   
     throughput:               NA           throughput:               NA     

Loadbars v0.5.1

Es ist schon eine Weile her, und da ich einige Tage nichts mehr gebloggt habe, wollte ich dies mal wieder tun. Loadbars 0.5.1 wurde bereits letzten Monat released (diejenigen, die das auf Freecode (ehem. Freshmeat) verfolgen (sich dort das Project subscribed haben) sollten dies schon mitbekommen haben. Neu ist eigentlich nur die Moeglichkeit die Einstellungen in der Konfigurationsdatei ~/.loadbarsrc persistent zu konfigurieren. Loadbars schreibt diese Konfig automatisch, sollte sie noch nicht existieren, und setzt saemtliche default-Werte. So lassen sie sich einfacher herausfinden und nach eigenen Interessen anpassen.

Da ich nun die naechsten 2 Wochen Bereitschaft habe (d.h. weniger Dinge ohne Computer erledigen) ist die Wahrscheinlichkeit hoch, dass ich in der Zeit wieder etwas basteln werde :)

Sat Feb 25 20:09:02 CET 2012
* Release v0.5.1
* Add config file support (~/.loadbarsrc) and it's possible to configure 
 any option you find in --help but without leading '--'. For comments 
 just use the '#' sign. Sample config:
 showcores=1 # Always show cores on startup
 showtext=0 # Always don't display text on startup
* Add hotkey 'w' which writes current settings to the configfile
* Remove --title option (no need anyway)
* Some code cleanups
* Some bugfixes

Google Reader

Leider macht man sich immer mehr abhaengig von Google. Leider auch bei mir. Neben Google Plus, Chromium und Google Search benutze ich jetzt auch den Google Reader (RSS Feed Aggregator). Aus dem Folgenden Grund: Ich kann meine Feeds von ueberall synchronisieren (Android Smartphone, nativer Linux und FreeBSD Client, oder einfach per Browser). 

Gerade weil ich mit Liferea eine native Linuxapplikation habe, die Google Reader tauglich ist, und ich von 4 verschiedenen Rechnern Feeds lese, macht das spass.

reader.png
Dafuer muss man sich lediglich einen Google Account beschaffen und einige Feeds im Reader anlegen. Danach in Liferea unter Subscriptions -> New Source -> Google Reader die entsprechenden Googlecredentials eintragen. Fertig. 

Eigentlich bau ich sowas am liebsten immer selbst, jedoch fehlt es leider an Zeit und es gibt Wichtigeres.

Nachtrag: Und mit Google Play hat man direkt auch einen Podcastmanagement integriert (z.B. unter Android). Die Podcasts lassen sich auch per Web im Google Reader verwalten.

Loadbars v0.5.0

Derzeit habe ich einen "run" und hab schon wieder eine Loadbars Version released. Ja, ich versuche auch mal wieder etwas Anderes zu bloggen, versprochen!

v0.5.0.png

Dieses Release hat aber sehr viele kleine wichtige Aenderungen mit drin. Z.B. passt sich die Fenstergroesse automatisch der Anzahl der angezeigen Balken an. Es ist auch moeglich die Fenstergroesse mit den Cursortasten manuell zu beeinflussen. Der angezeigte Text wird automatisch ausgeblendet, wenn die Balken zu schmal sind, so dass kein Text mehr reinpasst und automatisch eingeblendet, wenn wieder genuegend Pixel vorhanden sind. Ein weiteres Keyfeature ist, dass (bisher nur rudimentaer) auch die Speicherauslastung visualisiert werden kann. Bisher leider nur RAM und SWAP Verbrauch. Die ganzen feinen Untergliederungen (Puffer, Paging usw) sind noch nicht drin, ist jedoch geplant.

Hier das Changelog:

 Release v0.5.0
* Add stats for rudimentary memory and swap usage (--showmem option or m hotkey)
* Remove --width and --inter options
* Add --barwidth option, each bar is barwidth pixels now
* Add --maxwidth option, which represents the max total window width
* Auto disable text display if text does not fit into window (maxwidth) pixels
* Auto re-enable text display if text does fit again into window 
* Key right increases window width by 100px and left decreases by 100px
* Key down increases window height by 100px and up decreases by 100px
* Set 'samples' default values from 1000 down to 500.
* No sporadic crashes on shutdown anymore
* Some internal tweaks, no separate event thread needed anymore. This fixes
  some sporadic bugs.

Update: Einfach git pull im master Branch durchfuehren (.deb kommen auch irgendwann mal, versprochen!)

expand - convert tabs to spaces

Ich habe gerade Loadbars v0.4.0.1 (maintenance version only, keine neuen features) released. Dabei habe ich auch alle Tabs durch 4 whitespaces ersetzt. Wie geht das? Ganz einfach:

expand --tabs=4 loadbars > new
mv new loadbars

Auch wenn man schon lange mit Linux gearbeitet hat, stoesst man immer wieder auf Kleinigkeiten, die neu sind. 

Ein anderes Beispiel: Die Formatierte Ausgabe des Alters einer Datei geht auch ohne stat sondern mit date +format -r datei. 

PS: Loadbars v0.5.0 wird wohl irgendwann naechste Woche released mit vielen neuen Features (RAM und Swap usage, evtl. auch Netzauslastung, sowie online Resizing des Fensters, uvm..). 

Loadbars v0.4.0 ist da

Hiermit gibt es eine neue Featureversion von Loadbars.

Sat Jan 21 18:32:45 CET 2012
* Released v0.4.0
* Also show stats for idle, iowait, irq, softirq, steal and guest cpu time
* Some parameters have been renamed (see --help)
* Introduced extended mode (use --extended 1 at startup or 'e' hotkey)
* Modified the bar colors a little bit (see --help)
* Some Bugfixes

Und so seiht das aus, wenn auch irq (weiss) und iowait (purple) visualisiert werden (Screenshot im extended mode):

2012-01-21-162610_1250x230_scrot.png
Die Hilfe sieht nun wie folgt aus:

pb@venus:~/git/loadbars$ ./loadbars --help
Explanations:
    st = Steal in % [see man proc] (extended)
        Color: Red
    gt = Guest in % [see man proc] (extended)
        Color: Red
    sr = Soft IRQ usage in % (extended)
        Color: White
    ir = IRQ usage in % (extended)
        Color: White
    io = IOwait cpu sage in % 
        Color: Purple
    id = Idle cpu usage in % (extended)
        Color: Black
    ni = Nice cpu usage in % 
        Color: Green
    us = User cpu usage in % 
        Color: Yellow, dark yellow if to>50%, orange if to>50%
    sy = System cpu sage in % 
        Blue, lighter blue if >30%
    to = Total CPU usage, which is (100% - id)
    pk = Max us+sy peak of last avg. samples (extended)
    avg = System load average; desc. order: 1, 5 and 15 min. avg. 
    1px horizontal line: Maximum sy+us+io of last 'avg' samples (extended)
    Extended means: text display only if extended mode is turned on
Examples:
    loadbars --extended 1 --showcores 1 --width 600 --hosts localhost
    loadbars --hosts localhost,server1.example.com,server2.example.com
    loadbars --cluster foocluster (foocluster is in /etc/clusters of cssh)
--average <ARG> - Num of samples for avg. (more fluent animations)
--cluster <ARG> - Cluster name from /etc/clusters
--extended <ARG> - Toggle extended display (0 or 1)
--factor <ARG> - Set graph scale factor (1.0 means 100%)
--height <ARG> - Set windows height
--hosts <ARG> - Comma sep. list of hosts; optional: user@ in front to each host
--inter <ARG> - Set update interval in seconds (default 0.1)
--samples <ARG> - Set number of samples until ssh reconnects
--showcores <ARG> - Toggle core display (0 or 1)
--showtexthost <ARG> - Toggle hostname/num text display (0 or 1)
--showtext <ARG> - Toggle text display (0 or 1)
--sshopts <ARG> - Set SSH options
--title <ARG> - Set the window title
--width <ARG> - Set windows width
pb@venus:~/git/loadbars$ 


Pages

Powered by Movable Type 4.38

Recent Comments

  • rantanplan: Da nun eBook-Reader "in" sind. Das Archos 5 IT eignet read more
  • rantanplan: Wg. Loadbalancing per BGP: http://nil.si/ipcorner/LoadBalancingBGP/ read more
  • rantanplan: Ein weiteres Bugfix-Release v0.2.0.2 folgte somit auch. read more
  • rantanplan: Ich habe soeben ein kleines Bugfix-Release v0.2.0.1 nachgeschoben. read more
  • rantanplan: Because I dont have any free disk space anymore I read more
  • rantanplan: Because I dont have any free disk space anymore I read more
  • rantanplan: In den letzten Tagen wurde GNU awk 4.0.0 released. Das read more
  • rantanplan: :-) read more
  • gloomer: Sag bloß Du warst noch nie im PC-Fachhandel und hast read more
  • rantanplan: Ich befürchste dass mein Intel Pentium 4 2.4Ghz langsam zu read more

Recent Assets

  • loadbarslogo.png
  • reader.png
  • v0.5.0.png
  • 2012-01-21-162610_1250x230_scrot.png
  • nuke2.JPG
  • nuke1.JPG
  • shred.jpg
  • 2011-11-23-170637_1250x150_scrot.png
  • 2011-11-23-170344_1250x150_scrot.png
  • 2011-11-23-170246_1250x150_scrot.png

Find recent content on the main index or look in the archives to find all content.