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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4634.0. "Rule shutdown behaviour" by ANOVAX::COMFORT (Cold iron shackle, ball & chain) Thu Mar 04 1993 09:20

    
    Hi,
    
    I have noticed a situation which is a problem for me.  The instance is
    as follows:
    
    	Running rules in a DETmcc process.  A rule that polls a node to
    	test for reachability, ie. node4 swv001 state = off, at every
    	00:05:00.  The system was having problems and an exception was
    	being generated every five.  The problem was being investigated 
    	and I went to shut down the rule.  The rule never shutdown, it 
    	would report shutdown in progress when a status was asked for.
    	Eventually the problem with the node was corrected and an
    	evaluation of false was returned.  The rule did not continue
    	with the shutdown, but upon issuing the disable command again,
    	operation of the rule was terminated and it could then be
    	re-started.
    
    
    I do not believe this is appropriate behaviour.
    
    The questions are:
    
    1)	Did the rule not shutdown because the evaluation was always in error?  
    
    2)	Why didn't the shutdown the occur when a valid evaluation was made,
    	given that the shutdown was "in progress"?
    
    3)	Can this be fixed?
    
    
    I will venture to say that it does not have anything to do with DETmcc,
    I remember seeing similar behaviour when running a rule from command
    line mode.
    
    I am running BMS V1.2.3 and VMS 5.5.
    
    
    Thanks and regards,
    
    Dave
T.RTitleUserPersonal
Name
DateLines
4634.1Do you have any screen captures of this problem ?MOLAR::ROBERTSKeith Roberts - Network Management ApplicationsThu Mar 04 1993 09:5828
  Dave,

  When you disable a rule, the thread which is running the rule is sent
  a 'thread-termination-alert'.  Alerting the thread is asyncronous; that is,
  any piece of code could be executing at the time and must respond to
  the alert request.  If there was a section of code which 'dropped the
  alert on the floor', then the rule would not notice it should be disabled.

  The second disable probably caught a piece of code which *did* properly
  handle an alert.  At any particular time the PC (program counter) of the
  thread could be in:

	o Alarms code,
	o MCC kernel code,
	o Operating system code, or
	o the Management Module code which Alarms is calling.

  Any one of these sections of code could be dropping the alert.

  Could you :

	1) Post the actual rule creation, enabling/disabling, and shows
	   that had a rule state of 'shutting down'.
	2) Enter a QAR on Alarms about this problem.

  Thanks

  /keith
4634.2getting the infoANOVAX::COMFORTCold iron shackle, ball & chainThu Mar 04 1993 10:5010
    
    I am in process of getting screen captures (luckily the DECterms still
    had the info in the scroll buffer).
    
    About the QAR, I have asked a few times in the past and still do not
    have the foggiest notion of how to submit a QAR.  I will be happy to do
    so when I understand the necessary steps. (In case it is not obvious, I
    have never submitted a QAR or an SPR before).
    
    Dave
4634.3See note 7TOOK::MINTZErik MintzThu Mar 04 1993 10:571
Note 7 has instructions for using the QAR system.
4634.4log of what happenedANOVAX::COMFORTCold iron shackle, ball & chainFri Mar 05 1993 10:45205
    
    Here is the log I was able to put together, complete with my typos :-).  
    The sequence of events was:
    
    Attempt to shut down alarm
    
    near the end of day, noticed on a notification window that the rule was
    still running
    
    next day I knew the problem had been resolved and proceeded to check
    the rule again and return it to an appropriate operational state.
    
    ---------
    
$ detmcc

Welcome to DetMCC V1.3-14
) 1992 Digital Equipment AB

DetMCC> show domain europe.domains.thoerishaus
Using default ALL IDENTIFIERS

Domain SB_NS:.europe.domains.thoerishaus
AT  3-MAR-1993 09:27:19 Identifiers

Examination of attributes shows
                             DomainName = SB_NS:.europe.domains.thoerishaus
DetMCC> show domain europe.domains.thoerishaus rule *
Using default ALL IDENTIFIERS

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  3-MAR-1993 09:27:27 Identifiers

Examination of attributes shows:
                                   Name = MON_SWV001

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  3-MAR-1993 09:27:27 Identifiers

Examination of attributes shows:
                                   Name = SWV001_UP
DetMCC> disa domain europe.domains.thoerishaus rule MON_SWV001

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  3-MAR-1993 09:27:37

Normal operation will be terminated.
DetMCC> disa domain europe.domains.thoerishaus rule SWV001_UP

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  3-MAR-1993 09:27:44

Normal operation will be terminated.
DetMCC>  Exit


$ detmcc

Welcome to DetMCC V1.3-14
) 1992 Digital Equipment AB

DetMCC> show domain europe.domains.thoerihaus rule * all status

Domain SB_NS:.europe.domains.thoerihaus Rule *
AT  3-MAR-1993 16:19:29 Status

No such entity: Domain SB_NS:.europe.domains.thoerihaus Rule *
                         Unknown Entity = Domain
                                          SB_NS:.europe.domains.thoerihaus Rule
                                          * ,

DetMCC> show domain europe.domains.thoerishaus rule * all status

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  3-MAR-1993 16:19:34 Status

Examination of attributes shows:
                                  State = Enabled
                               Substate = Shutdown in progress
                Time of Last Evaluation =  3-MAR-1993 16:18:20.45
              Result of Last Evaluation = Error
                        Error Condition = "Node not currently accessible.
                                          "
                           Error Entity = Node4 swv001
                       Current Severity = Indeterminate

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  3-MAR-1993 16:19:34 Status

Examination of attributes shows:
                                  State = Disabled
                               Substate = Disabled by user action
                           Disable Time =  3-MAR-1993 09:27:44.55
                Time of Last Evaluation =  3-MAR-1993 09:26:48.57
              Result of Last Evaluation = False
                       Current Severity = Clear
DetMCC>  Exit

$ detmcc

Welcome to DetMCC V1.3-14
) 1992 Digital Equipment AB

DetMCC> show domain europe.domains.thoerishaus rule * all status

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:01:54 Status

Examination of attributes shows:
                                  State = Enabled
                               Substate = Shutdown in progress
                Time of Last Evaluation =  4-MAR-1993 09:01:40.05
              Result of Last Evaluation = False
                        Error Condition = "Node not currently accessible.
                                          "
                           Error Entity = Node4 swv001
                       Current Severity = Clear

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  4-MAR-1993 09:01:55 Status

Examination of attributes shows:
                                  State = Disabled
                               Substate = Disabled by user action
                           Disable Time =  3-MAR-1993 09:27:44.55
                Time of Last Evaluation =  3-MAR-1993 09:26:48.57
              Result of Last Evaluation = False
                       Current Severity = Clear
DetMCC> enab domain europe.domains.thoerishaus rule MON_SWV001

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:02:14

Already operating.
DetMCC> show domain europe.domains.thoerishaus rule * all status

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:02:16 Status

Examination of attributes shows:
                                  State = Enabled
                               Substate = Shutdown in progress
                Time of Last Evaluation =  4-MAR-1993 09:01:40.05
              Result of Last Evaluation = False
                        Error Condition = "Node not currently accessible.
                                          "
                           Error Entity = Node4 swv001
                       Current Severity = Clear

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  4-MAR-1993 09:02:17 Status

Examination of attributes shows:
                                  State = Disabled
                               Substate = Disabled by user action
                           Disable Time =  3-MAR-1993 09:27:44.55
                Time of Last Evaluation =  3-MAR-1993 09:26:48.57
              Result of Last Evaluation = False
                       Current Severity = Clear
DetMCC> disa domain europe.domains.thoerishaus rule MON_SWV001

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:02:22

Normal operation will be terminated.
DetMCC> show domain europe.domains.thoerishaus rule * all status

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:02:24 Status

Examination of attributes shows:
                                  State = Disabled
                               Substate = Disabled by user action
                           Disable Time =  4-MAR-1993 09:02:23.09
                Time of Last Evaluation =  4-MAR-1993 09:01:40.05
              Result of Last Evaluation = False
                        Error Condition = "Node not currently accessible.
                                          "
                           Error Entity = Node4 swv001
                       Current Severity = Clear

Domain SB_NS:.europe.domains.thoerishaus Rule SWV001_UP
AT  4-MAR-1993 09:02:25 Status

Examination of attributes shows:
                                  State = Disabled
                               Substate = Disabled by user action
                           Disable Time =  3-MAR-1993 09:27:44.55
                Time of Last Evaluation =  3-MAR-1993 09:26:48.57
              Result of Last Evaluation = False
                       Current Severity = Clear
DetMCC> enab domain europe.domains.thoerishaus rule MON_SWV001

Domain SB_NS:.europe.domains.thoerishaus Rule MON_SWV001
AT  4-MAR-1993 09:02:29
                                                                                
Normal operation has begun.
DetMCC> enab domain europe.domains.thoerishaus rule swv001_up

Domain SB_NS:.europe.domains.thoerishaus Rule swv001_up
AT  4-MAR-1993 09:02:35

Normal operation has begun.
DetMCC>  Exit