1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<!-- ntop v3.0 release, Burton Strauss, Jan2004 -->
5
<!-- Validates as HTML 4.01 Transitional with the addition of the following tag
6
AND the removal of the cellspacing/cellpadding option below! -->
7
<!-- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> -->
8
<meta http-equiv="Pragma" content="no-cache">
9
<meta http-equiv="Cache-Control" content="no-cache">
10
<link rel=stylesheet HREF="/style.css" type="text/css">
11
<script src="/functions.js" type="text/javascript" language="javascript"></script>
12
<title>ntop Data Dump</title>
14
<body background="/white_bg.gif" bgcolor="#FFFFFF" LINK=blue VLINK=blue>
15
<center><H1>ntop Data Dump</H1></center>
16
<p><b>ntop</b> is able to dump traffic data in various formats (e.g. text, perl,
17
php) so that external programs can use this data for further processing, such as
18
storage in a database. This page is the access point for these HTTP data dumps.</p>
20
<!-- Note, to overcome w3c limits on form tag placement we nest the table -->
23
<table border="1" cellspacing=\"0\" cellpadding=\"2\">
24
<tr bgcolor="#DDDDDD"><th align="center">Report Type</th>
25
<th align="center">Description</th>
26
<th align="center">Action</th></tr>
28
<tr><th align=left>Hosts</th>
29
<td>Dump information about known hosts</td>
30
<th align="center"><form method="get" action="/dumpData.html">
31
<table border="0" width="100%">
32
<tr><th align="left">Format:</th><td align="left"><select name=language>
33
<option value="text">text
34
<option value="xml">xml
35
<option value="perl">perl
36
<option value="php">php
37
<option value="python">python</select>
40
<tr><th align="right">Attributes List:</th><td><select name=view>
41
<option value="long">Long
42
<option value="short">Short</select>
45
<tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
49
<tr><th align=left>Hosts Matrix</th>
50
<td>Dump local hosts traffic matrix</td>
51
<th align="center"><form method="get" action="/dumpHostsMatrix.html">
52
<table border="0" width="100%">
53
<tr><th align="left">Format:</th><td align="left"><select name=language>
54
<option value="text">text
55
<option value="xml">xml
56
<option value="perl">perl
57
<option value="php">php
58
<option value="python">python</select>
61
<tr><th align="right">Attributes List:</th><td><select name=view>
62
<option value="long">Long
63
<option value="short">Short</select>
66
<tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
70
<tr><th align=left>Network Interfaces</th>
71
<td>Dump per-interface information</td>
72
<th align="center"><form method="get" action="/dumpTrafficData.html">
73
<table border="0" width="100%">
74
<tr><th align="left">Format:</th><td align="left"><select name=language>
75
<option value="text">text
76
<option value="xml">xml
77
<option value="perl">perl
78
<option value="php">php
79
<option value="python">python</select>
82
<tr><th align="right">Attributes List:</th><td><select name=view>
83
<option value="long">Long
84
<option value="short">Short</select>
87
<tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
91
<tr><th align=left>Network Flows</th>
92
<td>Dump traffic information of the configured network flows</td>
93
<th align="center"><form method="get" action="/dumpFlows.html">
94
<table border="0" width="100%">
95
<tr><th align="left">Format:</th><td align="left"><select name=language>
96
<option value="text">text
97
<option value="xml">xml
98
<option value="perl">perl
99
<option value="php">php
100
<option value="python">python</select>
103
<tr><th align="right">Attributes List:</th><td><select name=view>
104
<option value="long">Long
105
<option value="short">Short</select>
108
<tr><td colspan="2" align="center"><input type=submit value="Dump Data"></td></tr>
115
<p>You may also use other tools, such as wget, if you construct the equivalent
116
command. For example, to dump key per-host data in php format,</p>
117
<pre>wget -O ntop-20040123.php "http://127.0.0.1:3000/dumpData.html?language=php&view=short"</pre>
120
<pre>$ntopHash = array(
121
'192.168.3.2' => array(
122
'hostSymIpAddress' => 'xxx.ntop.org',
123
'pktSent' => '1031',
124
'pktRcvd' => '922',
126
'icmpRcvd' => '0',