[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

1239.0. "ENS filter displays wrong event - PCM UNIX" by 34129::FLACK (Swap read error. You lose your mind.) Thu Mar 14 1996 04:01

    Greetings,
    
    I know I am probably doing something real dumb...but I can't figure it
    out so far...
    
    I was trying to show a customer who is new to PCM how to use it and
    create events, use pop-up windows, etc.  I admit, I am somewhat
    fumbling through this as I have not used PCM, but have previously done
    a lot of work with VCS, so I am not a complete neophyte.
    
    I added a test event and a test scan (with only the one event).  I then
    added this scan to a scan we had previously created here that is used
    by the Alpha systems and showed them how we could trigger the event by
    typing the text on the console of the 8400 (BTW, this is PCM on UNIX). 
    Sure enough, the icon changed color and the event showed up in the
    eventlist window. So far, so good... Then I was trying to show them how
    to use the ENS features, so I added a filter - specifying the test
    event I had created and a dispatch of the single-shot window including
    the userdata (all the other fields such as subsystem, class, etc were
    left at default of all).  I saved the database and did a reconfigure
    from C3 and a single-shot window popped up with the reconfigure event!!
    I thought that was a little strange, but continued on... I then
    generated the event on the console again, but this did not trigger the
    single-shot window (but it did change the icon and update the eventlist
    window).  So I went and modified the filter and specified the system,
    class, subsystem and priority to match the test event, but still could
    only get the reconfigure event and not my test event.  So I added
    another dispatcher to send mail - again it only works on the
    reconfigure event and not my test event!!!
    
    Since I am specifying the exact event, class, priority, system, and
    subsystem with the filter - none of which match the reconfigure event -
    why I am I seeing it and not the test event???
    
    When I looked through the ENS log file in the tmp directory, I was
    totally confused it is full of messages like:
    
    find: bad status-- Connnection
    find: bad status-- re-established
    find: bad status-- to
    find: bad status-- managed
    find: bad status-- syste
    
    (the messages vary - but all semm to be event related like the above -
    and always seems to be missing the last character on the last line)
    I do not understand what this log file is supposed to be telling me -
    the ENS log was definetely more useful under VCS!!
    
    Thanks for any help,
    Peter
    
T.RTitleUserPersonal
Name
DateLines
1239.1CSC32::BUTTERWORTHGun Control is a steady hand.Thu Mar 14 1996 18:544
    Please post your filter definition so we can see how it's setup.
    
    Regs,
      Dan
1239.2I discovered part of the problem...34129::FLACKSwap read error. You lose your mind.Thu Mar 14 1996 20:5862
    Dan,
    
    I knew I must have been doing something dumb...
    Doing some more testing just a little while ago, I found that the event
    I had defined no longer had the class and subsystem I had assigned
    (maybe I forgot to save before a reconfigure or something).  By adding
    these itesm to the event I am now able to get the window to work with
    my test event.  I am still unsure about why I still see the reconfigure
    events though.  I think I must not understand how the ENS filters work.
    I had assumed that if I specified a particular event and systems and
    leave all other filter fields at default of all, that I would only see
    the particular event on those systems no matter what the priority, etc.
    But if I specify my test event and the two 8400 systems for the filter
    section (and leave other items at all), I still see the reconfigure
    events.  I also am not sure why yesterday I was not seeing my test
    event with this configuration (which is what led me to specify the
    class, subsystem, etc).  How do I set these fields so that I only see
    my test event, do I set all filter fields to not-all and then only add
    a selection for the particular event (so that all other fields are
    effectively blank) or do I have to specify all of the filter fields?
    
    Also, why does the log file look like it does, is this normal?  Even
    now when the filter seems to be working, the data in the log file still
    seems to be useless.  What is the purpose of this format for log file
    output?
    
    Anyway, here is the filter I am now using that does display my test
    event and also displays the reconfigure events (which I don't want):
    
    Filter Name      = bw_test_filter
        Information =
        Interval = 20 seconds
        Event Interval = 20 seconds
        Filter 1 events
          bw_test    This is a test event to test ENS
        Filter all classes
        Filter 2 systems
          apache    8400 apache console
          navajo    8400 navajo console
        Filter all Subsystems
        Filter all groups (4)
        Notify regardless of event priority
        Actions: (2)
          Action 1: Mail    Mail an event to a User
            Information : Mail test of filter
            Schedule:
                Run at any hour on any day
            User data passed to action:
                root
    
          Action 2: Single-Shot Window    One event in one window
            Information : This is a test event and dispatch
            Schedule:
                Run at any hour on any day
            User data passed to action:
                hopi 0 0 tcpip 00:10:00
    
    The only other filter defined on the system is the default Archive
    directory cleanup.
    
    Thanks for your help,
    Peter
1239.3CSC32::BUTTERWORTHGun Control is a steady hand.Fri Mar 15 1996 15:3165
>			How do I set these fields so that I only see
>    my test event, do I set all filter fields to not-all and then only add
>    a selection for the particular event (so that all other fields are
>    effectively blank) or do I have to specify all of the filter fields?
    
    You've basically hit the nail on the head. The following is some 
    pseudo-code that illustrates the logic used by filters:
    
    IF ((EVENT .OR. CLASS) .AND. (SYSTEM .OR. GROUP) .AND. SUBSYSTEM .AND.
       PRIORITY) THEN do actions
    
    The important thing to note is the ORing of EVENT with CLASS. If you 
    deselect Filter all Events but leave Filter ALl Classes set the
    the test for EVENT .OR. CLASS evaluates to TRUE. This is also true
    when there are no classes define or if the event isn't part of a class.
    This is because the NULL class is mathematically part of *ALL* classes.
    
    Deselect the FILTER ALL CLASSES button, save and reconfigure and you'll
    be all set.
    
    Regs,
      Dan
    
    
    Also, why does the log file look like it does, is this normal?  Even
    now when the filter seems to be working, the data in the log file still
    seems to be useless.  What is the purpose of this format for log file
    output?
    
    Anyway, here is the filter I am now using that does display my test
    event and also displays the reconfigure events (which I don't want):
    
    Filter Name      = bw_test_filter
        Information =
        Interval = 20 seconds
        Event Interval = 20 seconds
        Filter 1 events
          bw_test    This is a test event to test ENS
        Filter all classes
        Filter 2 systems
          apache    8400 apache console
          navajo    8400 navajo console
        Filter all Subsystems
        Filter all groups (4)
        Notify regardless of event priority
        Actions: (2)
          Action 1: Mail    Mail an event to a User
            Information : Mail test of filter
            Schedule:
                Run at any hour on any day
            User data passed to action:
                root
    
          Action 2: Single-Shot Window    One event in one window
            Information : This is a test event and dispatch
            Schedule:
                Run at any hour on any day
            User data passed to action:
                hopi 0 0 tcpip 00:10:00
    
    The only other filter defined on the system is the default Archive
    directory cleanup.
    
    Thanks for your help,
    Peter
1239.4Aaahh, no wonder I couldn't figure it out!34129::FLACKSwap read error. You lose your mind.Tue Mar 19 1996 11:2315
    Dan,
    
    Thanks for the info on the filtering w/classes and events.  This logic
    should be well documented in the manuals!!  It was very frustrating
    trying to determine the logic for when I was and was not getting events
    from ENS - and I wasted several hours simply because the logic is a
    mixture of AND and OR between the filter fields that is not easy to
    determine from trial and error.
    
    Also, you still haven't answered the questions about the ENS log
    file... is it normal or not and if it is normal, what is the use of the
    data?
    
    Thanks,
    Peter
1239.5CSC32::BUTTERWORTHGun Control is a steady hand.Wed Mar 20 1996 14:3612
    > Also, you still haven't answered the questions about the ENS log
    >file... is it normal or not and if it is normal, what is the use of
    >the data?
    
    I reread the base note and whats in there is definitely useless!!
    Without the debugging logical turned on, very littel data is placed in
    any of the daemon logfiles. If you want good ENS debugging info then 
    define the environment variable CONSOLE_DEBUG to ENS. Export it and
    restart PCM.
    
    Regs,
      Dan
1239.6Thanks, I will try it out34129::FLACKSwap read error. You lose your mind.Wed Mar 20 1996 20:451