Networker

Re: [Networker] Scripting NSRADMIN

2009-01-13 13:00:50
Subject: Re: [Networker] Scripting NSRADMIN
From: "W. curtis preston" <wcurtispreston AT GMAIL DOT COM>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Tue, 13 Jan 2009 09:58:40 -0800
I believe you will find a lot of good information on this in the NetWorker
FAQ:
http://www.backupcentral.com/components/com_mambowiki/index.php/What_neat_things_can_I_do_with_nsradmin%3F


On Tue, Jan 13, 2009 at 9:33 AM, Goslin, Paul <pgoslin AT cincom DOT com> wrote:

> I think you must use the '-i' option with an input file that contains
> the commands you want to feed to nsradmin.
>
> Put the command lines into a separate text file (say input.txt), and
> capture the output:
>
>  nsradmin -i input.txt > output.txt
>
> See if that gets you want you want..
>
> > -----Original Message-----
> > From: EMC NetWorker discussion
> > [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On Behalf Of Dias,
> > Kent (Contractor)
> > Sent: Tuesday, January 13, 2009 11:33 AM
> > To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
> > Subject: [Networker] Scripting NSRADMIN
> >
> > We're running Networker 7.4.2 on Windows 2003 Server.
> >
> > I'm trying to script the following:
> >
> >       NSRADMIN
> >       show name;scheduled backup
> >       print type: NSR client;scheduled backup: disabled
> >
> > The problem is that when using a batch file or CMD file to do
> > this, the script won't pass the next commands into NSRADMIN
> > since NSRADMIN is an executable that works more like a shell.
> >
> > Any ideas on how I can automate / script this?
> >
> > Thanks,
> >         Kent
> >
> > Kent Dias
> > Windows System Administrator
> > IBM Integrated Technology Delivery / Server System Ops for
> > Philip Morris USA, Altria robert.k.dias.contractor AT altria 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