Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing saveset details under unix

Status
Not open for further replies.
Sep 29, 2003
29
GB
Hi,

I would like to put in place an automated comparision between filesets being actively backed up and active projects on our site. This should be easy enough to do, as projects are stored in a unix fileserver as directories, and filesets correlate directly to this.

What I am trying to get is the ascii file containing details of the client/fileset configuration, in order to parse this with a perl script to to the comparision. I know this is probably obvious, but I have looked at Legato documentation, website and here and have not found any specifics.

The legato server is a Solaris box.
 

It should not matter if UNIX or Windows, nsradmin should work
the same for all opering systems:

C:\>nsradmin
NetWorker administration program.
Use the "help" command for help.
nsradmin> show name
nsradmin> show save set
nsradmin> print type: nsr client
name: client_1.domain.com;
save set: All;

name: client_2.domain.com;
save set: "G:\\ABC";

name: client_3.domain.com;
save set: "t:\\def";
nsradmin> quit

C:\>


The only info that looks a bit strange is the double-backslash
for Windows save sets...

 
Thats exactly what I am looking for. What I am wondering is, is this information stored in cleartext, ie can be parsed by perl or such script, or do I need to run nsradmin.
 
The ouptut is plain text. If you do not want to run the
command interactively, simply enter the commands in a text
file like

input.txt
show name
show save set
print type: nsr client

and run "nsradmin -i input.txt > output.txt"

May i also suggest to read the manual pages for nsradmin.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top