|
From: Madan T. <mad...@gm...> - 2009-05-24 03:10:33
|
Hi, I am new to gnuplot and need your advice on setting up a graph Data to be plotted ====================================================== [root@srv01 html]# cat /tmp/disk.dat-web01-20090523.dsk ################################################################################ # Collectl: V3.3.2-1 HiRes: 1 # Host: srv01 DaemonOpts: # Distro: CentOS release 5.2 (Final) Platform: X7DBU ################################################################################ #Date Time [DSK:sda]Name [DSK:sda]Reads [DSK:sda]RMerge [DSK:sda]RKBytes [DSK:sda]Writes [DSK:sda]WMerge [DSK:sda]WKBytes [DSK:sda]Request [DSK:sda]QueLen [DSK:sda]Wait [DSK:sda]SvcTim [DSK:sda]Util [DSK:hdb]Name [DSK:hdb]Reads [DSK:hdb]RMerge [DSK:hdb]RKBytes [DSK:hdb]Writes [DSK:hdb]WMerge [DSK:hdb]WKBytes [DSK:hdb]Request [DSK:hdb]QueLen [DSK:hdb]Wait [DSK:hdb]SvcTim [DSK:hdb]Util 20090523 21:57:38 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 20090523 21:57:39 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 20090523 21:57:40 sda 0 0 0 10 128 551 55 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 20090523 21:57:41 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 20090523 21:57:42 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 [root@srv01 html]# Fields to plot would be like : ====================================================== Date Time [DSK:sda]Name [DSK:sda]Reads [DSK:sda]RMerge [DSK:sda]RKBytes [DSK:sda]Writes [DSK:sda]WMerge [DSK:sda]WKBytes [DSK:sda]Request [DSK:sda]QueLen [DSK:sda]Wait [DSK:sda]SvcTim [DSK:sda]Util [DSK:hdb]Name [DSK:hdb]Reads [DSK:hdb]RMerge [DSK:hdb]RKBytes [DSK:hdb]Writes [DSK:hdb]WMerge [DSK:hdb]WKBytes [DSK:hdb]Request [DSK:hdb]QueLen [DSK:hdb]Wait [DSK:hdb]SvcTim [DSK:hdb]Util Data in the fiels would be like: ====================================================== 20090523 20:27:05 sda 0 0 0 0 0 0 0 0 0 0 0 hdb 0 0 0 0 0 0 0 0 0 0 0 I tried something like followig however was not successful: plot "/tmp/disk.dat-web01-20090523.dsk" using 1:1 title 'Date', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:2 title 'Time', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:3 title '[DSK:sda]Name', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:4 title '[DSK:sda]Reads', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:5 title '[DSK:sda]RMerge', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:6 title '[DSK:sda]RKBytes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:7 title '[DSK:sda]Writes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:8 title '[DSK:sda]WMerge', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:9 title '[DSK:sda]WKBytes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:10 title '[DSK:sda]Request', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:11 title '[DSK:sda]QueLen', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:12 title '[DSK:sda]Wait', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:13 title '[DSK:sda]SvcTim', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:14 title '[DSK:sda]Util', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:15 title 'Date', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:16 title 'Time', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:17 title '[DSK:sdb]Name', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:18 title '[DSK:sdb]Reads', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:19 title '[DSK:sdb]RMerge', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:20 title '[DSK:sdb]RKBytes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:21 title '[DSK:sdb]Writes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:22 title '[DSK:sdb]WMerge', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:23 title '[DSK:sdb]WKBytes', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:24 title '[DSK:sdb]Request', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:25 title '[DSK:sdb]QueLen', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:26 title '[DSK:sdb]Wait', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:27 title '[DSK:sdb]SvcTim', \ "/tmp/disk.dat-web01-20090523.dsk" using 1:28 title '[DSK:sdb]Util' Can you advise how can we plot them in 2d ( probably with time in x axis and data in y axis ) . Thanks |