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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit a resource via script 2

Status
Not open for further replies.

poet1964

MIS
Dec 11, 2002
6
DE
Hi all,
I edit a client resource with a shell script. I edit the savesets with more than 100 lines.
The problem is that every 48th line is incomplete. After this line everything looks fine up the next 48th line.
Is this a bug or a Legato feature??
------------------------------------------------------------
Networker 6.1 for UNIX (Reliant Unix)

update.res:
. type: NSR client; group: CM1
update save set: /usr, /var, /oracle/CM1/saptata1, ...(more than 100)

nsradmin -i update.res
------------------------------------------------------------

Does anyone know what I do wrong???

Thanks
 
Until now I did not encounter that problem,
but maybe it is a buffer overflow problem (more than say 1k characters per command)

Try splitting the update into several lines.

Johanes
 
Thank you
Sometimes it is difficult to see the simple way.

It works absolute fine.

Nice weekend to everyone

Juergen
 
Why do you have to have such a large saveset list?? Can you simplify this?

Although NetWorker does not officially support it, I found that you can use wildcards in your saveset list. For example:

/oracle/a*
/oracle/b*
...
/oracle/z*

The wildcard character can only be at the last position of the saveset specification. For example, the following will not work in a *save group* backup: /oracle/*/payroll

However, if you go to the client and initiate a *manual backup*, the followin will work:

save -s <backup server> -b <pool> -l <level> -v /oracle/*/payroll
 
Hi wallace88,
before I update the recource, I create a new list from the oracle database about the existing databasefiles. So if we expand any tablespace I have everytime, before I backup the database, the newest filelist.
Thank you for the &quot;wildcard idea&quot;. I think I can use it for other backup situations.

bye
Jürgen
 
wallace88: the wildcards work in the &quot;manual&quot; version because the wildcard is resolved by the shell before passing it to Legato.

poet1964: An alternate method might be to use your script to update/create a local .nsr directive file instead of updating the client definitions in Networker.
 
The saveset field (as many others) are limited in their length. The limit is around 1k.
The effective limit might be even shorter as the savefs command including all the savesets list should be less than 1024 characters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top