[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

2385.0. "OCCURS_N_TIMES for More than Events ??" by MCDONL::ATTERBERRY () Thu Feb 20 1992 18:55

    hi,
    
    I have found that the OCCURS_N_TIMES expression for alarms only
    works with entities with events.  I'd really like to be able to
    setup an alarm rule for an ethernet device that will only be
    activated after it has failed after 3 polling intervals.
    
    Since many entities do not have events to trap on, it would really
    be nice (some would say essential) to do this.  Has anyone found
    a way around this?  I tried using OCCURS_N_TIMES on an Alarm Rule
    entity, but no luck.  I guess you can't alarm on an alarm.
    
    Any suggestions, pointers, etc welcome.
    
    Thanks.
    
    Joe
T.RTitleUserPersonal
Name
DateLines
2385.1use a rule on a rule.TOOK::CALLANDERMCC = My Constant CompanionThu Feb 20 1992 20:5012
    ah but you do have the rule events to trap on.
    
    rule1 monitors for the attribute of the ethernet device,
    monitoring it for a condition you always expect it to
    pass as long as it is accessible and running.
    
    rule2 monitors (using the occurs function) rule1 for
    the rule exception event to occur 3 times.
    
    This should do just what you are looking for.
    
    
2385.2retarget the rule output entity as wellTOOK::CALLANDERMCC = My Constant CompanionThu Feb 20 1992 20:528
    oops,
    you can tell it is getting late, you wil want to set up
    a target entity for the rule so that when rule 2 fires
    the righ icon turns a color on the map.
    
    assign target domain foo eve source=domain foo rule rule2, -
    	event name="any notification event", target entity= "station foo"
    
2385.3Syntax for rule2 pleaseWILARD::ATTERBERRYFri Feb 21 1992 11:1163
    Hi,
    
    Sorry, I'm obviously missing something here.  The target syntax
    looks good, its the OCCURS_N_TIMES that I can't get to work.
    
    I've tried the following syntax.  Maybe you can tell me what I'm
    doing wrong.  This is what I've tried for rule2
    
    MCC> @ev
    %MCC-S-VERIFYENTER, entering command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;13
              CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
              OCCURS_RULE_FORMAT_4 = ( -
                  ENTITY = DOMAIN pw.eh.domain.adr RULE
    xt_unreachable_xterm4 -
                  EVENT NAME = OSI Rule Exception -
                  COUNT = 3 -
                  DELTA TIME = 00:20:00), -
              SEVERITY = CRITICAL, -
              AUTO ENABLE = YES
    %MCC-I-INVENTITY, invalid entity specified; reenter with correct entity
    %MCC-S-VERIFYEXIT, exiting command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;13
    MCC> @xt_alarm_xterm4
    %MCC-S-VERIFYENTER, entering command procedure
    VCSMCC$DISK:[LANMON.MCC]XT_ALARM_
    XTERM4.COM;17
    !=======================================================================
    !                       XT_ALARM_XTERM4.COM
    !=======================================================================
    !
    !       =: X-Terminal has become ALARM :=
    !
    !       Domain:         PW.EH.DOMAIN.ADR
    !       Entity Class    MCC 0 ALARMS RULE
    !       Instance        PW.EH.WS.XTERM4
    !
    !DISABLE MCC 0 ALARMS RULE XT_ALARM_XTERM4, IN DOMAIN PW.EH.DOMAIN.ADR
    !
    !DELETE  MCC 0 ALARMS RULE XT_ALARM_XTERM4, IN DOMAIN PW.EH.DOMAIN.ADR
    !
    CREATE  MCC 0 ALARMS RULE XT_ALARM_XTERM4      -
      EXPRESSION        = (OCCURS_N_TIMES (MCC 0 ALARMS RULE
    XT_UNREACHABLE_XTERM4,-
                           OSI RULE EXCEPTION,-
                           3,-
                           00:20:00)),-
      CATEGORY          = "X-Terminal problem"           ,-
      DESCRIPTION       = "PWA_MCC_FILES:XT_ALARM.TEXT" ,-
      QUEUE              = "ALARMS$BATCH"     ,-
      PERCEIVED SEVERITY = CRITICAL ,-
      IN DOMAIN          = PW.EH.DOMAIN.ADR
    
    MCC 0 ALARMS RULE XT_ALARM_XTERM4
    AT 21-FEB-1992 11:10:18
    
    Valid entity specification not found in alarm expression.
    
    So what an I missing ?
    
    Thanks.
    
    Joe
2385.4I think you are missing commasNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Feb 21 1992 17:0525
RE: .3

> CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
>   OCCURS_RULE_FORMAT_4 = ( -
>   ENTITY = DOMAIN pw.eh.domain.adr RULE xt_unreachable_xterm4 -
>   EVENT NAME = OSI Rule Exception -
>   COUNT = 3 -
>   DELTA TIME = 00:20:00), -
>   SEVERITY = CRITICAL, -
>   AUTO ENABLE = YES

  I think you need commas after: entity, event name, and count

  Try this:

  CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
    OCCURS_RULE_FORMAT_4 = ( -
    ENTITY = DOMAIN pw.eh.domain.adr RULE xt_unreachable_xterm4, -
    EVENT NAME = OSI Rule Exception, -
    COUNT = 3, -
    DELTA TIME = 00:20:00), -
    SEVERITY = CRITICAL, -
    AUTO ENABLE = YES

  /keith
2385.5No luckMCDONL::ATTERBERRYMon Feb 24 1992 10:5942
    Hi Keith,
    
    I tried what you said with no luck.  Here are the results.
    Any other suggestions ?  
    
    MCC> @ev
    %MCC-S-VERIFYENTER, entering command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;26
              CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
              OCCURS_RULE_FORMAT_4 = ( -
                  ENTITY = DOMAIN pw.eh.domain.adr RULE
    xt_unreachable_xterm4, -
                  EVENT NAME = "OSI Rule Exception", -
                  COUNT  = 3, -
                  DELTA TIME = 00:20:00), -
              SEVERITY = CRITICAL, -
              AUTO ENABLE = YES
    %MCC-E-RECORD_FIELD_NA, no such Record field name
    %MCC-S-VERIFYEXIT, exiting command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;26
    
    If I remove the double quotes I get a Latin1String error
    
    MCC> @ev
    %MCC-S-VERIFYENTER, entering command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;27
              CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
              OCCURS_RULE_FORMAT_4 = ( -
                  ENTITY = DOMAIN pw.eh.domain.adr RULE
    xt_unreachable_xterm4, -
                  EVENT NAME = OSI Rule Exception, -
                  COUNT  = 3, -
                  DELTA TIME = 00:20:00), -
              SEVERITY = CRITICAL, -
              AUTO ENABLE = YES
    %MCC-E-LATIN1STRING_ER, error in Latin1String value
    %MCC-S-VERIFYEXIT, exiting command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;27
    
    Thanks.
    
    Joe
2385.6Another suggestionNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamMon Feb 24 1992 14:0517
  This time try a different syntax:

  create domain pw.eh.domain.adr RULE xt_detect_xterm4 -
    expr = (OCCURS(DOMAIN pw.eh.domain.adr RULE xt_unreachable_xterm4 -
    osi rule exception, 3, 00:20:00)), SEVERITY = CRITICAL, AUTO ENABLE = YES

  This syntax (which I personally prefer) uses the OCCURS function in more
  of a programming style:

	OCCURS( <entity>, <count>, <delta-time> )

  Give it a try and let me know.  I just tried it and it worked.

  As far as the other syntax which you were using ... we'll have to look
  into some more.

  /keith
2385.7Still No Luck !MCDONL::ATTERBERRYMon Feb 24 1992 14:2928
    Hi,
    
    Tried it, doesn't work for me.  Are you running T1.2.4 ?? If you are
    and it works, then X1.2.15 (which I'm running) broke it.
    
    Here's what I get
    
    MCC> @EV
    %MCC-S-VERIFYENTER, entering command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;38
              CREATE DOMAIN pw.eh.domain.adr RULE xt_detect_xterm4 -
              EXPR=(OCCURS(DOMAIN pw.eh.domain.adr RULE
    xt_unreachable_xterm4 -
                     osi rule exception, 3, 00:20:00)), -
              SEVERITY = CRITICAL, -
              AUTO ENABLE = YES
    
    Domain PW_NS:.pw.eh.domain.adr Rule xt_detect_xterm4
    AT 24-FEB-1992 14:26:25
    
    Count and Delta-Time is not allowed with wildcard in alarm expression.
    %MCC-S-VERIFYEXIT, exiting command procedure
    VCSMCC$DISK:[LANMON.MCC]EV.COM;38
    
    
    Should I fall back to T1.2.4 ?
    
    Joe
2385.8Oh .. now its making a bit more senseNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamMon Feb 24 1992 16:0020
RE: .7

>    Count and Delta-Time is not allowed with wildcard in alarm expression.

  There was a bug in the parsing of the OCCURS funtion with the additional
  count and delta-time arguments.  It was fixed recently, but it probably
  wasn't in x1.2.15 ... 8(

  I am running x1.2.16 -- thus why it worked for me.

  I suspect there will be another kit made available soon.  The fix
  will be in there.

  As to why the 'other' command format you were using didn't work (the record
  problem) ... I don't know and will have to talk with someone on the
  console team to find out.

  /keith

  
2385.9I guess I will have to wait, but thanksMCDONL::ATTERBERRYMon Feb 24 1992 17:2126
    hi,
    
    many, many thanks for your help.  I will wait patiently for X1.2.16 to
    be released.  Oh, by the way I did get the other syntax to create the
    same error.  At least now the error is consistent for both kinds of
    syntax.
    
    Joe
    
    !
    CREATE  MCC 0 ALARMS RULE XT_ALARM_XTERM4      -
      EXPRESSION        = (OCCURS(DOMAIN pw.eh.domain.adr -
                           RULE XT_UNREACHABLE_XTERM4 -
                           OSI Rule Exception,3,00:20:00)),-
      CATEGORY          = "X-Terminal problem"           ,-
      DESCRIPTION       = "PWA_MCC_FILES:XT_ALARM.TEXT" ,-
      QUEUE              = "ALARMS$BATCH"     ,-
      PERCEIVED SEVERITY = CRITICAL ,-
      IN DOMAIN          = PW.EH.DOMAIN.ADR
    
    MCC 0 ALARMS RULE XT_ALARM_XTERM4
    AT 24-FEB-1992 17:11:30
    
    Count and Delta-Time is not allowed with wildcard in alarm expression.