UNSOLVED

WINGLOBAL

updated

17 years ago

W

WINGLOBAL

2 Posts

0

811

December 8th, 2009 05:00

ASL Filter Selective group

Hello,

I did classify all our devices in APM like below

Enterprise

|____Europe

            |_____RoutersEurope1

            |_____RoutersEurope2

            |_____RoutersEurope3

|____ASIA

            |_____RoutersASIA1

            |_____RoutersASIA2

            |_____RoutersASIA3

|____USA

            |_____RoutersUSA1

            |_____RoutersUSA2

            |_____RoutersUSA3

I am currently building a console view for our US Operator team so the users in the USA sees events and alarms from USA devices only.

Is there a way to filter events and notifications in the Console based on the devices Selective  group ?

i believe i might have to use a ASL filter. Anyone has any idea about how to achieve this ?

  • 351

    0

    Posted December 8th, 2009 06:00

    Hi,

    you can use a hook script between your SAM and AMPM : this hook script will use the MemberOf relationship of the ElementInstance in order to put in an UserDefined attribute the group containing the element in alarm. Then you can build a filter based on this UserDefined attribute.

    HTH,

    --Fred

    == Monitor your Smarts environment using APG ReportPack for Smarts health ==
    Frederic Meunier
    Solutions Watch4Net Inc
    APG & Smarts InCharge integration
    http://www.watch4net.com

  • WINGLOBAL

    2 Posts

    351

    0

    Posted December 8th, 2009 08:00

    Thank you for the reply Frederic ,    

    We already have a Hook implemented which assigned a specific value to a UserDefined given the domain we are receiving the event from. So i understand the part about the hook.

    However im still looking into documentation about how to get the right object .Since im new to the tool i dont have a list of all the classes i can use and dont know yet how to get the object im interested into.

    Would you happen to have some code sample about how to do that ? (Ideally how to fetch the right object and which attribute to compare to the S-HGRP group im interested in ? )

    Regards,

    Sabane


  • 351

    0

    Posted December 8th, 2009 09:00

    Sabane,

    in summary:

    eventObj is a ref. on the notification itself

            systemInFault = "";
            objectInFaultObj = self->object(eventObj->OccurredOn);
            systemInFault = objectInFaultObj->SystemName?IGNORE;

            if (systemInFault == "") {
                    return;
            }
    now you have captured the device

            systemInFaultObj = self->object("UnitaryComputerSystem", systemInFault)?IGNORE;
            if (!systemInFaultObj->isNull()) {
                    foreach group (systemInFaultObj->MemberOf) {
    now you can loop through the list of group and search for the right regex you are using, then based on the group, assign the UserDefined.

    HTH,

    --Fred

    == Monitor your Smarts environment using APG ReportPack for Smarts health ==
    Frederic Meunier
    Solutions Watch4Net Inc
    APG & Smarts InCharge integration
    http://www.watch4net.com