| 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 |
This note is similar to that of 4615. It is here since I need feedback very quickly (the customer has to deliver by end April) The problem is that an alarm rule is being fired (as seen by Notification window) but is not causing an alarm bell or change of colour in the Iconic Map. The customer had the same problem with his Access Module and I have managed to repeat it with mine. These are the steps which I took : 1. Started iconic map by manage/enterprise/interface=decwindows 2. File -> New Domain Domain name = testdomain 3. Edit -> Tool Box Selected SMSSIF (my global entity), then typed in fluffy (an entity which already existed), then placed the entity on the Iconic Map. 4. Opened Notification window by Applications -> DECmcc Notification Services 5. Opened FCL window by Applications -> DECmcc Command Line (FCL) 6. In FCL window, created an alarm rule thus : create domain testdomain rule rule1 - expression = (occurs (smssif * smssif enabled)), - severity = critical 7. In Notification Window, clicked on Notify Requests and filled in : Domain : AEO825_NS:.testdomain Entity List : SMSSIF * Events : Any Events 8. Enabled and started rule thus : a. In FCL window, enable domain testdomain rule rule1 b. File -> View -> Rule (to select rule rather than member) c. Operations -> Enable -> Start d. File -> View -> Member (to restore member on map) 9. In FCL window, enabled entity thus : enable smssif fluffy This caused a Notification Event to be raised in the Notification window. However, the Icon for the entity fluffy did not get a bell placed next to it (it the customer's case, the icon didn't change colour). Is there something simple that the customer and I have missed, or does this seem to be a bug elsewhere? The alarm rule is obviously firing, so I would have thought that the Access Module is fine and that the problem lies in our manipulation of the Iconic Map. Any suggestions would be very gratefully received. Thank you in advance, Ben
| T.R | Title | User | Personal Name | Date | Lines |
|---|---|---|---|---|---|
| 4894.1 | BBOOP::SCAER | Boop-Boop-a-Doop | Thu Apr 15 1993 17:38 | 7 | |
In the File menu check the settings for "Notify Domain" and
"Change Color". They should both be enabled ("Disable" will be
selectable in this case).
..............................beth
| |||||
| 4894.2 | Some alarm rules change colour of icon, others don't .... | AEOENG::BOURDILLON | Fri Apr 16 1993 10:34 | 35 | |
I think that everything that should be enabled is. The customer has tried two different types of rules. The Occurs rule does not cause the icon to change colour, even though it does cause a report in the Notification window. The Comparison rule causes the icon to change colour as well as the report in the Notification window. The definition for the rules follows : create domain uic_ns:.sbb rule test1 - expression = (occurs (PRO * PRO Local Production Down)), - severity = critical create domain uic_ns:.sbb rule test2 - expression = (PRO * STATE NE WORKING, 00:10:00), - severity = critical Why does rule test2 cause the icon to change colour, when rule test1 does not? Is this a bug in mcc (Version 1.2.0) or is there something he and I have overlooked? Ben | |||||
| 4894.3 | Targets? | TOOK::R_SPENCE | Nets don't fail me now... | Thu Apr 22 1993 14:44 | 7 |
I would guess that for the OCCURS rule you also need a reTARGETing
directive so the notification is appropriately targetted.
Perhaps someone who understands targetting better can help?
s/rob
| |||||
| 4894.4 | private AMs --> check AES's verrrrrrry carefully | MCC1::DITMARS | Pete | Fri May 07 1993 15:30 | 63 |
Hi,
When a notification is recieved by the IMPM, it has to figure
out which icon to change color, and it uses mcc_aes_match, mcc_aes_equal and
mcc_aes_equal_levels to compare the AES that came back through alarms/notification
with the AES's that the IMPM got from the domain FM for each entity
in the domain (when it opened the domain). When the IMPM finds a match,
the icon's color is changed.
So, the AES that is coming back in the notification resulting from the
OCCURS alarm rule is not quite matching up with the AES of the entity
as it is registered.
The fact that the regular comparison alarm rule does cause the icon to change
color means that at least some of the time the AM is returning the correct AES.
My guess is that the Access Module is returning an out entity that is
slightly different from its SHOW and GETEVENT entry point. The OCCURS format
rule issues a GETEVENT. The comparison format rule issues a SHOW. Also,
the comparison rule is going to basically do a SHOW with an AES that came back
from the domain FM (during the course of evaluating a wildcarded rule, the
alarms FM calls the domain FM to enumerate the wildcard). The occurs rule
is NOT going to enumerate the wildcard: it's going to do the equivalent of
a "GETEVENT PRO *", so it's going to be much more likely that the AM is doing
the bulk of the work in creating the AES in this case (and has that much more
opportunity to do something that won't work).
The AES comparison routines are very picky. Little things, like the mcc_l_id
field in the descriptor that is used to do an mcc_aes_create, have to match up.
In fact, when generating an AES, a little known fact is that the mcc_l_id and
mcc_l_dt fields should always be set to match the attribute ID and datatype
from the MSL/dictionary for each level of the entity. This is probably the
problem.
For example, if I were creating an AES for "NODE4 foo CIRCUIT ISA-0", I would
have to set the mcc_l_id and mcc_l_dt fields of the descriptors that I use
in my mcc_aes_create's as follows:
NODE4 foo mcc_l_dt = MCC_K_DT_PHASE4NAME,
mcc_l_id = MCC_K_DN4_NI_NODE_NAME (defined to be 1 in the MSL for Node4)
CIRCUIT ISA-0 mcc_l_dt = MCC_K_DT_SIMPLENAME,
mcc_l_id = MCC_K_DN4_CI_NAME (defined to be 1 in the MSL for Node4 Circ)
You can check this kind of stuff by defining logicals/environment variables as
follows in the process that the alarms FM will be run from:
$ define MCC_IM_LOG 60400000
% setenv MCC_IM_LOG 0x60400000
OUT_ENTITY:
entity [0] wild = NOT_WILD class = 7 id = 13 type = 24
instance = 0 ^^^^^^^^^^^^^^^^^^
||||||||||||||||||
these are the fields I'm talking about
Good luck.
regards,
Pete
| |||||
| 4894.5 | Success! | AEOENG::BOURDILLON | Mon May 10 1993 10:07 | 10 | |
Pete, You are a star! Thank you very much - the problem was that he had forgotten to set his ID field when creating his Entity for sending using mcc_event_put in his event sink. Ben | |||||