rsar icon indicating copy to clipboard operation
rsar copied to clipboard

--noxh option does not work as expected

Open ptalbert opened this issue 9 years ago • 1 comments

From the -h description the --nohx option should hide extra header output. It does not seem to work or I do not understand what it is supposed to be doing???

Version info: rsar v0.1.1 last mod 2013/08/21

$ rsar --noxh --hn -z -n DEV,EDEV,SOCK,IP,EIP,TCP,ETCP,UDP var/log/sa/sar14 -N eth0 -t '^0[3-4]'
Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)

00:00:01        IFACE   rxpck/s   txpck/s    rxkB/s    txkB/s   rxcmp/s   txcmp/s  rxmcst/s
03:00:01         eth0     43.07     40.44     26.47     12.38      0.00      0.00      0.72
03:10:01         eth0     42.59     39.73     25.85     11.52      0.00      0.00      0.73
03:20:01         eth0     43.21     41.40     29.40     12.19      0.00      0.00      0.73
03:30:01         eth0     42.71     40.05     26.36     11.66      0.00      0.00      0.72
03:40:01         eth0     43.43     40.47     28.38     11.87      0.00      0.00      0.72
03:50:01         eth0     42.53     39.91     25.65     11.46      0.00      0.00      0.72
04:00:01         eth0     43.23     41.51     30.07     12.59      0.00      0.00      0.72
04:10:01         eth0     42.39     39.57     25.86     11.28      0.00      0.00      0.73
04:20:01         eth0     42.88     40.38     25.87     11.87      0.00      0.00      0.73
04:30:01         eth0     44.74     42.31     32.85     13.18      0.00      0.00      0.72
04:40:01         eth0     41.90     39.89     25.75     11.83      0.00      0.00      0.72
04:50:01         eth0     42.70     39.83     25.78     11.10      0.00      0.00      0.72

Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)

00:00:01        IFACE   rxerr/s   txerr/s    coll/s  rxdrop/s  txdrop/s  txcarr/s  rxfram/s  rxfifo/s  txfifo/s
03:00:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
03:10:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
03:20:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
03:30:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
03:40:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
03:50:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:00:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:10:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:20:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:30:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:40:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00
04:50:01         eth0      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00      0.00

Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)

00:00:01       totsck    tcpsck    udpsck    rawsck   ip-frag    tcp-tw
03:00:01          325         8         9         0         0         1
03:10:01          324         8         9         0         0         1
03:20:01          324         8         9         0         0         1
03:30:01          328         8         9         0         0         1
03:40:01          324         8         9         0         0         1
03:50:01          322         8         9         0         0         3
04:00:01          328         8         9         0         0         1
04:10:01          324         8         9         0         0         1
04:20:01          322         8         9         0         0         2
04:30:01          328         8         9         0         0         1
04:40:01          324         8         9         0         0         1
04:50:01          322         8         9         0         0         2

Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)


Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)


Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)


Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)


Linux 2.6.32-573.18.1.el6.x86_64 (localhost)    2016-10-14  _x86_64_    (2 CPU)

ptalbert avatar Oct 16 '16 15:10 ptalbert

Yeah I notice oddness occasionally myself. Send me some SAR files and I'll take a look.

On Sun, Oct 16, 2016, 11:47 ptalbert [email protected] wrote:

From the -h description the --nohx option should hide extra header output. It does not seem to work or I do not understand what it is supposed to be doing???

Version info: rsar v0.1.1 last mod 2013/08/21

$ rsar --noxh --hn -z -n DEV,EDEV,SOCK,IP,EIP,TCP,ETCP,UDP var/log/sa/sar14 -N eth0 -t '^0[3-4]' Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

00:00:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s 03:00:01 eth0 43.07 40.44 26.47 12.38 0.00 0.00 0.72 03:10:01 eth0 42.59 39.73 25.85 11.52 0.00 0.00 0.73 03:20:01 eth0 43.21 41.40 29.40 12.19 0.00 0.00 0.73 03:30:01 eth0 42.71 40.05 26.36 11.66 0.00 0.00 0.72 03:40:01 eth0 43.43 40.47 28.38 11.87 0.00 0.00 0.72 03:50:01 eth0 42.53 39.91 25.65 11.46 0.00 0.00 0.72 04:00:01 eth0 43.23 41.51 30.07 12.59 0.00 0.00 0.72 04:10:01 eth0 42.39 39.57 25.86 11.28 0.00 0.00 0.73 04:20:01 eth0 42.88 40.38 25.87 11.87 0.00 0.00 0.73 04:30:01 eth0 44.74 42.31 32.85 13.18 0.00 0.00 0.72 04:40:01 eth0 41.90 39.89 25.75 11.83 0.00 0.00 0.72 04:50:01 eth0 42.70 39.83 25.78 11.10 0.00 0.00 0.72

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

00:00:01 IFACE rxerr/s txerr/s coll/s rxdrop/s txdrop/s txcarr/s rxfram/s rxfifo/s txfifo/s 03:00:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:10:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:20:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:30:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:40:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 03:50:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:00:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:10:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:20:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:30:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:40:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 04:50:01 eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

00:00:01 totsck tcpsck udpsck rawsck ip-frag tcp-tw 03:00:01 325 8 9 0 0 1 03:10:01 324 8 9 0 0 1 03:20:01 324 8 9 0 0 1 03:30:01 328 8 9 0 0 1 03:40:01 324 8 9 0 0 1 03:50:01 322 8 9 0 0 3 04:00:01 328 8 9 0 0 1 04:10:01 324 8 9 0 0 1 04:20:01 322 8 9 0 0 2 04:30:01 328 8 9 0 0 1 04:40:01 324 8 9 0 0 1 04:50:01 322 8 9 0 0 2

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

Linux 2.6.32-573.18.1.el6.x86_64 (localhost) 2016-10-14 x86_64 (2 CPU)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ryran/rsar/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/ABCsCkJXNwhjX8bB6SNZyfkguVw4JsUPks5q0kcUgaJpZM4KYALW .

ryran avatar Oct 16 '16 16:10 ryran