[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

2508.0. "event alarm notification problem" by IJSAPL::ZWAMA () Fri Mar 06 1992 10:06

Hi,

I am developping an AM for a Radio Control application and noticed this.
The ALARM FM  don't display the event TEXT in the DECmcc Notification Detail 
Window display field <Problem Text>. I use an alarm occure rule for detecting
the events. The events are routed via my AM, which has support of the GETEVENT 
directive.
For the Node4 AM this field is filled with the Event text. How can i also
have this text in this place. 
My AM supports the GETEVENT directive
as follows;


EVENT PARTITION CONFIGURATION EVENTS = 15 :
      (* This partition includes events wihich report the state 
         transitions of an enttiy *)

   EVENT  Message Buffer Full = 420 :
      DISPLAY = TRUE,
      SYMBOL = ATTR_RCCS_M_B_F,
      TEXT = " Queued message buffer is full",
   END EVENT  Message Buffer Full ;

etc....

DIRECTIVE GetEvent = 65 :
      DIRECTIVE-TYPE = EVENT,
      DISPLAY = TRUE,
      SYMBOL = GETEVENT_DIRECTIVE,
      CATEGORIES = ( ALL ),
   (*  *)
      REQUEST
       ARGUMENT Which Events = 01 : EventIdList
         ECHO = TRUE,
         DISPLAY = TRUE,
         REQUIRED = TRUE,
         DEFAULT = NO DEFAULT,
         SYMBOL = ATTR_Eq_Which_Events
       END ARGUMENT Which Events;
      END REQUEST;

      RESPONSE Event Received = 01 :
       SYMBOL = EVENT_RECEIVED,
       TEXT = "Received RCCS Event: ",
       ARGUMENT This One = 01 : EVENT_REPORT
         DISPLAY = TRUE,
         SYMBOL = ATTR_EQ_EVENT_RECEIVED
       END ARGUMENT This One;
      END RESPONSE Event Received;
 
etc...
DECmcc software version is V1.2ft, and i've based my getevent support on
the 'PONG' sample.

Question two:

For the event partition name and code can i use above settings. I didn't 
really understand the background of these. May I choose Notification partition
settings, or must i define an own partition name and code.

regards,

Wim Zwama
T.RTitleUserPersonal
Name
DateLines
2508.1Could you provide some output ?NANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Mar 06 1992 11:047
  Wim Zwama,

  Could you provide us with the output that you are seeing?  From your
  getevnet directive, and from Notification Services and the Alarm Rule ?

  thanks,
  keith
2508.2getevent pm loggingIJSAPL::ZWAMAWim, SWAS Holland @UTOThu Mar 12 1992 09:52125
Hi Keith,

Sorry for the delay, I was on the customer site;
Here are the lists of the results of GETEVENT directives,
which functions normal when I do it via the FCL interface;

Wim.

/////////////////////
/// RESULT ONE /////
//////////// $getevent rccs * any events ///////////////////////
*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      65 
PARTITION code: 15 
AES dump of ENTITY IN:

Depth=0  Class = 99 Instance =  No curlen  Id = 0 Dt = 0 


ILV dump of IN_P: in_p is NULL 
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

**********************************************
FCL PM Arguments on return from call_function: 

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  1 ] ( 
    [  1 ] ( 
        [  420 ] ( 
            )
        )
    )
AES dump of ENTITY OUT:

Depth=0  Class = 99 Instance = VX0042_NS:.rccs.rccs1 Id = 1 Dt = 5 



RCCS VX0042_NS:.rccs.rccs1 
AT 12-MAR-1992 08:49:09 Any Event

Received RCCS Event: 
Event: Message Buffer Full
 Queued message buffer is full

/////////////////////
/// RESULT TWO /////
///////////// $GETEVENT RCCS * MODEM_ADDRESS * ANY EVENT /////////////////////

///////  MS definition ////////////////////
   EVENT Equipment Messages Queued Warning = 121 :
      DISPLAY = TRUE,
      SYMBOL = ATTR_EQUIPM_M_Q_W,
      TEXT = " Equipment !<Equipm Type M> !<Equipm Number M> messages queued has reached warning level",
      ARGUMENT Equipm Number M = 122 : Unsigned8
            DISPLAY = TRUE,
            SYMBOL = ATTR_EQUIPM_NUMBER_M
      END ARGUMENT Equipm Number M ;
      ARGUMENT Equipm Type M = 137 : EquipmEnum
            DISPLAY = TRUE,
            SYMBOL = ATTR_EQUIPM_TYPE_M
      END ARGUMENT Equipm Type M ;
   END EVENT Equipment Messages Queued Warning ;
///////  end of MS definition ////////////////////


////// results of getevent rccs * modem_address * any events //////////
*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      65 
PARTITION code: 15 
AES dump of ENTITY IN:

Depth=0  Class = 99 Instance =  No curlen  Id = 0 Dt = 0 
Depth=1  Class = 80 Instance =  No curlen  Id = 0 Dt = 0 


ILV dump of IN_P: in_p is NULL 
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

**********************************************
FCL PM Arguments on return from call_function: 

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  1 ] ( 
    [  1 ] ( 
        [  121 ] ( 
            [  122 ]             01 
            [  137 ]             00 
            )
        )
    )
AES dump of ENTITY OUT:

Depth=0  Class = 99 Instance = VX0042_NS:.rccs.rccs1 Id = 1 Dt = 5 
Depth=1  Class = 80 Instance =   Id = 81 Dt = 33 



RCCS VX0042_NS:.rccs.rccs1 Modem_Address 1 
AT 12-MAR-1992 08:49:27 Any Event

Received RCCS Event: 
Event: Equipment Messages Queued Warning
 Equipment AGV 1 messages queued has reached warning level
                        Equipm Number M = 1
                          Equipm Type M = AGV

////////////////////////////////////////////////////////////////////////////////

2508.3Could you show the output from Alarms too ?NANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamThu Mar 12 1992 10:4318
  Wim,

  Could you write an Alarm Rule on your Event ... and enable Notification
  which will display the Event generated by Alarms:

	MCC> notify domain <domain-name>
	MCC> create domain <domain-name> rule rccs-rule-1 -
	     expr=(occurs(rccs * any event))
	MCC> create domain <domain-name> rule rccs-rule-2 -
	     expr=(OCCURS(rccs * modem_address * any event))

  Be sure to create a domain first, and replace <domain-name> above
  with name of the domain which you have created:

	MCC> create domain <domain-name>

  Then post the results here ... thanks  /keith

2508.4fcl notify output51402::ZWAMAWim, SWAS Holland @UTOFri Mar 13 1992 08:09218
Hi Keith,

Here follows the fcl notification output....


regards
Wim.


$man/enter
create domain test


*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      12 
PARTITION code: 10 
AES dump of ENTITY IN:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 


ILV dump of IN_P: in_p is NULL 
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

**********************************************
FCL PM Arguments on return from call_function: 

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  1 ] ( 
    )
AES dump of ENTITY OUT:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 



Domain VX0042_NS:.test 
AT 13-MAR-1992 10:33:01 

Create Successful
notify domain test
%MCC-S-NOTIFSTART, Notify request 1 started
create domain test rule rccs-rule-1 -
expr=(occurs(rccs * any event))


*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      12 
PARTITION code: 10 
AES dump of ENTITY IN:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 
Depth=1  Class = 5 Instance = rccs-rule-1  Id = 1 Dt = 4 


ILV dump of IN_P:

[  0 ] ( 
    [  30 ]     28 6f 63 63 75 72 73 28 72 63 63 73 20 2a 20 61 6e 79 20 65 
    76 65 6e 74 29 29  -- (occurs(rccs * any event))
    [  11 ]     0c 
    [  12 ]     00 
    [  2 ]     00 
    [  3 ]     01 
    )
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

**********************************************
FCL PM Arguments on return from call_function: 

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  2 ] ( 
    )
AES dump of ENTITY OUT:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 
Depth=1  Class = 5 Instance = rccs-rule-1  Id = 1 Dt = 4 



Domain VX0042_NS:.test Rule rccs-rule-1 
AT 13-MAR-1992 10:33:16 

Rule created and enabled successfully.
create domain test rule rccs-rule-2 -
expr=(occurs(rccs * modem_address * any event))


*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      12 
PARTITION code: 10 
AES dump of ENTITY IN:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 
Depth=1  Class = 5 Instance = rccs-rule-2  Id = 1 Dt = 4 


ILV dump of IN_P:

[  0 ] ( 
    [  30 ]     28 6f 63 63 75 72 73 28 72 63 63 73 20 2a 20 6d 6f 64 65 6d 
    5f 61 64 64 72 65 73 73 20 2a 20 61 6e 79 20 65 76 65 6e 74 
    29 29  -- (occurs(rccs * modem_address * any event))
    [  11 ]     0c 
    [  12 ]     00 
    [  2 ]     00 
    [  3 ]     01 
    )
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

**********************************************
FCL PM Arguments on return from call_function: 

CVR returned:
%MCC-S-RESPONSE, success with response reply

ILV dump of OUT_P:

[  2 ] ( 
    )
AES dump of ENTITY OUT:

Depth=0  Class = 8 Instance = VX0042_NS:.test Id = 1 Dt = 5 
Depth=1  Class = 5 Instance = rccs-rule-2  Id = 1 Dt = 4 



Domain VX0042_NS:.test Rule rccs-rule-2 
AT 13-MAR-1992 10:33:19 

Rule created and enabled successfully.
getevent rccs * channel * any event


*****************************************************
*     FCL PM Arguments before call_function:        *
*****************************************************

VERB code:      65 
PARTITION code: 15 
AES dump of ENTITY IN:

Depth=0  Class = 99 Instance =  No curlen  Id = 0 Dt = 0 
Depth=1  Class = 60 Instance =  No curlen  Id = 0 Dt = 0 


ILV dump of IN_P: in_p is NULL 
ILV dump of IN_Q: in_q is NULL 
TIME SPEC is: 0, NOW 

!!!!!!!!!!!!!! Alarm, 13-MAR-1992 10:34:57 !!!!!!!!!!!!!! [1]
Domain: VX0042_NS:.test                               Severity: Indeterminate
Notification Entity: RCCS VX0042_NS:.rccs.rccs1 
Event Source: Domain VX0042_NS:.test Rule rccs-rule-1 
Event: OSI Rule Fire

                             Event Time = 13-MAR-1992 10:34:55.33
                         Probable Cause = Unknown
                           Problem Data = { (
                               significance = True,
                                information = "The last event detected: RCCS 
                                              VX0042_NS:.rccs.rccs1 Message 
                                              Buffer Full  13-MAR-1992 
                                              10:34:54.98" ),
                                            (
                               significance = True,
                                information = "(occurs(rccs * any event)) 
                                              " ) }
                         Managed Object = { RCCS VX0042_NS:.rccs.rccs1  }
                     Perceived Severity = Indeterminate



!!!!!!!!!!!!!! Alarm, 13-MAR-1992 10:35:14 !!!!!!!!!!!!!! [1]
Domain: VX0042_NS:.test                               Severity: Indeterminate
Notification Entity: RCCS VX0042_NS:.rccs.rccs1 Modem_Address 1 
Event Source: Domain VX0042_NS:.test Rule rccs-rule-2 
Event: OSI Rule Fire

                             Event Time = 13-MAR-1992 10:35:12.15
                         Probable Cause = Unknown
                           Problem Data = { (
                               significance = True,
                                information = "The last event detected: RCCS 
                                              VX0042_NS:.rccs.rccs1 
                                              Modem_Address 1 Equipment 
                                              Messages Queued Warning  
                                              13-MAR-1992 10:35:11.12" ),
                                            (
                               significance = True,
                                information = "(occurs(rccs * modem_address * 
                                              any event)) 
                                              " ) }
                         Managed Object = { RCCS VX0042_NS:.rccs.rccs1 
                                            Modem_Address 1  }
                     Perceived Severity = Indeterminate

////////////////////////////////////////////////////////////////////////////////
2508.5Hmmm... something doesn't seem rightNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamFri Mar 13 1992 16:1457
RE: .2

  This is the output you received from *your* getevent:

>  RCCS VX0042_NS:.rccs.rccs1 Modem_Address 1 
>  AT 12-MAR-1992 08:49:27 Any Event
> 
>  Received RCCS Event: 
>  Event: Equipment Messages Queued Warning
>   Equipment AGV 1 messages queued has reached warning level
>                          Equipm Number M = 1
>                            Equipm Type M = AGV


RE: .4

  This is the Event Argument section of the Alarms OSI Rule Fire event:

>  Managed Object = { RCCS VX0042_NS:.rccs.rccs1 }
>     information = "The last event detected: RCCS VX0042_NS:.rccs.rccs1
>                    Message Buffer Full  13-MAR-1992 10:34:54.98" )
>     information = "(occurs(rccs * any event))"



  and

>  Managed Object = { RCCS VX0042_NS:.rccs.rccs1 Modem_Address 1  }
>     information = "The last event detected: RCCS VX0042_NS:.rccs.rccs1
>                   Modem_Address 1 Equipment Messages Queued Warning  
>                   13-MAR-1992 10:35:11.12" )
>     information = "(occurs(rccs * modem_address * any event))"


  -------------------------------------------------------------------------

  You should be seeing 3 'information' records:

    o The getevent Entity & timestamp information   .. Present
    o The Event Arguments                           .. Missing
    o The Rule Expression                           .. Present

  I am not sure why the Event Arguments Information Record is missing.
  Certainly, the Event Report you are returning is not long enough to
  cause a buffer size problem.

  Which version of DECmcc are you running?  I did not work on the Event
  Arguments, so I'm at a bit of a loss with what exactly worked in which
  release.

  If you are not already running DECmcc Baselevel x1.2.15, I suggest that
  you copy and install it.  The location of the kit can be found in one of
  the 'announcement' notes in the conference.

  Please keep us posted -- 

  /keith
2508.6it works now ok with 'latest' versionIJSAPL::ZWAMAWim, SWAS Holland @UTOWed Apr 01 1992 02:178
Hi Keith,


After installation of new version of DECmcc X1.2-15 it works ok!!


regards Wim

2508.7wait a moment...IJSAPL::ZWAMAWim, SWAS Holland @UTOMon Apr 06 1992 18:0211
Hi,

In the FCL output everything seems ok now, but when I use standard alarm
parsing command scriptroutine with P1 to P8 and saving (by copying the file 
pointed by the p8 parameter) the data file there is nothing in it about 
orginally event message! In the manual (Alarms and Notification Service Use)
there is phrase that eventually event data is also stored in this file.
How does it works?

regards 
Wim
2508.8Known problemTOOK::MINTZErik Mintz, DECmcc Development, dtn 226-5033Tue Apr 07 1992 08:253
There was a coding error that dropped the event data when
going to a .com file.  It has been fixed for EFT Update.

2508.9DECmcc Collector AMBIS1::COLLEYEFri May 08 1992 05:567
    Wim,
    
    Couldn't the DECmcc Collector AM help you to solve your problem ?
    
    Regards,
    
    Maurice.