[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference share::zap

Title:Zap Technical Conference
Notice:ZAP Version 5.3 is available. See note 1.1
Moderator:ZAPDEV::MACONI
Created:Mon Feb 24 1986
Last Modified:Mon May 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:170
Total number of notes:492

136.0. "Can ZAP target specific images" by VITAL::KEEFE (Bill Keefe - dtn 223-1837 - PKO1) Wed Jun 30 1993 16:21

    Does ZAP have the capability of killing only processes that are running
    a specific image, regardless of whether they are idle? We need
    something to force an exit so that the database a user has open can be 
    defragged.
T.RTitleUserPersonal
Name
DateLines
136.1Yes, it can be done.ZAPDEV::MACONIThe Doctor is InFri Jul 02 1993 10:5822
What type of database are you refering to?  Is this an RMS, RDB, etc database?

If all you need to do is force all users running a specific image to EXIT the
image at a specific time, then it can be done.

If you do not want people to run, say MYDB, from 7pm until 9pm while you do your
defrag each night, then you can code a rule which says:

	NODE: *
	USERNAME: *
	UIC: [*,*]
	IMAGE_NAME: MYDB
	PROCESS_CLASS: ALL
	TERMINAL_NAME: *
	FROM: 19:00
	UNTIL: 21:00
	WARN: N
	IDLE_LIMIT: 0
	ACTION: EXIT or STOP	! Exit to kill image, Stop to kill process

The idle limit of 0 will cause ZAP to kill the image/process as soon as it sees
it being run.
136.2VITAL::KEEFEBill Keefe - dtn 223-1837 - PKO1Tue Jul 06 1993 16:1515
    I tried the suggestion and it doesn't seem to have any effect.
    
    Here's the ZAP$CONFIG.DAT:
       0   DEBUG       FALSE
       1   ENABLE      TRUE
       2   GROUP_DW    TRUE
       3   HISTORY     TRUE
       4   IGNORE_SUSP FALSE
       5   INSWAP      FALSE
       6   LENIENT     TRUE
       7   SEND        9,7,5,3,1
       8   SENSITIVITY 5
       9   TRACEBACK   FALSE (tried this both ways)
    
    
136.3The exception database controls what is done.ZAPDEV::MACONIThe Doctor is InThu Jul 08 1993 11:461
The changes are in the Exception database, not the Configuration database.
136.4VITAL::KEEFEBill Keefe - dtn 223-1837 - PKO1Thu Jul 08 1993 12:5516
    Sorry, I should have included both. Here's the rule from the Exception
    database:
    
    Nodename:        *
    Username:        *
    UIC:             [*,*]
    Image Name:      TARGETHOTCHECK
    Process Class:   ALL
    Terminal Name:   *
    From Time:       00:00
    Until Time:      23:59
    Send Warnings:   N
    Idle Time Limit: 0
    Action:          EXIT
    
    
136.5Use the REPORT feature to debug the setup.ZAPDEV::MACONIThe Doctor is InFri Jul 09 1993 16:4031
There can be one or two problems here:

	1.  The exception database rules are "out of order" and a different
		rule is applying to the process in question.

	2.  The process is being grouped with other processes due to the
		configuration file parameters.

To determine what is happening:

	1.  Generate a report in Zap via:
		DEFINE/SYS/EXEC ZAP$RUN_STATUS REPORT

	2.  Read the report and check the rule that is applying to the process.
		If:
			a: The wrong rule is being used, then the rule is after
				another rule that can apply to the process.

				Change the order of the rules.

			or
			b: The right rule is being used, but the idle time limit
				is not 0.

				It may be grouped with other DECwindows processes.
				If so, set LENIENT to FALSE.

If you still do not know, send me a copy of your REPORT file at my mail
address above.

					Keith
136.6VITAL::KEEFEBill Keefe - dtn 223-1837 - PKO1Wed Jul 21 1993 13:401
    Changing LENIENT to FALSE fixed the problem. Thanks.