Networker

Re: [Networker] Throughput reporting

2002-09-30 19:31:55
Subject: Re: [Networker] Throughput reporting
From: Glenn Britton <britton AT NOC.UTORONTO DOT CA>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 30 Sep 2002 11:03:25 -0400
Stan,
perhaps this shell script will be of use.
I run it daily  to generate a report like the one you describe,
but it can be run for arbitrary periods that the mminfo command
understands.

Glenn Britton
University of Toronto
Computing and Network Services
britton AT noc.utoronto DOT ca
---------------------------------------------------------------
#!/bin/sh
# This script is run out of cron with a single argument that is
# fed to a mminfo query.....or  run it like this:
# backupreport [day, week, month etc.]
# An "ls" of the /nsr/index/ directory is used to
# build a list of all Networker clients.
# Output is alphabetically sorted to /tmp/burpt,
# one line per Networker client with bytecount.
#
# Note: modify the SHORTNAME variable assignment string
# to reflect your domain name.
#
# Glenn  Britton, University of Toronto, May 2000

# remove tmp files from previous runs
rm /tmp/burpt /tmp/hosts
ls  /nsr/index >/tmp/hosts

for i in `cat /tmp/hosts`
 do
  SHORTNAME=`echo $i |sed 's/.utoronto.ca//'`
  /usr/bin/echo  $SHORTNAME " " `/usr/sbin/mminfo -r savetime,totalsize \
         -q ''client=$i'','savetime> last '$1'' \
         |awk '{ s += $2 } END \
        { print  s/1000000, "MB" }';`  >> /tmp/burpt
 done
--------------------------------------------------------------------------

>From:    Stan Horwitz <stan AT TEMPLE DOT EDU>
>Subject: Throughput reporting

>Does anyone have any ideas on how to generate a report that gives the
>throughput, on a per client basis, of all our backups for the previous
>day?
>
>This is a report I have been requested to provide, but I am not sure how.

--
Note: To sign off this list, send a "signoff" command via email
to listserv AT listmail.temple DOT edu or visit the list's Web site at
http://listmail.temple.edu/archives/networker.html where you can
also view and post messages to the list.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=

<Prev in Thread] Current Thread [Next in Thread>