Networker

Re: [Networker] Need NSRADMIN Output Examples for Script Testing

2004-05-10 10:50:52
Subject: Re: [Networker] Need NSRADMIN Output Examples for Script Testing
From: Darren Dunham <ddunham AT TAOS DOT COM>
To: NETWORKER AT LISTMAIL.TEMPLE DOT EDU
Date: Mon, 10 May 2004 07:50:43 -0700
>
> Reading the resource file would not be a good option.. if somebody here 
> already is doing it.. watch out!!

It's not something that I prefer, but I've done it quite often.  I'm not
making changes that way so it's quite "safe".  Only my script and it's
output could break.  I've certainly never seen any major discrepancies
between nsradmin output and nsr.res, but of course I expect that I could
always run into a situation where the file is being rewritten as I read
it.

Unfortunately, I've once run into a busy machine where the output from
printf "option hidden: on\nprint\n" | nsradmin -i - took over five
minutes to execute because nsrd was so hammered.  Reading the nsr.res
file on the same machine was almost instantaneous.

> - Legato does'nt recommend handling resource files directly..
> - There are subtle differences in the formats of resource files that 
> NetWorker 5.x, 6.x and 7.x handle.  So potentially if you have a script that 
> reads the resource file of 5.x it may not work with later versions..

There's big differences, too.  Right now my script only handles the
unified nsr.res file, not the distributed ones from 7.x.

--
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 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.
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=