[rrd-users] Re: using grep on snmp collected data
Serge Maandag
serge.maandag at staff.zeelandnet.nl
Mon Nov 17 21:26:26 MET 2003
Put these lines in a file called "bla" and for the sum of all entries between 10 and 14 try:
cat bla | grep ' 1[0123]:'|awk '{s += $10}END{print "sum is", s, " average is", s/NR}'
Serge.
> -----Original Message-----
> From: gab.seun jones.ewulomi [mailto:seun_ewulomi at hotmail.com]
> Sent: Monday, November 17, 2003 7:03 PM
> To: rrd-users at list.ee.ethz.ch
> Subject: [rrd-users] using grep on snmp collected data
>
> How could I use grep/awk to grep for data between a time frame
>
> In Kbits R1 6/1.10 3/105 to R2 31/10/03 10:15:00 3657.07
> In Kbits R1 6/1.10 3/105 to R2 31/10/03 10:20:00 3976.85
.....
> In Kbits R1 6/1.10 3/105 to R2 31/10/03 14:10:00 3768.24
>
> BUT If I would like to see all data within a week between
> 10am and 14pm how
> can I do this?
>
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list