RE: UV - is there a coldstart equivalent

2004-03-10 Thread Anthony Youngman
The method we use is obvious (in hindsight) ...

Not sure what it's called - it used to be AT, and is the Windows
equivalent of cron ...

That isn't time controlled. It can be, but it can also be event
controlled. And one of the events that are controlled is a reboot. So we
can/did/do run a uv command from the windows command line using this
mechanism to restart all our phantoms after the nightly reboot.

You probably want to put a "sleep" into the windows .cmd file, otherwise
you may find your UV command tries to run before the UV server has fully
woken up.

Cheers,
Wol 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Troy Buss (Logitek Systems)
Sent: 09 March 2004 19:52
To: 'U2 Users Discussion List'
Subject: RE: UV - is there a coldstart equivalent

Thanks everyone that replied with suggestions.

We are running on win 2003 server.

I had an idea to check system(3001) which is the universe user1
performance
monitor.

I can change it using:

  ASSIGN 1 TO SYSTEM(3001)

It shows up in the windows performance monitor, but:

  PRINT SYSTEM(3001) 

always returns 0.

My thought was to make all application logons go through a simple check
at
logon and if the value was zero, to dispatch a phantom, increment the
value
and continue. thus providing a mechanism to launch a phantom process the
first time someone logs in after a reboot.

i.e.:

  VALUE = SYSTEM(3001)
  IF VALUE = 0 THEN
   EXECUTE "PHANTOM background.process"
  END
  VALUE = VALUE + 1
  ASSIGN VALUE TO SYSTEM(3001)


I'm wondering why one can set the value "system(3001..3005) but there
seems
to be no way to interrogate the value.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users




***

This transmission is intended for the named recipient only. It may contain private and 
confidential information. If this has come to you in error you must not act on 
anything disclosed in it, nor must you copy it, modify it, disseminate it in any way, 
or show it to anyone. Please e-mail the sender to inform us of the transmission error 
or telephone ECA International immediately and delete the e-mail from your information 
system.

Telephone numbers for ECA International offices are: Sydney +61 (0)2 9911 7799, Hong 
Kong + 852 2121 2388, London +44 (0)20 7351 5000 and New York +1 212 582 2333.

***

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: UV - is there a coldstart equivalent

2004-03-09 Thread Troy Buss (Logitek Systems)
Interesting observation... I stopped and restarted universe and the value
remained unchanged in the performance monitor.  So this system(3001) counter
theory is not going to work anyway.

I've gone down the path of using a basic lock test (one of the 64 BASIC
locks) instead.  This method also requires that the phantom not ever log off
or the lock is cleared and another is started.  In my application, I
actually want to clean up some config/status files and remain running so
this is not an issue.

So, using something like lock number 60 to indicate the phantom process is
running.

all logons execute this little test and launch snippet::

  LOCK 60 THEN
  *
  * if I can lock, phantom not running, unlock the lock and dispatch phantom
  *
   UNLOCK 60
   EXECUTE "PHANTOM background.program ..."
  END ELSE
   * PHANTOM ALREADY RUNNING
  END


this is the PHANTOM background.program:
  LOCK 60 ELSE
   * another phantom is already running this program, so log off
   CHAIN "OFF"
  END
  *
  * do phantom processing code - 
  *
  PHANTOM PROCESSING CODE IS HERE


fyi..  I don't want to test a value in a file since I need something that is
inherently 'reset' when the universe database is started. ie, the lock table
is clear. A value in a file would remain through a restart and would not
work.

If there is a more elegant solution, please chime in.  Thanks!
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: UV - is there a coldstart equivalent

2004-03-09 Thread Troy Buss (Logitek Systems)
Thanks everyone that replied with suggestions.

We are running on win 2003 server.

I had an idea to check system(3001) which is the universe user1 performance
monitor.

I can change it using:

  ASSIGN 1 TO SYSTEM(3001)

It shows up in the windows performance monitor, but:

  PRINT SYSTEM(3001) 

always returns 0.

My thought was to make all application logons go through a simple check at
logon and if the value was zero, to dispatch a phantom, increment the value
and continue. thus providing a mechanism to launch a phantom process the
first time someone logs in after a reboot.

i.e.:

  VALUE = SYSTEM(3001)
  IF VALUE = 0 THEN
   EXECUTE "PHANTOM background.process"
  END
  VALUE = VALUE + 1
  ASSIGN VALUE TO SYSTEM(3001)


I'm wondering why one can set the value "system(3001..3005) but there seems
to be no way to interrogate the value.
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: UV - is there a coldstart equivalent

2004-03-09 Thread Barry Rogen

   We are running UniVerse  on an HP-UX box. When we want to perform
certain functions during the restart, we either tie it into UniVerse's
uv.rc  or  we run it from Unix within all the  'init' processes.

Barry Rogen
Senior Programmer
PNY  Technologies
(973) 515 - 9700  ext 5327
[EMAIL PROTECTED]
_
The quality of a person's life is in direct
proportion to their commitment to excellence
regardless of their chosen field of endeavor
   vince lombardi
_

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Tom Firl
Sent: Tuesday, March 09, 2004 12:58 PM
To: U2 Users Discussion List
Subject: RE: UV - is there a coldstart equivalent

Universe does not have a "coldstart" process within the database
environment.

The .rc scripts on UNIX have been mentioned.  On Windows, the Resource
Kit has a service that can be installed called "AUTOEXNT.EXE".  The
AUTOEXNT Service allows you to start a custom batch file -- AUTOEXNT.BAT
-- when you start a computer without having to log onto the computer on
which it will run.  I haven't used AUTOEXNT to fire off processes within
Universe, but I suppose the AUTOEXNT.BAT script would need to wait for
Universe to start up, then fire up your Universe phantom.

Tom Firl
Columbia Ultimate

> -Original Message-
> From: Donald Kibbey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 09, 2004 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: UV - is there a coldstart equivalent
> 
> 
> On a Unix based system you can use the cron facilities to 
> perform periodic mantenance and the startup script to perform 
> onetime chores when the UniVerse daemons are first started.
> 
> The same thing can be done under Windoze by using either the 
> builtin scheduler or a cron substitute.  Replacing the 
> shortcut or start menu link with a script or batch file would 
> take care of the startup process.
> 
> >>> [EMAIL PROTECTED] 03/09/04 12:04PM >>>
> In D3 there is a coldstart process that runs when the 
> database is started
> which is useful from an applications stand point by clearing 
> status files,
> starting application phantoms and general cleanup.
> 
> There does not seem to be an equivalent mechanism in Universe.
> 
> What have people done to provide similar and reliable functionality?
> 
> -Troy 
> -- 
> u2-users mailing list
> [EMAIL PROTECTED] 
> http://www.oliver.com/mailman/listinfo/u2-users
> 
> -- 
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.oliver.com/mailman/listinfo/u2-users
> 
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: UV - is there a coldstart equivalent

2004-03-09 Thread Tom Firl
Universe does not have a "coldstart" process within the database environment.

The .rc scripts on UNIX have been mentioned.  On Windows, the Resource Kit has a 
service that can be installed called "AUTOEXNT.EXE".  The AUTOEXNT Service allows you 
to start a custom batch file -- AUTOEXNT.BAT -- when you start a computer without 
having to log onto the computer on which it will run.  I haven't used AUTOEXNT to fire 
off processes within Universe, but I suppose the AUTOEXNT.BAT script would need to 
wait for Universe to start up, then fire up your Universe phantom.

Tom Firl
Columbia Ultimate

> -Original Message-
> From: Donald Kibbey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 09, 2004 9:32 AM
> To: [EMAIL PROTECTED]
> Subject: Re: UV - is there a coldstart equivalent
> 
> 
> On a Unix based system you can use the cron facilities to 
> perform periodic mantenance and the startup script to perform 
> onetime chores when the UniVerse daemons are first started.
> 
> The same thing can be done under Windoze by using either the 
> builtin scheduler or a cron substitute.  Replacing the 
> shortcut or start menu link with a script or batch file would 
> take care of the startup process.
> 
> >>> [EMAIL PROTECTED] 03/09/04 12:04PM >>>
> In D3 there is a coldstart process that runs when the 
> database is started
> which is useful from an applications stand point by clearing 
> status files,
> starting application phantoms and general cleanup.
> 
> There does not seem to be an equivalent mechanism in Universe.
> 
> What have people done to provide similar and reliable functionality?
> 
> -Troy 
> -- 
> u2-users mailing list
> [EMAIL PROTECTED] 
> http://www.oliver.com/mailman/listinfo/u2-users
> 
> -- 
> u2-users mailing list
> [EMAIL PROTECTED]
> http://www.oliver.com/mailman/listinfo/u2-users
> 
--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


Re: UV - is there a coldstart equivalent

2004-03-09 Thread Donald Kibbey
On a Unix based system you can use the cron facilities to perform periodic mantenance 
and the startup script to perform onetime chores when the UniVerse daemons are first 
started.

The same thing can be done under Windoze by using either the builtin scheduler or a 
cron substitute.  Replacing the shortcut or start menu link with a script or batch 
file would take care of the startup process.

>>> [EMAIL PROTECTED] 03/09/04 12:04PM >>>
In D3 there is a coldstart process that runs when the database is started
which is useful from an applications stand point by clearing status files,
starting application phantoms and general cleanup.

There does not seem to be an equivalent mechanism in Universe.

What have people done to provide similar and reliable functionality?

-Troy 
-- 
u2-users mailing list
[EMAIL PROTECTED] 
http://www.oliver.com/mailman/listinfo/u2-users

--
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users


RE: UV - is there a coldstart equivalent

2004-03-09 Thread David Scoggins
> -Original Message-
> From: Troy Buss (Logitek Systems) [mailto:[EMAIL PROTECTED]
> Subject: UV - is there a coldstart equivalent
> 
> In D3 there is a coldstart process that runs when the database is started
> which is useful from an applications stand point by clearing status files,
> starting application phantoms and general cleanup.

On unix, you could always hook into the uv.rc script.  I don't have an
example to look at right now, but just before the end of the startup stanza
you could add a line something like:

exec /usr/local/my.coldstart.sh

where my.coldstart.sh is a custom script that can do all the things you
mention.  The exact paths and filename will of course vary by system and
personal preference.

I'm not sure what the equivalent would be for Windows.

David Scoggins
IT Analyst
CornerStone Propane
mailto:[EMAIL PROTECTED]
-- 
u2-users mailing list
[EMAIL PROTECTED]
http://www.oliver.com/mailman/listinfo/u2-users