Service alarm report filter

Hello

I'm writing a groovy script to get a list of filters of alarm for a service, but with not a lot of success. Anyone have advice on how to do this?

Thank you

Kris

Hello

the bottom should cover all the possible filter that can be created:

def service = #! FSMService WHERE name = "YourServiceName" #. getTopologyObjects() [0]
def filters = service. Get ("alarmFilterConditions")

def filtersToString =]

(filter filter)
{
include some DEF = filter. include
def severityThreshold = filter. severityThreshold
def filterToString = "";

If (include! = null & severityThreshold! = null)
{
If (include)
{
Switch (severityThreshold.get ("name"))
{
"Fatal" case: filterToString = "include Fatal."
break;
case "Criticism": filterToString = "include fatal and critical."
break;
box "Warning": filterToString = "include all".
break;
}
}
on the other
{
Switch (severityThreshold.get ("name"))
{
"Fatal" case: filterToString = "exclude Fatal."
break;
case "Criticism": filterToString = "exclude fatal and critical."
break;
box "Warning": filterToString = "exclude".
break;
}
}
}

Rule def = ID filter. Rule ID
If (ruleId! = null)
{
def rule = server. RuleService. getRule (ruleId)
If (! filterToString isEmpty ()).
{
filterToString += «...» "
}
filterToString += "State:"+ rule. " Name + «...» Scope: "+ rule. scopingTopologyObjectType?. name
}

expression of def = filter. expression
If (expression! = null)
{
If (! filterToString isEmpty ()).
{
filterToString += «...» "
}
filterToString += "Groovy Expression:"+ expression. "
}

filtersToString. Add (filterToString)
}

return filtersToString

Thank you

Alain Abdulsater

Tags: Dell Tech

Similar Questions

  • RT2870 automatic installation service has reported an invalid current state 0.

    This is my first posting, so be gentle with me

    I discovered that each Windows session seems to result in a record of the event (Event ID 7016) with the description Viewer:

    RT2870 automatic installation service has reported an invalid current state 0.

    I understand that maybe it's something to do with my broadband connection or USB wireless adapter Tenda I should use, but as a non-techie, I'm not really sure.   And I do not know what is the function auto-install RT2870 function is supposed to have to pay.

    Can someone explain how I can deal with the error, please

    Thanks TwoPointOh.

    As the error messages appear do not indicate a problem serious or critical, I'll follow your suggestions at your leisure.

    And thanks for the tips and suggestions.

  • SERVICE HANG REPORT - hpqddsvc

    Currently, I have eight 8 computer home networking on my home network. Computers using Vista 32-bit, Vista 64-bit and Windows 7 Ultimate 64 bit operating systems continue to send a notification to the problems and section of the report, stating: "'hpqddscv Service Hang Report." "

    I use a printer HP all-in-one Officejet 7410 and HP Laserjet 2430tn printer range.

    All computers seem to be send the items requested to print without problem. However, as indicated in the report and the problems of the article, the above message appears repeatedly several times.

    No one knows what means this message and how fix/remove this message.

    Any help would be appreciated.

    Thank you.

    The message refers to a service called HP CUE Device Discovery Service. Lets try and stop the service and see if the error appears again.

    1. click on the start menu and click on "Run" and type "services.msc" and press the Enter key.
    2. in the Services window, locate the HP CUE Device Discovery Service and double-click it.
    3. you should see a button titled 'STOP '. Click on this button.
    4 above, you should find something that says "Startup Type" Change that on 'off '.
    5. click on the button "Apply" and close all windows.

  • whenever I try to certify a document using my E-token brazilin, it appers: the windows cryptographic service provider reported an error. Code: 2148073510. Someone knows how to fix this?

    I would be grateful if someone could help me. Every time I try to certify a document using my E-token brazilin, it appears: the windows cryptographic service provider reported an error. Code: 2148073510. Someone knows how to fix this?

    Problem of this sort occurs generally when the driver that supports your token is not fully compliant with all standards. Some signature applications are mild for some of the discrepancy and you can still use your signature token in these applications. Acrobat is more strict about this.

    Without actually having your token, it is difficult to continue the investigation.

  • 'OR' in Interactive report filter

    We need to create a filter preset for interactive report, which should be used only those records in which several (one or more) fields contain null values

    in SQL, it could be
    (Fld1 is null OR Chp2 is null OR Chp3 is null OR...)

    is it possible to do the same thing in the interactive report filter, preferably by using URL (user URL hits - and the filter is applied to the report)?

    Hello

    I have not access to an Apex 3 environment to verify this, but I think that interactive reports of Apex 4 save the filters slightly differently and an attempt to mimic this functionality using IR conditions would fail.

    The only solution I can think of right now is to have an additional column that returns 0 or 1 - for example:

    SELECT FIELD1,
    FIELD2,
    FIELD3,
    CASE WHEN (FIELD1 IS NULL OR FIELD2 IS NULL OR FIELD3 IS NULL) THEN 1 ELSE 0 END INCLUDE_NULLS
    FROM YOURTABLE
    

    then apply a filter to INCLUDE_NULLS = 1

    Andy

  • Interactive report filter by clicking the cell in report

    Hello

    I want interactive report filter by clicking report cell .i have created an interactive report and put java script in the Page HTML HEader.

    <script type="text/javascript"> 
    $(function(){  $('.apexir_WORKSHEET_DATA td').live('click',function(){   
    $('#apexir_SEARCH').val($(this).text());   gReport.search('SEARCH'); 
     }); 
    }); 
    </script>
    It is work in Apex 4.0 but does not not to point 3.2. I don't load the jQuery library in the header of the template page.
    I put only Java Script in the HTML Page Header.

    How to solve this problem.

    Thank you.

    Hello

    Way the easiest is using Google.
    Add to the header of HTML page or template page prior to alternatives #HEAD #.

    
    
    

    Alternative see, for example, that
    http://www.oracleapplicationexpress.com/tutorials/66

    Kind regards
    Jari

  • Apex 4.0 how use the interactive report filter feature?

    Hi all
    Sorry for the nub question, but if there is a way to create and save 'report' with the filter condition using a function?
    What I want to do is to create an interactive table called TASK report.
    Table has two columns I want to use for filtering:
    FDate - DATE - date
    TDate - DATE - to date
    Then, I need to create multiple saved reports:
    last week the tasks = where FDate between sysdate - 7 AND sysdate...
    last month tasks = where FDate between ADD_MONTH(sysdate,-1) AND sysdate...
    but,
    Interactive report filter does not accept sysdate or calls to functions ADD_MONTH.
    Is there an easy way to configure this feature?
    TIA
    Thomas

    Sorry for the double post...

    Published by: thomaso on August 6, 2010 12:04

    Hi Thomas,

    Take a look at the type of filter 'Row' in the interactive reports filter dialog box. This allows more dynamic filters, such as those involving SYSDATE or ADD_MONTHS calls. See also the next thread for some more details on this:

    Re: Interactive report - line conditional highlighting date function

    It will be useful.

    Anthony.

  • Capture interactive report filter fields

    I have a requirement where in a user can view data, apply filters to it, and then call an Oracle API passing across the data currently visible on the report.

    If I can some how capture currently applied filters on an interactive report, I should be able to recreate the same data server before calling the API Oracle side.

    Is there a way to capture these interactive report filter field?

    Thank you
    Shikhar

    Hello

    Ok
    I don't know any Apex accumulation in the package, procedure or function you could use.
    Custom package apex_ir_query can return where clause which is related to the current user
    http://stewstools.WordPress.com/apex_ir_query-package/

    I used here as example
    http://ActioNet.homelinux.NET/HTMLDB/f?p=lspdemo:Home

    Custom paging additional IR (first name/page) and export Excel use the package on this page

    BR, Jari

  • Reports - Service request report

    Hello
    I am creating a service request, similar to my avialble customized report list on the homepage Application Service request with a few extra fields. Given that this list is based on the records that I own, I find it difficult to put the filter in the report? In other words how to cretae the report with the condition status = "Open" and belongs to the user. " Any help is appreciated.

    Thank you
    Kone

    Add this filter to the report to display documents created by the login ID

    Employee.Alias = VALUEOF (NQ_SESSION. ("' user_alias ')

  • Increase the width of the column interactive report filter

    Hello

    When you click on a column on an IR header, a filter in the form of a widow of pop - up appears, which has the list of values. I have an IR column where the values are long, such that they do not fit in the filter area. As there is no horizontal scroll bar, so the value is truncated.

    Is it possible to increase the width of the column filters say 3 inches for one or all columns, or even display a horizontal scroll bar so that the values do not get truncated?

    I use Apex v4.2.1.

    Hello

    Go wrote:

    POOJA,

    check out the blog of jari list drop down interactive column resizing report that can help you...

    Here you can find simple solutions for APEX 4.2

    APEX 4.2 resizable interactive column topic report menu

    Kind regards

    Jari

  • How to get out of scheduled using web service api report

    Hello

    By using the api service report I can run the report query and get the result and save it in a file. But as I'm under the report directly I don't see report running history in BIP UI. (Or there is a way to do what I don't know.)

    So I create a task report and the request for a change it and then call using the api planning service and it works properly gives me a return identification work and I see the history for a job at the BIP UI.

    But I can't find a api that gives me the result of this work.

    All of the suggestions.

    I use eclipse, cfx to generate stubs, and it's a simple java program with access to the web service

    Obtained, he works as below.

    1. Call scheduleReport on SchedulerService to schedule a report and get the scheduled_job_id.
    2. Call getAllScheduledReportHistory on SchedulerService using scheduled_job_id to get the work history that includes the work of the child created by the Scheduler for above child_job_id scheduled_job_id.
    3. Call getScheduledJobInfo on SchedulerService using child_job_id to check whether the job has finished if it is wait for a while, then try again until the work is either successful or failed. The api returns object JobDetails
    4. If the job is successful then check if xmlDataIsAviable for the above job details. If Yes, then call getXMLData on SchedulerService using child_job_id which gives a byte array, write this array of bytes on the disk using the java.io library
    5. Call getScheduledReportOutputInfo on SchedulerService using child_job_id for the information of reportOutput, which is a list of cases
      more than one output format is specified in the report definition to the bi pub. Scan the list for the output_id for the data to the desired output format.
    6. Call getDocumentData on SchedulerService using the output_id above, which gives an array of bytes of report data, and save it using the java.io library

    If you want to avoid voting in step 3 you can configure a httpserver in bi publiher, which is basically a servlet url of a Web application deployed on a server

    Select Server Name URL Default Delete
    BiPubReportsWebApp http://hostname:PortName/webappnameWebApp/servleturi

    and when planning the report in step 1, you can specify these options in the ScheduleRequest element

    scheduleRequest.setNotificationServer (notificationHttpServerName) / /notificationHttpServerName = BiPubReportsWebApp

    scheduleRequest.setNotifyHttpWhenFailed (true);

    scheduleRequest.setNotifyHttpWhenSkipped (true);

    scheduleRequest.setNotifyHttpWhenSuccess (true);

    scheduleRequest.setNotifyHttpWhenWarning (true);

    So when the work is done bi publisher will make a post to you request httpservlet with jobid, reporturl, jobstatus, so you can use this jobid (which corresponds to the id of child labour) to perform steps 4 and following

    Another thing to note is step 6 gives the byte array return which may be huge in big reports and you can go outofmemeory in this case

    (1) request to the server to save the xml data and output on the server and returns the path where these files have been saved by using downloadXMLData and downloadDocumentData to the SchedulerService, and then tokensize the string to get the last piece

    (2) call downloadReportDataChunk of the report (in a loop) service to get the data for the xml data and the document into segments giving him the name of the file in step 1, a start index and chunksize

    While (offset! = - 1) {}

    LOG.debug ("Getting chunck number :->" + counter + "index :->" + beginIdx);

    ReportDataChunk reportDataChunk = getReportDataChunks (tmpFileNameOnServer, beginIdx, util.chunkSize);

    data = reportDataChunk.getReportDataChunk ();

    output. Write (Data);

    beginIdx = beginIdx + util.chunkSize;

    offset = reportDataChunk.getReportDataOffset ();

    counter ++;

    }

    public ReportDataChunk (String starts, int beginIdx, int size) getReportDataChunks survey com.oracle.xmlns.oxp.service.v2.reportservice.OperationFailedException_Exception,

    {com Oracle.xmlns.OXP.service.v2.ReportService.AccessDeniedException_Exception}

    ReportDataChunk reportDataChunk is getReportServicePort () .downloadReportDataChunk (starts, beginIdx, size, getUsername(), getPassword());.

    Return reportDataChunk;

    }

    Note: when you schedule a report using schedulereport pub bi api back you a job id but matching so that it creates a Collard work with a different id that does the job and this childjobid is given when using the method of notification httpserver.

  • PowerCLI to configured alarms report

    Hello

    I'm looking for a way to draw a report on alarms that we have configured in vCenter. For example, it would be nice to receive the information below.

    NameTriggerAction
    Redundancy Uplink lost networkNetwork connectivity lostE-mail: [email protected]

    Is there an easy way to get this information?

    Thank you

    Scott

    Figured it out.

    vSphere PowerCLI > Get-AlarmAction | where {$_.to - eq "[email protected]'" "} | Select alarmdefinition, actiontype, to trigger | FL
  • 'OR' logic in interactive report filter Conditions

    Hello.

    I use Apex 4.2.1 against Oracle 11 GR 2 using mod_plsql.

    I noticed that conditions of IR filter between the columns of different report as identical are always "AND-ed' together.

    My users need create IR filter conditions that are 'GOLD - ed' together.

    Is it possible to do this?

    Thank you.

    Elijah

    Once you click on "Filter", you will see two options - "Column" and "Row". Use 'Row' and there you can enter the complex conditions.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Search in report filter

    Hello
    I have a SUPP_ID column in the table. I need a filter in the report. I want to perform a search by not by. SUPP_ID provider name provider name exist in the other table (VENDOR_VW).
    This is my query for the name of the provider.
    (SELECT NAME FROM VENDOR_VW WHERE CODE=A.SUPP_ID AND SBU_CODE=:P0_SBU_CODE AND TYPE<>'A') 
    what I write in which clouse while I can search by provider name?


    The code of my report is-
    select 
    "INV_ID",
    "INV_NO",
    "SUPP_ID" from "AP_SUPP_APR_INV" A WHERE  instr(upper("INV_ID"),upper(nvl(:P104_REPORT_SEARCH_1,"INV_ID"))) > 0  or
    instr(upper("INV_NO"),upper(nvl(:P104_REPORT_SEARCH_1,"INV_NO"))) > 0)
    Thanks and greetings
    CORINE

    guessing

    select "INV_ID",
           "INV_NO",
           "SUPP_ID"
      from "AP_SUPP_APR_INV"
     where instr("INV_ID",nvl(upper(:P104_REPORT_SEARCH_1),"INV_ID")) > 0
        or instr("INV_NO",nvl(upper(:P104_REPORT_SEARCH_1),"INV_NO")) > 0
        or "SUPP_ID" in (select CODE
                           from VENDOR_VW
                          where upper(NAME) = upper(:P104_REPORT_SEARCH_1)
                            and SBU_CODE = :P0_SBU_CODE /* additional bind variable */
                            AND TYPE != 'A'
                        )
    

    Concerning

    Etbin

  • Report filter at run time editor

    Hi all

    I created the report through bi report Publisher and access using url with the necessary parameters. Now, I want to filter the report with the wise city.
    So please guide me how can be possible?

    Thanks in advance
    Vishal

    Hello

    You see link below

    http://oraclelabs.com/index.php/2010/10/11/creating-new-report-using-BI-Publisher/

    Create a parameter and enter a name for this.
    Select the Type of parameter like: Menu
    Now you be able to see the Menu setting Options
    Check the box Multiple selection...
    This is the way to select multiple values in menu drop-down...

    THnaks

    Deva

Maybe you are looking for

  • What happens to the records staff and old e-mail address book when I change to new email

    I got a new email address. I'm going to quit using the former, who was with Comcast when I cancel the Comcast service, how can I make sure that I don't lose my personal folders and the address book. Also, if I can keep the personal folders that conta

  • Help on the screen please

    Hello everyone. I have an iPhone its registered as peripheral Europe 6plus .and I live the strip of gaza, plaestine. My screen is crashed lower right what do I do? , theres an agent apple here?  Or should I buy commercial screen? Advice please

  • HP Pavilion P7 - 1254 PC: replacement of the electric cord and use

    Moving to the Italy and take advantage of my desktop HP Pavilion P7 1254.  Card said 10A 125V.  Can I buy a spare with 120-240V power cord or I'm screwed?

  • HP Envy 750-247c: hybrid 120g SSD and 2 TB HD

    I'm having a ton of trouble with this machine... I love the hybrid drive for its super fast service, but no matter what I do, everything is stored on the SSD (c), with no way to change things.  I changed the storage settings to ask him to save all ap

  • regular expression for alarm url

    Hello I have a problem with the regular expression. I want to filter only the name of a dsc alarm url: \\EW-MONITOR\monitor\000_t-ist_STB-M1-AS. Alarms.HI must be 000_t-ist_STB-M1-AS. Someone has a tip for me? Best regards --Joachim