[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

670.0. "Basic help needed actions, events, filters" by OAW::MATUSZAK () Sat Apr 08 1995 00:26

I am having some conceptual difficulties with PCM.  I don't understand
the hierarchical relationship among filters, systems, events, actions,
groups, and classes.  What I am trying to do would seem to me to be 
fairly simple, but I don't understand how to communicate this to PCM.

There will be approximately twenty systems connected via telnet to the
PCM system.  Depending on what happens on each of these systems (as 
indicated by text sent to their respective console ports) certain actions
need to be triggered.  Some of the actions may be specific to certain 
systems as in  "for string x from system-console y do z".  Other actions
to be triggered may be generic for specific events from any system console
as in "for string x1 from any system do z1".  In still yet other cases,
several systems may wish to trigger a similar action for a specific event 
as in "for string x2 from systems p, q, and r, do z2". 

Is there a simple description available of how to do the above as well
as a description of the error messages?

I've been able to define an action, but rather than be triggered by
a specific event, it gets triggered by all events.  PCM also does not
start up automatically, weird and undocumented error messages appear
e.g. "CMgr Console NOT Found", ... Searches in bookreader don't find 
any error messages.

Any help would be appreciated.
T.RTitleUserPersonal
Name
DateLines
670.1CSC32::BUTTERWORTHGun Control is a steady hand.Mon Apr 10 1995 21:4874
    >Is there a simple description available of how to do the above as well
    >as a description of the error messages?
    
    Not really.
    
    >I've been able to define an action, but rather than be triggered by
    >a specific event, it gets triggered by all events.
    
    This is pretty common and has an easy solution. If you create a filter
    and you define a list of events for that filter *and* you leave the
    "filter call classes" button depressed you will see this phenomena.
    This will happen *even if you have no classes specified on any event*
    because "match all classes" also includes not having a class!!!
    
    A brief description of each entity that you asked about follows:
    
    event - some string of text that can be sent from a serviced systems
            console that has some significant meaning.
    
    scan profile - a grouping of events. Scan profiles are associated with
                   with serviced systems and define those events that will
                   be scanned for in text from the serviced system that 
                   use the scan. Serviced systems may use the same scan
                   profile or different scan profiles.  Note also that the
                   same event can be part of multiple profiles.
               
    filters      - "decision tables" that ENS applies each event to to
                    determine if this event should be sent to an action
                    routine.
    
    Let's take the easiest case where we have an action that we wish to
    take when any event occurs from any system. We'll call the filter
    "Wildcard". By default when we create a new filter it is setup to
     filter on everything so all we have to do is select an action and fill
    in the userdata.
    
    Now let's say we want production systems X, Y and Z to send us a mail 
    message when they crash. Note that we also have development systems  
    C, D and E and that we don't care if they crash. All systems utilize
    the same scan profile called VMS_EVENTS and that the event BUGCHK is
    defined and matches on the string "**** Fatal BUG CHECK". Note also
    that we have another series of events that all relate to security
    and we have associated them all with the class SECURITY_CLASS.
    
    We will define a filter as follows and it is assumed that you are using
    the Motif editor:
    
    We'll create a filter and *deselect* the buttons "Filter all events",
    "Filter all classes", "Filter all systems and "Filter all groups". 
    We will then selet the "Events..." button and use the resulting boxes to 
    select the BUGCHK event and then dismiss. We'll then select the
    "Systems.." button and select systems X, Y and Z from the resulting
    boxes and dismiss.
    
    We will not do anything further with "Classes" and "Groups" becuase
    we want only the BUGCHK event and we want only systems X, Y and Z. If
    we fail to deselect those options then we would get mail for all events
    and all systems. The one thing most folks miss is that  we logically
    .OR. the event and class fields together. We also logically .OR. the
    system and groups fields together. So if any of the "Filter all...."
    buttons is depressed then the ORing "always" returns TRUE - in effect
    we have a boolean truth table here - and we get more actioning than was
    intended.
    
    Lastly we will use the "Select" button and the resulting boxes to 
    associate the Mail action with this filter. We will use the Add button
    to fill in the Userdata box with a list of addressees to send the mail
    to - one per line.
    
    I hope this helps!
    
    Regs,
      Dan
    
670.2Thanks for the help31354::MATUSZAKWed Apr 12 1995 19:257
>    I hope this helps!
    
It sure does!  I won't be sure of how much until I try out a few things.

Thanks a lot!     

Ed