You can do it as follow (sample in ksh):
Store the following to a tmpfile :
mminfo -r nsavetime,ssid,client,name -t 'one week ago' -q
'!incomplete,level=full,pool=Default,copies<2'
Then gather back list of involved client and FS :
cat tmpfile | awk '{print $3" "$4}' | sort -u > tmpfile2
Then, do a loop for each client/FS from tmpfile2 :
for LINE in `cat tmpfil22`
do
CLIENT=`echo $LINE |awk '{print $1}'`
FS=`echo $LINE |awk '{print $2}'`
# Greping Client and FS, then sorting and take last one -> most recent
one
cat tmpfile1 | grep " $CLIENT " | grep " $FS " | sort -u | tail -1 |
awk '{print $2}' >> ssidlist
done
HTH,
Thierry
Kind regards - Bien cordialement - Vriendelijke groeten,
Thierry FAIDHERBE
HPCI - Storage & Server Integration Practice
Tru64 Unix and Legato EBS Consultant
********* ********* HEWLETT - PACKARD
******* h ******* 1 Rue de l'aeronef/Luchtschipstraat
****** h ****** 1140 Bruxelles/Brussel/Brussels
***** hhhh pppp *****
***** h h p p ***** 100/102 Blv de la Woluwe/Woluwedal
***** h h pppp ***** 1200 Bruxelles/Brussel/Brussels
****** p ****** BELGIUM
******* p *******
********* ********* Phone : +32 (0)2 / 729.85.42
Mobile : +32 (0)498/ 94.60.85
Fax : +32 (0)2 / 729.88.30
I N V E N T Email : thierry.faidherbe AT hp DOT com
Internet : http://www.hp.com/
________________________________________________________________________
MOBISTAR SA/NV
SYSTEM Team Charleroi, Mermoz 2 Phone : +32 (0)2 / 745.75.81
Avenue Jean Mermoz, 32 Fax : +32 (0)2 / 745.89.56
6041 GOSSELIES Email : tfhaidhe AT mail.mobistar DOT be
BELGIUM Web : http://www.mobistar.be/
________________________________________________________________________
-----Original Message-----
From: Frank Altpeter [mailto:f.altpeter AT BROADNET-MEDIASCAPE DOT DE]
Sent: Friday, August 08, 2003 12:45 PM
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Subject: [Networker] Superclone without HSM
hi,
does someone know how to get all saveset IDs for the very last full
backup of every present client?
I'm currently trying to do similiar with feeding the output to
nsrclone:
mminfo -r ssid -t 'one week ago' -q
'!incomplete,level=full,pool=Default,copies<2'
which is a problem on some hosts... some have more than one full
backup in the specified period, and some of the hosts need such a
long time to fullbackup that they haven't any finished within one
week.
With kind regards,
Frank Altpeter
--
Note: To sign off this list, send a "signoff networker" 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
--
Note: To sign off this list, send a "signoff networker" 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
|