This repository has been archived by the owner on Jun 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog2db.html
95 lines (86 loc) · 4.36 KB
/
log2db.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>log2db.pm</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:rurban@x-ray.at" />
</head>
<body style="background-color: white">
<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#subroutines">SUBROUTINES</a></li>
<li><a href="#author">AUTHOR</a></li>
<li><a href="#credits">CREDITS</a></li>
<li><a href="#license_and_copyright">LICENSE AND COPYRIGHT</a></li>
<li><a href="#last_updated">LAST UPDATED</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p><strong>log2db</strong></p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
use log2db;</pre>
<pre>
&modifyIostat($logPath, $tablePath); # iostat
&modifyNetstat($logPath, $tablePath); # netstat
&modifySlabinfo($logPath, $tablePath); # slabinfo
&modifySolstat($logPath, $tablePath); # mpstat, prstat
&modifySysstat($logPath, $tablePath); # pidstat, sar
&modifyTop($logPath, $tablePath); # top
&modifyTypeperf($logPath, $tablePath); # esxtop, typeperf
&modifyVmstat($logPath, $tablePath); # vmstat
&modifyVrstat($logPath, $tablePath); # vrstat
&modifyVvrstat($logPath, $tablePath); # vxmemstat, vxrlink, vxrvg
&modifyVxfsstatBCache($logPath, $tablePath); # vxfsstat_bcache
&modifyVxfsstatICache($logPath, $tablePath); # vxfsstat_icache
&modifyVxfsstatFile($logPath, $tablePath); # vxfsstat_file
&modifyVxrlinkE($logPath, $tablePath); # vxrlink_e
&modifyVxrlinkStatus($logPath, $tablePath); # vxrlink_status
&modifyVxstat($logPath, $tablePath); # vxstat</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p><strong>log2db</strong> is a utility to modify log files generated using esxtop, iostat, mpstat, netstat, pidstat, prstat, sar, slabinfo, typeperf, vmstat, vxfsstat, vxstat into text database that can be parsed by <strong>vxperf2</strong>. <strong>log2db.pl</strong> is the Perl wrapper around <strong>log2db</strong> which can be run from the command-line or called from non-Perl scripts.</p>
<p>
</p>
<hr />
<h1><a name="subroutines">SUBROUTINES</a></h1>
<p>The <strong>log2db</strong> module contains sixteen subroutines: <strong>modifyIostat</strong>, <strong>modifyNetstat</strong>, <strong>modifySlabinfo</strong>, <strong>modifySolstat</strong>, <strong>modifySysstat</strong>, <strong>modifyTop</strong>, <strong>modifyTypeperf</strong>, <strong>modifyVmstat</strong>, <strong>modifyVrstat</strong>, <strong>modifyVvrstat</strong>, <strong>modifyVxfsstatBCache</strong>, <strong>modifyVxfsstatICache</strong>, <strong>modifyVxfsstatFile</strong>, <strong>modifyVxrlinkE</strong>, <strong>modifyVxrlinkStatus</strong> and <strong>modifyVxstat</strong>.</p>
<p>All of them take two parameters -- path to the log file to be modified and path to the table file to be saved as. They're all very trivial, basic, and "hardcoded". One golden rule for creating subroutines is that <strong>the table file should always start with a newline</strong>.</p>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<p><strong>Sravan Bhamidipati</strong> <a href="mailto:(Sravan_Bhamidipati@symantec.com,">(Sravan_Bhamidipati@symantec.com,</a> <a href="mailto:bsravanin@gmail.com)">bsravanin@gmail.com)</a></p>
<p>
</p>
<hr />
<h1><a name="credits">CREDITS</a></h1>
<p>Rajalaxmi Angadi contributed to the <strong>modifyVxfsstatBCache</strong>, <strong>modifyVxfsstatICache</strong>, <strong>modifyVxfsstatFile</strong> and <strong>modifyVxstat</strong> subroutines.</p>
<p>
</p>
<hr />
<h1><a name="license_and_copyright">LICENSE AND COPYRIGHT</a></h1>
<p>MIT License: <a href="http://www.opensource.org/licenses/mit-license.php">http://www.opensource.org/licenses/mit-license.php</a>
Symantec Corporation: <a href="http://www.symantec.com">http://www.symantec.com</a></p>
<p>
</p>
<hr />
<h1><a name="last_updated">LAST UPDATED</a></h1>
<p>29th November, 2011</p>
</body>
</html>