11 Replies Latest reply: Aug 17, 2011 7:13 PM by Jonathan Coop RSS

What are required to Create Custom Event Class and Forward it via BII4p

EP NameToUpdate

Dear All,

 

I'm planning to create an custom event class (from STD catalog) which have pre-defined text "%s" only(I didt want to use class 11, or 39 for this custom event as the predefined text is not what we want).

 

I managed to create and commit it to one of my development agent. This new event class I copied from event class 11, only I changed the description.

 

Event Class Properties:

Name: 125

Event Type: State Change

Owner: Patrol

Life expectancy: Stored

SNMP Support: No Trap

Notification: requires AS_EVSlibSTDEVENTS;

Save to File: AS_EVSevSTDEVENTS_CALL.psl

Expert Advice: This is custom

Description: %s

 

Now I go to BII4p 7x, and I can see event class 125 so i just tick it and include it for forwarding, just like other event 9,11,39.

 

Run below PSL command in the agent:

 

%PSL event_trigger("STD","125","ALARM","3", "Testhere");

 

I'm able to see the event in PEM.

 

I check on BII4p log and able to see:

 

DEBUG:8/15/2011 11:33:55 AM::120.89:Send message to Impact Manager. mc_ueid: <BII4Patrol/XX.XX.XX.XX/3181/1313379235/500>.

DEBUG:8/15/2011 11:33:55 AM::120.89:Send message to Impact Manager. mc_ueid: <BII4Patrol/XX.XX.XX.XX/3181/1313379235/500>.

 

*500 is the event id just created manually with event_trigger().

 

However, in BEM I never see this 125 event coming in. but it's fine with event 11 and 39.

 

The same thing happen when I trigger event with 9 or 10 or Result class, they never appear in BEM even tho BIII4p log said it's forwarded.

 

What could be the problem here? Looks like I'm missing something. Could anyone advise here in case you have done it before?

 

Jokes, suggestions and advises will be very appreciated.

 

Thanks and Regards,

Eric

  • 1. What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    Perhaps we can clear up some basic questions.

     

    1. Why not use the message re-wording that comes as standard in the later versions of the Patrol Agent?. I learnt about this from this board, I tested and it is very useful, and you can use dynamic data (ie read something from an agent namespace variable, but not yet from an annotated point).

     

     

    2. Trigger an event of your own catralog?, - create a KM, within KM create an event class, then as long as this KM is loaded you can trigger against it from any KM

     

    Either approach is much to be prefered over changing something that IMHO you shouldn't change (though I know of at least two very big Customers who do have their own STD events catalogue).

     

    Good luck

     

     

    Jon

  • 2. What are required to Create Custom Event Class and Forward it via BII4p
    EP NameToUpdate

    Hi Jon,

     

    Perhaps option one is not possible as I need to pass something from annotation point.

     

    I'm trying to use recovery action. so this recovery action will pull the value from annotation point and then triger another event (which is my custom event class).

     

    "-create a KM, within KM create an event class, then as long as this KM is loaded you can trigger against it from any KM" This is where my knowledge is limited. I have to ready the docs first.

     

    So you mean that we we can ask any KM to trigger this custom KM? what are the options to achieve that?

     

    Thx,

    Eric

  • 3. What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    H Eric

     

    To create a new class in a KM of your own is quite simple:

     

    image1.JPG

     

    Right click Event catalog as shown in your own KM, give the class a name, and in description tab put the contents as %s (it is case sensitive!).

     

    The trigger using event_trigger() or event_trigger2(), catalog name is the name of the KM where you added, class of event you give it mine is myEventClass (as shown). Just maqke sue the KM is in the pre-load list, or you cannot trigger against it.

     

     

    If your using bii4p3 nothing moree to do.

     

    If using bii4p7 make sure that the KM your triggering against is in the KM list for that node, and not filtered out.

     

    Hpe this helps.

     

     

     

    Jon

  • 4. Re: What are required to Create Custom Event Class and Forward it via BII4p
    EP NameToUpdate

    Jon,

     

    Thank you very much on this. I didn't know we can do this before. this way is much better than changing the standard catalog.

     

    Managed to create below event.

     

    event prop.JPG

     

    BII4p7 log showed that this event had been forwarded.

     

    DEBUG:8/15/2011 5:22:36 PM::120.89:Send message to Impact Manager. mc_ueid: <BII4Patrol/XX.XX.XX.XX/3181/1313400156/585>.

    DEBUG:8/15/2011 5:22:36 PM::120.89:Send message to Impact Manager. mc_ueid: <BII4Patrol/XX.XX.XX.XX/3181/1313400156/585>.

     

    BII4p7 configuration allows all classes...and all Type.

     

    event filter.JPG

     

    It's just that I still unable to see this event in BEM.

     

    I've checked if I generate other class like 11 or 39, everything forwarded properly.

     

    Do you think I missed something?

     

    Thanks and Regards,

    Eric

  • 5. Re: What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    Load the KM (which contains the catalogue) in the profile that the BII4P is using. Check that it appears in BII4P using the config tool, where you can expand the Nodes and see the KM's that each has.

     

    Also check that you can see the event in Patrol classic using the event browser.

     

     

    Regards

     

     

    Jon

  • 6. Re: What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    It's as well to check that the BII4P7 will find the events by trying filter them (as if you were just going to select certain classes/catalogues only) as well.

     

    The method I've shown is no different to the way other specialist events are sent (for example from the Oracle KM).

     

    Jon

  • 7. Re: What are required to Create Custom Event Class and Forward it via BII4p
    EP NameToUpdate

    Hi Jon,

     

    I have checked on Classic Console and I can see that event showing there.

     

    event consoles.JPG

     

    An i have checked on BII4p and looks like it just showed there just like other event. 

     

    event devAnnotate.JPG

     

    However i have tested also that I can't get event 41 forwarded as well, while BII4p log wrote forwarded.

     

    Checked on BII4p client file -- Event_Suppress_List -- , nothing mention that these events suppressed:

    0:UpdMachineState

    0:UpdAppState

    0:UpdInstState

    0:WorstApp

    0:7

    0:RegApp

    0:Diag

    0:Disconnect

    0:Unload

    AS_EVENTSPRING:NOTIFY_EVENT

     

     

    Something strange on my env ... need to check everything thoroughly...

  • 8. Re: What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    Other things:

     

    1. You have to have an instance of the KM whcih has the new catalogue where the event is being generated from, if you don't want to see it use something like this in the discovery script:

     

    create("invisible");

     

    Without the third argument the instance is not visible to the end user.

     

    Copy both the <kmName>.km and the <kmName>.ctg file to the agent box and place in %PATROL_HOME%\lib\knowledge

     

    Restart the agent.

     

    Restart the bii4p

     

    Try again

     

    Try with a new cell  (I wander if a rule is in place that is dropping the event in the original cell), using the mccrtcell command.

     

     

     

     

     

    Good luck

     

    Jon

  • 9. Re: What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    You might also consider putting a trace on the cell.

     

    Jon

  • 10. What are required to Create Custom Event Class and Forward it via BII4p
    EP NameToUpdate

    Hi John,

     

    Thanks for the suggestion. We run the tracing and found the cause.

     

    (Sorry i need to refine my findings)

     

    We found out there are customization which dropping PATROL_EV events which doesn't have mc_parameter value in it.

     

    Many thanks for your time to help solving this case.

    - Eric

  • 11. What are required to Create Custom Event Class and Forward it via BII4p
    Jonathan Coop

    It was a pleasure.

     

    Regards

     

     

    Jon