Re: Select for daily maintenance

2003-02-27 Thread Loon, E.J. van - SPLXM
Alex, Karel and Alan, thanks for responding!
This is exactly what I was looking for!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


-Original Message-
From: Alex Paschal [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 18:29
To: [EMAIL PROTECTED]
Subject: Re: Select for daily maintenance


Eric,

select * from processes where process='Space Reclamation'

Alex Paschal
Freightliner, LLC
(503) 745-6850 phone/vmail

-Original Message-
From: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 6:17 AM
To: [EMAIL PROTECTED]
Subject: Select for daily maintenance


Hi *SM-ers!
I'm currently using the Q PROC command in my daily maintenance scripts to
determine if the previous task has completed or not. I capture the
returncode and if it's not equal to 0 then no task are running and thus the
next script can be executed.
I'm trying to find a way to make this more specific. For instance, I would
like to see a returncode not equal to zero if reclamation has finished, I
don't care if any other process is still running.
I think it should be possible to do this by using a select statement, but
I'm not much of an SQL wizard.
Could somebody help me out here?
Thank you very much in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential
and privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may
be disclosed, copied or distributed, and that any other action related to
this e-mail or attachment is strictly prohibited, and may be unlawful. If
you have received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. Koninklijke Luchtvaart
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be
liable for the incorrect or incomplete transmission of this e-mail or any
attachments, nor responsible for any delay in receipt.
**


Re: Select for daily maintenance

2003-02-26 Thread Alan Davenport
Here is what I use to check for migration processes. You can modify the
select statement for any process. Make sure the case of the text between the
quotes matches exactly what you see when you do a Q PROC.


Name   Line   Command

   Number
-- --

MIGRATE_C- 1  select * from processes where process='Migration'

 HECK

   6  if(rc_ok) goto resch

   11 delete sch migrate_check t=a

   13 upd stg backuppool highm=90 lowm=70

   16 run daily_maint2

   21 exit

   26 resch:

   28 q stg backuppool

   31 delete sch migrate_check t=a

   36 def sch migrate_check t=a cmd='run migrate_check'

   startt=now+0:10 active=y perunits=onetime

Take care,
Al

Alan Davenport
Senior Storage Administrator
Selective Insurance Co. of America
[EMAIL PROTECTED]
(973) 948-1306


-Original Message-
From: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 9:17 AM
To: [EMAIL PROTECTED]
Subject: Select for daily maintenance


Hi *SM-ers!
I'm currently using the Q PROC command in my daily maintenance scripts to
determine if the previous task has completed or not. I capture the
returncode and if it's not equal to 0 then no task are running and thus the
next script can be executed.
I'm trying to find a way to make this more specific. For instance, I would
like to see a returncode not equal to zero if reclamation has finished, I
don't care if any other process is still running.
I think it should be possible to do this by using a select statement, but
I'm not much of an SQL wizard.
Could somebody help me out here?
Thank you very much in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential
and privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may
be disclosed, copied or distributed, and that any other action related to
this e-mail or attachment is strictly prohibited, and may be unlawful. If
you have received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. Koninklijke Luchtvaart
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be
liable for the incorrect or incomplete transmission of this e-mail or any
attachments, nor responsible for any delay in receipt.
**


Re: Select for daily maintenance

2003-02-26 Thread Alex Paschal
Eric,

select * from processes where process='Space Reclamation'

Alex Paschal
Freightliner, LLC
(503) 745-6850 phone/vmail

-Original Message-
From: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 26, 2003 6:17 AM
To: [EMAIL PROTECTED]
Subject: Select for daily maintenance


Hi *SM-ers!
I'm currently using the Q PROC command in my daily maintenance scripts to
determine if the previous task has completed or not. I capture the
returncode and if it's not equal to 0 then no task are running and thus the
next script can be executed.
I'm trying to find a way to make this more specific. For instance, I would
like to see a returncode not equal to zero if reclamation has finished, I
don't care if any other process is still running.
I think it should be possible to do this by using a select statement, but
I'm not much of an SQL wizard.
Could somebody help me out here?
Thank you very much in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential
and privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may
be disclosed, copied or distributed, and that any other action related to
this e-mail or attachment is strictly prohibited, and may be unlawful. If
you have received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. Koninklijke Luchtvaart
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be
liable for the incorrect or incomplete transmission of this e-mail or any
attachments, nor responsible for any delay in receipt.
**


Re: Select for daily maintenance

2003-02-26 Thread Karel Bos
Just one of the scripts we are using:

/*  -*/
/*  Script Name: BKUP_STG_TAPE_COPY  */
/*  Description: Backup a storage pool, after*/
/*   migration is finished. If   */
/*   migration is still running  */
/*   try again in 20 minutes */
/*  Parameter 1: DISKPOOL name (in CAPS) */
/*  Parameter 2: pri. storage pool   */
/*  Parameter 3: copy storage pool   */
/*  Parameter 4: max process for stg backup  */
/*  Example1: run bkup_stg_db DISKPOOL ST*/
/*ST2 3  */
/*  -*/
select process, status from processes where process='Migration' and status
like '%$1,%'
 if (rc_ok) goto reschedule
 update stg $1 hi=90 lo=70
 ba stg $2 $3 maxpr=$4 wait=yes
 del sch retrybkup_$1  type=a
 exit
 reschedule:
 del sch retrybkup_$1  type=a
 def sch retrybkup_$1 t=a cmd="run bkup_stg_tape_copy $1 $2 $3 $4"
active=yes startt=NOW+0:20 peru=o



-Oorspronkelijk bericht-
Van: Loon, E.J. van - SPLXM [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 26 februari 2003 15:17
Aan: [EMAIL PROTECTED]
Onderwerp: Select for daily maintenance


Hi *SM-ers!
I'm currently using the Q PROC command in my daily maintenance scripts to
determine if the previous task has completed or not. I capture the
returncode and if it's not equal to 0 then no task are running and thus the
next script can be executed.
I'm trying to find a way to make this more specific. For instance, I would
like to see a returncode not equal to zero if reclamation has finished, I
don't care if any other process is still running.
I think it should be possible to do this by using a select statement, but
I'm not much of an SQL wizard.
Could somebody help me out here?
Thank you very much in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**
For information, services and offers, please visit our web site:
http://www.klm.com. This e-mail and any attachment may contain confidential
and privileged material intended for the addressee only. If you are not the
addressee, you are notified that no part of the e-mail or any attachment may
be disclosed, copied or distributed, and that any other action related to
this e-mail or attachment is strictly prohibited, and may be unlawful. If
you have received this e-mail by error, please notify the sender immediately
by return e-mail, and delete this message. Koninklijke Luchtvaart
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be
liable for the incorrect or incomplete transmission of this e-mail or any
attachments, nor responsible for any delay in receipt.
**


Select for daily maintenance

2003-02-26 Thread Loon, E.J. van - SPLXM
Hi *SM-ers!
I'm currently using the Q PROC command in my daily maintenance scripts to
determine if the previous task has completed or not. I capture the
returncode and if it's not equal to 0 then no task are running and thus the
next script can be executed.
I'm trying to find a way to make this more specific. For instance, I would
like to see a returncode not equal to zero if reclamation has finished, I
don't care if any other process is still running.
I think it should be possible to do this by using a select statement, but
I'm not much of an SQL wizard.
Could somebody help me out here?
Thank you very much in advance!
Kindest regards,
Eric van Loon
KLM Royal Dutch Airlines


**
For information, services and offers, please visit our web site: http://www.klm.com. 
This e-mail and any attachment may contain confidential and privileged material 
intended for the addressee only. If you are not the addressee, you are notified that 
no part of the e-mail or any attachment may be disclosed, copied or distributed, and 
that any other action related to this e-mail or attachment is strictly prohibited, and 
may be unlawful. If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke Luchtvaart 
Maatschappij NV (KLM), its subsidiaries and/or its employees shall not be liable for 
the incorrect or incomplete transmission of this e-mail or any attachments, nor 
responsible for any delay in receipt.
**