Networker

Re: [Networker] NSRAdmin madness..

2009-01-30 10:53:16
Subject: Re: [Networker] NSRAdmin madness..
From: "Browning, David" <DBrown AT LSUHSC DOT EDU>
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Date: Fri, 30 Jan 2009 09:50:40 -0600
Here is an example that I use. All you need to do is replace specific
key words (save set is one key word) separated by semi-colons.  I listed
the key words for save set and client, just find the ones for schedule,
browse and retention, and you can use this command. I know that it works
in Windows, as that is our environment. 

For example, I wanted to get a simple list of clients, the backup
server, with their client ID, group name, save set, backup command, and
any aliases.  This was for disaster recovery purposes. 

Create the a file (mine is named nsradm.txt)using any editor, just make
sure you save it as a plain text file. 

Nsradm.txt contains 3 lines:

show type;name;server;client id;group;save set;aliases;backup command 
print type:NSR client 
q

On your backup server, Run the nsradmin command with the "i" (input
file).  

nsradmin -i nsradm.txt

That command produces the following output (many client names and
information)

                       type: NSR client;
                       name: test****;
                     server: server1name.domain.name;
                  client id: \
0c3a034-00000004-493822aa-493822a9-41c10000-9b3ad192;
                      group: Windows Normal;
                   save set: All;
             backup command: ;
                    aliases: test****,
test*****.domain.name,
                             test*****.fq.domainname;


David M. Browning Jr.
IT Project Coordinator Enterprise Backups and Help Desk

 
-----Original Message-----
From: EMC NetWorker discussion [mailto:NETWORKER AT LISTSERV.TEMPLE DOT EDU] On
Behalf Of dmitri
Sent: Friday, January 30, 2009 9:29 AM
To: NETWORKER AT LISTSERV.TEMPLE DOT EDU
Subject: [Networker] NSRAdmin madness..

James Pratt wrote:
> Hello again Networkers...
>
> So I'm trying to get nsradmin to direct a list of all "type:nsr
client"
> in our server to a text file, showing *only* the following fields/info
:
>
> name (of client)
> schedule
> browse policy
> retention policy
> save set
>
> I've tried everything the command reference says, but when I try and
use
> a file as input for the query (even just "print type:nsr client" in
the
> file), it errors with:
> unknown command: ??p
>
> I'm on NW 7.4.2 win32...
>
> Any help, ideas, or flames welcome.. :)
>
> Thanks!
> Jamie
>
>
> via RSS at http://listserv.temple.edu/cgi-bin/wa?RSS&L=NETWORKER

Can't confirm for Win, this is how you do it in UNIX world:
. type: nsr client
sho name
sho schedule
sho retention policy
sho {WHATEVER}
print

Hope this helps

+----------------------------------------------------------------------
|This was sent by dmitri_ryjikh AT ml DOT com 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

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