Networker

Re: [Networker] minfo question

2005-04-15 11:14:27
Subject: Re: [Networker] minfo question
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 15 Apr 2005 08:01:16 -0700
> 
> How to display  SSID of all backups wchich have been made every satruday (5 
> years). 
> I need something like:
>  mminfo -t 'every saturday' -av -q 'pool=my' -r 'ssid,savetime'
> 
> of ciurse there is no 'every saturday' switch in Legato.
> 
> I'm asking before I start to write scripts etc, ect because maybe there is 
> simple solution...

I can't believe there's anything within Networker that would do this.
Are you worried about passing over midnight?  Saturday from client point
of view?

If you don't need to worry about the edge cases, I might do something
like this...

mminfo -av -q 'pool=my' -r 'nsavetime,ssid' |
  perl -lane 'BEGIN {<>}; next unless ((localtime $F[0])[6] == 6); print 
"->$F[1]<-";'


-- 
Darren Dunham                                           ddunham AT taos DOT com
Senior Technical Consultant         TAOS            http://www.taos.com/
Got some Dr Pepper?                           San Francisco, CA bay area
         < This line left intentionally blank to confuse you. >

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

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