HP3000-L Archives

June 2008, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Simpkins, Terry" <[log in to unmask]>
Reply To:
Simpkins, Terry
Date:
Thu, 19 Jun 2008 16:55:02 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
I need a command file that will create LOGIDs, build the logfile and
then increment the logfile number assigned to the LOGID until it reaches
the desired number.
Anyone ever created one of these?  I'll write it if I have to (it's been
a long time since I wrote command files), but I'd much rather leverage
someone else's work if possible.

What I am trying to do is move a series of IMAGE databases from one
machine to another, and retain the logfile sequence from the old machine
to the new machine.

These are the assumptions I am working under.  If I've got something
wrong, please enlighten me.

1) the LOGIDs and the 'current' logfile are stored somewhere in the
OPSYS, not in the IMAGE rootfile
2) the fact that logging is enabled and the LOGID being used is stored
in the IMAGE rootfile
3) when I restore the files to the new machine, the IMAGE DBs will know
they are enabled for logging, and what LOGID to use
4) the new machine has no knowledge of the LOGIDs and they must be
defined using GETLOG and the approriate parameters
5) when you create a LOGID and want it set to AUTO, you must start with
logfile '001', then issue the required number of CHANGELOG commands to
get the file incremented to the correct number.

Because we do a CHANGELOG every night on about 50 LOGIDs, we quickly get
to some fairly large logfile numbers (ie logid685).  I'd really rather
not have to sit and do this manually.  So I am thinking about a command
file that will prompt for the LOGID and the logfile sequence # required.
Then issue the GETLOG command, the BUILD command for the '001' logfile
and then use a WHILE loop to increment (CHANGELOG) the logfile # until
it reaches the desired number.

I can't believe it's this tedious and that someone hasn't already
invented a way to do this.

*****************************
Terry W. Simpkins
Director ISIT
Measurement Specialties
757-766-4278
http://www.arcticride.com
[log in to unmask] <mailto:[log in to unmask]> 
*****************************


* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2