Amount of data backed up?
Updated: 21 May 2010 | 7 comments
Is there a nice way to interograte NBU 6.5 to tell you much data it backed up over a given period split between NDMP filers and normal clients?
discussion Filed Under:
Comments
Is Netbackup Operations
Is Netbackup Operations Manager a free componet or requires a license?
Amount of data backed up
Assuming you're on a UNIX or Linux master server ....
This will tell you how many GB were backed up in total within a certain timeframe :
bpimagelist -d 07/20/2009 08:00:00 -e 07/21/2009 08:00:00 |grep IMAGE|awk '{tot+=$19}END{print tot/1024/1024}'
This will tell you how many GB were backed up via NDMP within a certain timeframe :
bpimagelist -d 07/20/2009 08:00:00 -e 07/21/2009 08:00:00 -pt NDMP |grep IMAGE|awk '{tot+=$19}END{print tot/1024/1024}'
Subtract the latter from the former to find the total number of non-NDMP GB backed up.
And yes, NOM is included with NBU 6.5
I am using this Script !!!
Just enter the start and end date ....
#!/bin/sh
echo "Enter Start date & time in mm/dd/yyy HH:MM:SS Format\n "
read START DATE
echo "Enter End Date & time in mm/dd/yyyy HH:MM:SS Format\n"
read END TIME
SERVERS=`/usr/openv/netbackup/bin/admincmd/bpimagelist -g -d "$START" "$DATE" -e "$END" "$TIME" -M <master Server> -l | grep -i image | cut -d " " -f2 | sort -u | wc -l`
sleep 10
DATA=`/usr/openv/netbackup/bin/admincmd/bpimagelist -g -d "$START" "$DATE" -e "$END" "$TIME" -M <master Server> -l | grep -i image | cut -d " " -f19 | awk '{sum +=$1/1024/1024/1024} END {print sum}'`
sleep 10
MEDIA=`/usr/openv/netbackup/bin/admincmd/bpimagelist -media -g -d "$START" "$DATE" -e "$END" "$TIME" -M <master Server> | cut -d " " -f1 | egrep -i "^[FH]|TP[0-9]" | sort -u | wc -l`
sleep 3
echo "\n\nNumber of Serveres Backup ="$SERVERS"\n\nAmount of Data Backup ="$DATA"Terabytes\n\nnNumber of Media Used="$MEDIA" "
Thanks guys I'll look into
Thanks guys I'll look into them both :)
With the bpimagelist command
With the bpimagelist command what governs how far back you go in time?
as far back as....
You can use bpimagelist to go back as far as there are valid images for the client in the catalog.
NOM is included for FREE in NetBackup.
Bob Stump VERITAS - "Ain't it the truth?" Incorrigible punster -- Do not incorrige
Hmmm I need to do some
Hmmm I need to do some further testing then as anything up to about a month is good and shows the correct number of backups over a night, past that I end up with very backups, but limited testing so far and once I started to get bad figures I stopped running the scripts.
Would you like to reply?
Login or Register to post your comment.