Debian Codegraph @

amplot/amplot.g

raw
1 #
2 # Amanda, The Advanced Maryland Automatic Network Disk Archiver
3 # Copyright (c) 1992,1993.1994-1998 University of Maryland at College Park
4 # Copyright (c) 2007-2012 Zmanda, Inc. All Rights Reserved.
5 # Copyright (c) 2013-2016 Carbonite, Inc. All Rights Reserved.
6 # All Rights Reserved.
7 #
8 # Permission to use, copy, modify, distribute, and sell this software and its
9 # documentation for any purpose is hereby granted without fee, provided that
10 # the above copyright notice appear in all copies and that both that
11 # copyright notice and this permission notice appear in supporting
12 # documentation, and that the name of U.M. not be used in advertising or
13 # publicity pertaining to distribution of the software without specific,
14 # written prior permission. U.M. makes no representations about the
15 # suitability of this software for any purpose. It is provided "as is"
16 # without express or implied warranty.
17 #
18 # U.M. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
19 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL U.M.
20 # BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
21 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
22 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
23 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24 #
25 # Author: Olafur Gudumundsson, ([email protected]) Trusted Information Systems
26 # Formerly at: Systems Design and Analysis Group
27 # Computer Science Department
28 # University of Maryland at College Park
29 #
30 # program to print the summary graph for the amanda runs in gnupot
31 # gnumaster.awk will generate the data for this one
32 # Creation Date July 1992
33 # Last modified: May 1993
34 # Input: the files specified below on the plot line
35 # Output: a postscript file
36 #
37 set style data lines
38 set xrange [0:210]
39 set yrange [0:420]
40 set xlabel "Minutes"
41 #set xtics 0,10
42 set xtics ( \
43 "0:00" 0, "" 10, "0:20" 20, "" 30, "0:40" 40, "" 50,\
44 "1:00" 60, "" 70, "1:20" 80, "" 90, "1:40" 100, "" 110,\
45 "2:00" 120, "" 130, "2:20" 140, "" 150, "2:40" 160, "" 170,\
46 "3:00" 180, "" 190, "3:20" 200, "" 210, "3:40" 220, "" 230,\
47 "4:00" 240, "" 250, "4:20" 260, "" 270, "4:40" 280, "" 290,\
48 "5:00" 300, "" 310, "5:20" 320, "" 330, "5:40" 340, "" 350,\
49 "6:00" 360, "" 370, "6:20" 380, "" 390, "6:40" 400, "" 410,\
50 "7:00" 420, "" 430, "7:20" 440, "" 450, "7:40" 460, "" 470,\
51 "8:00" 480, "" 490, "8:20" 500, "" 510, "8:40" 520, "" 530)
52
53 set ytics ("0" 0, "20" 15, "40" 30, "60" 45, "80" 60, "100" 75,\
54 "Idle" 90,"Active" 100, \
55 "0" 120, "20" 140,"40" 160, "60" 180, "80" 200, "100" 220,\
56 "0" 250, "100" 280,\
57 "0" 300, "60" 320, "120" 340, "180" 360, "240" 380, "300" 400,\
58 "360" 420, "420" 440, "480" 460, "540" 480, "600" 500)
59
60 #set size 0.7,1.3; set term postscript portrait "Times-Roman" 10
61 #set size 0.9,0.9; set term postscript landscape "Times-Roman" 12
62 # file title has the parameters that this program needs
63 load 'title'
64 plot "run_queue" title "Run Queue" with lines,\
65 "tape_queue" title "Tape Queue" with lines,\
66 "finished" title "Dumps Finished" with lines,\
67 "bandw_free" title "Bandwidth Allocated" with lines, \
68 "disk_alloc" title "%Disk Allocated" with lines, \
69 "tape_wait" title "%Tape Wait" with lines,\
70 "tape_idle" title "Taper Idle" with lines,\
71 "dump_idle" title "Dumpers Idle" with lines