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

Conference csc32::consolemanager

Title:POLYCENTER Console Manager
Notice:Kits, Scans, Docs on CSC32:: as PCM$KITS:,PCM$DOCS:, PCM$SCANS:
Moderator:CSC32::BUTTERWORTH
Created:Thu Aug 06 1992
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:1541
Total number of notes:6564

222.0. "can you feed C3 data from an application" by CX3PST::ANASAZ::J_BECKER (There's no substitute for a good boot) Tue Mar 22 1994 22:13


Is there a mechanism to write to the C3 interface from some other applicaion?

For example, SNS (WATCHDOG) could feed VCS$ENS with data but not the C3 (so
that the icon could change color as well).  Is this available in CONSOLE 
MANAGER?  I did not find a callable routine that could do this.

thanks
john becker
csc/cs
T.RTitleUserPersonal
Name
DateLines
222.1I think this works.OPG::SIMONWed Mar 23 1994 09:0212
Hi,
   I am fairly sure that if an event is fed into ENS and the system anme field
matches that of an icon on the C3 the Icon will change colour based on the
priority of the event regardless of the event source field. In fact I think that
if you have a peripheral icon with a name which matches the name in the event it
will colour ( but Dave or Phil should confirm this).  What you do not get is any
logging of the data from an event on disk for non CM events. 

Is logging data from non-CM events something people want?? If so submit a Phase
0 request.

Cheers Simon....
222.2No periphal color changeZENDIA::DBIGELOWInnovate, Integrate, EvaporateWed Mar 23 1994 14:347
    Simon, 
    
       Don't hold your breath for peripheral icons changing color.
    The code is in place, but never verified. Depending upon demand,
    we'll put it in the next release.
    
    Dave
222.3OPG::PHILIPAnd through the square window...Wed Mar 23 1994 14:447
Dave,

  It does work, I tested it when I put it in. Although this
  "feature" isnt being documented anywhere in this release.

Cheers,
Phil
222.4Only real PCM SYSTEMs receive events51488::OJUSSILAOlli Jussila, OMS FinlandWed Aug 24 1994 21:4013
    
    This really works but there is no way to find out what the event
    is? It is not comming on multiline window. 
    
    Very many of our VCS customers are using ENS to integrate
    events for PSW and other tools. With PCM V1.5 this can't be
    used if system is not connected on PCM. If system is defined
    as peripheral the icon color will change but event information
    or text can't be find.
    
    BTW is phase 0 already closed for next PCM release? 
    -Olli
    
222.5OPG::PHILIPAnd through the square window...Wed Aug 24 1994 22:0830
Ollie,
    
>>    This really works but there is no way to find out what the event
>>    is? It is not comming on multiline window. 
>>
>>    Very many of our VCS customers are using ENS to integrate
>>    events for PSW and other tools. With PCM V1.5 this can't be
>>    used if system is not connected on PCM. If system is defined
>>    as peripheral the icon color will change but event information
>>    or text can't be find.

  All the groundwork to fix this has been done for the next major release.
  If everything works as planned, the full context for these "external"
  events will be obtainable if it has been logged. Quite a few API changes
  have had to be made to enable this so if you have any "feeder" programs
  you have written yourself using CMUserSendEvent() they will have to be
  changed.
    
>>    BTW is phase 0 already closed for next PCM release? 

  Not as far as I am aware, send any requests to Rae Kung, she is now
  our Product Manager. I dont have her email address available at the moment 
  as I am at home, but, I am sure if she is reading this conference, she will 
  reply with it here, if not, I will post it tomorrow.

Cheers,
Phil
    

222.6MUZICK::KUNGWOTVAX::ELLISMAre you all sitting too comfybold square on your botty? - Then wThu Aug 25 1994 03:521
    
222.7Thanks, but new question...EEMELI::OJUSSILAOlli Jussila, OMS FinlandThu Aug 25 1994 16:5724
    
    
    Phil,
    
    Thanks again.
    
    Today I upgraded customer's PCM V1.0 to PCM V1.5 (ULTRIX V4.3A)
    They have also PSWX V2.1 (will get V2.2 when it is ready)
    I implemented PSW_FEED_PCM feeder (one included in PSWX V2.2)
    but it didn't pass events to ENS. I am running it on our
    ULTRIX V4.3A system with PCM V1.5 without problems.
    
    PSWX creates the process. 
    
    When CMUserSendEVent() is used, is the node name prosessing 
    case sensitive?
    PSWX always reports events using capital letters on nodename.
    In PCM nodename or peripheral can be written also using lowercase.
    I have to write test program which sends standard event to the given
    system to test this.
    
    -Olli
    
    -Olli
222.8OPG::PHILIPAnd through the square window...Thu Aug 25 1994 17:1010
Ollie,

  I dont beleive the nodename processing is case sensitive, I havnt
  had any reports from other people using PSW to say it doesnt work!

  Try using uppercase in PCM and see what happens, let us know how
  you get on.

Cheers,
Phil
222.9It is case sensitive. Status codes? Xt library?EEMELI::OJUSSILAOlli Jussila, OMS FinlandMon Aug 29 1994 17:2686
    
    I used following test program to send event with
    CMUuserSendEvent to PCM.

    At least on ULTRIX system PCM is case sensitive with system names
    if CMUserSendEvent is used.

    If I have system name HARALD and I send event to system HARALD
    Icon color changes, Event window receives event,  ENS status icon
    on C3 changes color and C3 receives event name.

    But if I send to system harald, HARALD's icon color changes and
    ENS status icon on C3 changes color and C3 receives event name 
    BUT Event window dosen't receive the event.

    I haven't tested this on customer system yet where I could get
    any signs on PCM when I send events with psw_feed_pcm.

    On customer's system there wasn't Xt library? Is it needed during
    run time. I compiled and linked pcm_feed_pcm on our system which
    is also running ULTRIX V4.3A

    What are the status codes CMUuserSendEvent returns? My test
    program seesm to return always 200 event I try to send 
    to system which hasn't been defined on PCM.

#include <stdio.h>
#include <time.h>
#include <console.h>
#include <string.h>

CMContext ENS_Context;
     char*  class = "PSW";
     char  info[512];
     char*  text;
     int    priority;
     char*  subsystem="PSW";
     char*  source = "PSW";
     int    My_index;
     time_t event_time;
     int    status;
     char*  name  = "PSW";
     char  *ErrString;
     char  system[17];
     char  message[133];

int main(int argc, char *argv[])
{


    if (argc != 3)
	printf("Usage: pcm_send SYSTEM 'message'\n");
    else
    {
	sprintf(system,"%s",argv[1]);
        sprintf( info,"Info:  %s", "CMuserSendEvent test");
        sprintf( message,"Text:  %s", argv[2]);

        event_time = time(0);

        priority = CMPriorityCritical;
	printf("System:%s:\n",system);
	printf("name:%s:\n",name);
	printf("class:%s:\n",class);
	printf("Info:%s:\n",info);
	printf("Message:%s:\n",message);
	printf("priority:%u:\n",priority);
	printf("subsystem:%s:\n",subsystem);
	printf("source:%s:\n",source);


         status = CMUserSendEvent(&ENS_Context,
                                  system,
                                  name,
                                  class,
                                  info,
                                  message,
                                  event_time,
                                  priority,
                                  subsystem,
                                  source);
	
	printf("CMUuserSendEvent Status:%u\n",status);
	}
}
                                               
222.10OPG::PHILIPAnd through the square window...Tue Aug 30 1994 10:4622
Ollie,

  So, you are saying that the notification doesnt
  happen in event list, but does everywhere else, I
  will take a look at eventlist.

  If you take a look in console.h you will see that
  CM_NORMAL is enumerated to 200, so I would guess
  that all your CMUserSendEvent calls are succeeding.

  ENS DOES NOT know about any systems defined in the
  PCM database (other than which systems belong to
  which groups) which is why you can send events with
  any system name you like.


Cheers,
Phil



  
222.11EEMELI::OJUSSILAOlli Jussila, OMS FinlandTue Aug 30 1994 11:299
    
 > So, you are saying that the notification doesnt
 > happen in event list, but does everywhere else, I
 > will take a look at eventlist.
     This is correct if system name dosen't match exactly
    
    thanks for CM_NORMAL.
    
    -Olli
222.12Is patch kit better with lower/uppercase systems?EEMELI::OJUSSILAOlli Jussila, OMS FinlandSun Sep 18 1994 21:3412
    
    Phil,
    	
    Did you fix this in patch kit?

>  So, you are saying that the notification doesnt
>  happen in event list, but does everywhere else, I
>  will take a look at eventlist.
    
    -Olli
    
    
222.13OPG::PHILIPAnd through the square window...Mon Sep 19 1994 12:048
Olli,

  If you are talking about the case sensitivity
  problem, then yes, I think I fixed it, try it
  and let me know.

Cheers,
Phil
222.14CMUserSendEvent is not case sensitive anymoreEEMELI::OJUSSILAOlli Jussila, OMS FinlandMon Sep 19 1994 14:468
	After V1.5 MUP 1 installation CMUuserSendEvent
	is not case sensitive with system names.
	This was tested on OpenVMS VAX V6.1 system

	Thanks for fixing this.

	-Olli