Networker

Re: [Networker] nsr_render_log

2009-04-03 08:43:17
Subject: Re: [Networker] nsr_render_log
From: Hrvoje Crvelin <hcrvelin AT GMAIL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 3 Apr 2009 14:36:00 +0200
You could simply setup NSR log resource to render your log automatically.

.c

-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of Aaron Sakowski
Sent: Tuesday, March 31, 2009 6:14 PM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: Re: [Networker] nsr_render_log

Odd... I was just thinking about this on my drive to work today!

I was thinking of using the scripted loop.  One addition I was thinking of
was to use the date command to get the time HH:MM:SS.  Then, use that time
in the -S option of nsr_render_log.  This should help reduce duplicate lines
and missed lines...

#!/bin/bash
DATE=$(date +"%m/%d/%y %H:%M:%S")
while [ 1 ]; do
  nsr_render_log -S $DATE /nsr/logs/daemon.raw
  DATE=$(date +"%m/%d/%y %H:%M:%S")
  sleep 30
done




On Tue, Mar 31, 2009 at 1:27 AM, kit
<networker-forum AT backupcentral DOT com>wrote:

> If you dont want to have it rendering the log permanently I use this
> script.
> I have not noticed any additoal load with log rendering but the server is
> heavyily enough loaded at peak to avoid adding my load.
>
> Pass it the hours you want rendered. Defaults to 1.
>
> #!/bin/ksh
> lines=$1
> [[ -z $hours ]] && hours=1
> while true
> do
>   echo "++++++++++++++++++++++++++++++++++++++++"
>   nsr_render_log  -S "$hours hours ago" /nsr/logs/daemon.raw
> sleep 20
> done
>
>
>
>
>
>
> Alan Rubin wrote:
> > Hello,
> >
> > We used to keep a tail going of our daemon.log, but we've just upgraded
> > from 7.3.3 to 7.4.4 and daemon.raw is certainly harder to follow.  Is
> > there any way to get nsr_render_log to behave in a similar manner to
> > 'tail -f' while providing the filtered/cleaned output from daemon.raw?
> >
> > Regards,
> >
> > Alan Rubin
> > Technician Unix
> > DCS Midrange Services
> > Phone: +61 (08) 8999 5111
> > Fax:      +61 (08) 8999 7493
> > e-Mail: alan.rubin < at > nt.gov.au
> >
> >
> >
> > via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
>
>
> +----------------------------------------------------------------------
> |This was sent by kit.cunningham AT krisanya.com DOT au via Backup Central.
> |Forward SPAM to abuse AT backupcentral DOT com.
> +----------------------------------------------------------------------
>
> To sign off this list, send email to listserv AT listserv.temple DOT edu and 
> type
> "signoff networker" in the body of the email. Please write to
> networker-request AT listserv.temple DOT edu if you have any problems with 
> this
> list. You can access the archives at
> http://listserv.temple.edu/archives/networker.html or
> via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER
>

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type
"signoff networker" in the body of the email. Please write to
networker-request AT listserv.temple DOT edu if you have any problems with this
list. You can access the archives at
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

To sign off this list, send email to listserv AT listserv.temple DOT edu and 
type "signoff networker" in the body of the email. Please write to 
networker-request AT listserv.temple DOT edu if you have any problems with this 
list. You can access the archives at 
http://listserv.temple.edu/archives/networker.html or
via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

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