how to query information on the network traffic [message #7026 is a reply to message #7025] |
Tue, 01 July 2008 11:38 |
Silvia Masciocchi
Messages: 162 Registered: May 2006
|
first-grade participant |
From: *gsi.de
|
|
Mail from Mathias Muench to Anton:
Date: Wed, 18 Jun 2008 16:34:42 +0200
From: "\"Münch, Mathias\"" <m.muench@gsi.de>
To: Anton Andronic <A.Andronic@gsi.de>
Subject: Re: query database
Hi Anton,
I am not sure if I can teach you, but I can give you some pointers.
The raw data can be found in
http://lxmon3/torrus_rrd/
After downloading one of the files (the names should be self explaining) you can query them with rrdtool, e.g. on lxi machine with:
rrdtool fetch giffls02_10GigabitEthernet0_2_1_if-mib.rrd MAX
rrdtool fetch giffls02_10GigabitEthernet0_2_1_if-mib.rrd MAX -s -1d
rrdtool fetch giffls02_10GigabitEthernet0_2_1_if-mib.rrd MAX -s -1w
rrdtool fetch giffls02_10GigabitEthernet0_2_1_if-mib.rrd MAX -s -1m
for the data of the last day/week/month respectively. For further information, try "man rrdtool".
The timestamp is the UNIX epoch, Octet translates to "eight bit" (aka Byte).
For downloading many files, you may use curl of course, Silvia has lists that will allow you to generate file names with a little bit of text mangling.
CU,
Mathias
|
|
|