Veritas-bu

[Veritas-bu] Total Data BACKED up in NetBackup

2006-06-12 07:24:41
Subject: [Veritas-bu] Total Data BACKED up in NetBackup
From: simon.weaver at astrium.eads.net (WEAVER, Simon)
Date: Mon, 12 Jun 2006 12:24:41 +0100
Dave
Im starting to wonder if the Media Written report is just going to be an
easier way, rather than scripting anything?

I can then export the info to excel and get a grand total.

Is the Written report the same as bpimagelist?

Thanks :-)

Regards

Simon Weaver
3rd Line Technical Support
Windows Domain Administrator 

EADS Astrium Limited, B32AA IM (DCS)
Anchorage Road, Portsmouth, PO3 5PU

Email: Simon.Weaver at Astrium-eads.net



-----Original Message-----
From: Dave Markham [mailto:dave.markham at fjserv.net] 
Sent: 12 June 2006 12:18
To: dave.markham at fjserv.net
Cc: WEAVER, Simon; 'veritas-bu at mailman.eng.auburn.edu'
Subject: Re: [Veritas-bu] Total Data BACKED up in NetBackup


oh and $div needs to be 1 1024, or 1048576.

I do it like this :-

totalsize()
{
        size=$1
        if [ "$size" = "KB" ];then
                div=1
        elif [ "$size" = "MB" ];then
                div=1024
        elif [ "$size" = "GB" ];then
                div=1048576             #1024*1024
        else
                killme 1 "No Valid size format passed to function" totalsize
        fi

        bpimagelist -l -hoursago $hoursago | grep IMAGE | awk '{
tot+=$19} END { printf "Data backed up in the last '$hoursago' hours:
%9.0f '$size'\n",tot/'$div' }'
}




Dave Markham wrote:
> Have you tried this :-
>
>  bpimagelist -l -hoursago $hoursago | grep IMAGE | awk '{ tot+=$19} 
> END { printf "Data backed up in the last '$hoursago' hours: %9.0f 
> '$size'\n",tot/'$div' }'
>
> $size is one of KB, MB or GB and $hoursago just substitute with the 
> hours you want to go back.
>
> I have this in my daily report see so know how much is done total each 
> night.
>
>
>
> WEAVER, Simon wrote:
>   
>> */Forgot to add, used the Media Written report for 1 week period, 
>> which I can then add a total, gives me a round figure, but wondered 
>> if this was good enough!/*
>> *//*
>> */Thanks/*
>>
>> /Regards/
>>
>> /Simon Weaver
>> *3rd Line Technical Support
>> Windows Domain Administrator*/
>>
>> /EADS Astrium Limited, B32AA IM (DCS)/
>> /Anchorage Road, Portsmouth, PO3 5PU/
>>
>> /Email: //Simon.Weaver at Astrium-eads.net/ 
>> <mailto:Simon.Weaver at Astrium-eads.net>
>>
>>     -----Original Message-----
>>     *From:* WEAVER, Simon
>>     *Sent:* 12 June 2006 09:28
>>     *To:* 'veritas-bu at mailman.eng.auburn.edu'
>>     *Subject:* [Veritas-bu] Total Data BACKED up in NetBackup
>>
>>     */Guys/*
>>     */quick question - is there a SIMPLE method to calculating just
>>     HOW much Data NetBackup backed up last week?/*
>>      
>>
>>     /Regards/
>>
>>     /Simon Weaver
>>     *3rd Line Technical Support
>>     Windows Domain Administrator*/
>>
>>     /EADS Astrium Limited, B32AA IM (DCS)/
>>     /Anchorage Road, Portsmouth, PO3 5PU/
>>
>>     /Email: //Simon.Weaver at Astrium-eads.net/
>>     <mailto:Simon.Weaver at Astrium-eads.net>
>>
>>      
>>     This email is for the intended addressee only.
>>     If you have received it in error then you must not use, retain,
>>     disseminate or otherwise deal with it.
>>     Please notify the sender by return email.
>>     The views of the author may not necessarily constitute the views
>>     of EADS Astrium Limited.
>>     Nothing in this email shall bind EADS Astrium Limited in any
>>     contract or obligation.
>>
>>     EADS Astrium Limited, Registered in England and Wales No. 2449259
>>     Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire,
>>     SG1 2AS, England
>>
>> This email is for the intended addressee only.
>> If you have received it in error then you must not use, retain, 
>> disseminate or otherwise deal with it. Please notify the sender by 
>> return email. The views of the author may not necessarily constitute 
>> the views of EADS Astrium Limited.
>> Nothing in this email shall bind EADS Astrium Limited in any contract
>> or obligation.
>>
>> EADS Astrium Limited, Registered in England and Wales No. 2449259 
>> Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 
>> 2AS, England
>>
>> ---------------------------------------------------------------------
>> ---
>>
>> _______________________________________________
>> Veritas-bu maillist  -  Veritas-bu at mailman.eng.auburn.edu 
>> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>>   
>>     
>
> _______________________________________________
> Veritas-bu maillist  -  Veritas-bu at mailman.eng.auburn.edu 
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>   

This email is for the intended addressee only.
If you have received it in error then you must not use, retain, disseminate or 
otherwise deal with it.
Please notify the sender by return email.
The views of the author may not necessarily constitute the views of EADS 
Astrium Limited.
Nothing in this email shall bind EADS Astrium Limited in any contract or 
obligation.

EADS Astrium Limited, Registered in England and Wales No. 2449259
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England

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