James Mello wrote:
>
> You can also just put this into a script
>
> while true
> do
> echo refresh
> sleep 5
> done | bpdbjobs -report ..... blah .....
>
> -- Cheers
> -- James
>
> On Fri, 7 Dec 2001, Smith, David W (IT) wrote:
>
> > James,
> >
> > Thanks. I noticed the bpdbjobs command waiting on a read system call, after
> > typing refresh it read all the files again.
> >
> > David
> >
> > -----Original Message-----
> > From: James Mello [mailto:kingjamm AT colltech DOT com]
> > Sent: Friday, December 07, 2001 9:15 AM
> > To: Smith, David W (IT)
> > Cc: 'veritas-bu AT mailman.eng.auburn DOT edu'; Smith, David W (IT)
> > Subject: Re: [Veritas-bu] Veritas NetBackup: Using bpdbjobs in a "tail
> > -f" mode?
> >
> >
> > bpdbjobs -report -all_columns -stay_alive
> >
> > You need to either have a while loop that puts in the value "refresh" or
> > type it by hand...
> >
> > -- Cheers
> > -- James
> >
> > On Fri, 7 Dec 2001, Smith, David W (IT) wrote:
> >
> > >
> > > Does anyone know of a method to us the bpdbjobs command in like a unix
> > "tail
> > > -f" mode, where you can continually monitor jobs being run, etc.
> > >
> > > Does this command have a man page? I've looked in the System Admin manual
> > > and the options are not documented well.
> > >
> > > Thanks,
> > >
> > > David W. Smith (David.W.Smith AT kla-tencor DOT com)
> > > KLA-Tencor Corporation
> > > Telephone: 408-875-6856 (direct) 408-571-2700 (fax)
> > > Pager : 888-476-5501 (numeric) 0951038 AT pagenet DOT net (alpha)
> > > _______________________________________________
> > > Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> > > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
> > >
> >
>
> _______________________________________________
> Veritas-bu maillist - Veritas-bu AT mailman.eng.auburn DOT edu
> http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
Unless I want the details, just to find out what job is running and
what is queued, I'll write a command line loop on the master in
ksh as follows
while [ 1 ] ; do
date
bpdbjobs -report | awk '/Active/ || /Queue/ {print}'
sleep 10
done
or if you wanted csh
while ( 1 )
date
bpdbjobs -report | awk '/Active/ || /Queue/ {print}'
sleep 10
end
Thanks
Peter
Thanks
Peter
|