CA Vantage

Expand all | Collapse all

Script Help

  • 1.  Script Help

    Posted 02-26-2019 03:02 PM

    Good afternoon, I'm trying to create a scrip to monitor SMF MAN * files.

    The logic is as follows:

     

    Send a TRAP when the following condition is true:

     

    BNB1.MANX file equals 0 and BNB1.MANY file equals 0 

     

    Created the following script but did not send the TRAP. Could someone help me show where I'm going wrong?

     

    ("Dataset-Name" = BNB1.MANX AND "Used" = 0) AND ("Dataset-Name" = BNB1.MANY AND "Used" = 0)



  • 2.  Re: Script Help

    Posted 02-27-2019 03:38 AM

    Hello Felix,

    Before doing a script do the same into the Widows Client or the Web Client using the same filter.

    This is the best solution to verify the filter works or not.

    In your case, I suspect it do not work because the "Used" = 0 is not having the same data as expected.

    Please try this and let me know.

    If the problem persist and you can't find the solution, then please open a case and I will be please to assist you in getting it working fine.

    As I say, test the filter first outside script definition and you will probably find the solution yourself.

    Have a nice day.

    Regards,

    Pierre



  • 3.  Re: Script Help

    Posted 02-27-2019 07:05 AM

    Good morning Pierre,

     

    In fact, "Used = 0" is just a test for me to simulate and validate the alert, the alert should occur when the "Used" of two files equals "100". This means that there was a problem in the DUMP of these files, since they are 100% normal, but both are 100% normal.



  • 4.  Re: Script Help

    Posted 02-27-2019 07:17 AM

    Felix,

    Then the best is to test with greater or equal that equal.

    Then you will get the alert information and eventually do an action to add another SMF data set.

    Pierre



  • 5.  Re: Script Help

    Posted 02-28-2019 02:21 PM

    I created the script below to monitor 1 dataset and it worked:

     

           "Dataset-Name" =  BNB1.MANX AND  "Used" <  10

     

    But when I include 2 datasets, it does not work: 

     

           "Dataset-Name" =  BNB1.MANX AND  "Used" <  10 AND "Dataset-Name" =  BNB1.MANZ AND  "Used" <  10 

     

    I tried to include them in parentheses, but it does not work. Something's missing.

     

          ("Dataset-Name" =  BNB1.MANX AND  "Used" <  10) AND ("Dataset-Name" =  BNB1.MANZ AND  "Used" <  10 )



  • 6.  Re: Script Help

    Posted 03-01-2019 05:00 AM

    Felix,

     

    You have several possibilities to satisfy your needs.

    First you need to be sure which data set name is displayed into the view.

    These SMF data sets into the DTOC4SYS view are probably named BNB1.MAN1.DATA for example.

    So that means you need to code:

    1)  "Dataset-Name" INCL  BNB1.MAN?.DATA AND  "Used" <  10

    2)  For specific data sets and not all of them you can code 

     ("Dataset-Name" INCL  BNB1.MANX.DATA OR  Dataset-Name" INCL  BNB1.MANY.DATA) AND  "Used" <  10

    This will work too.

    If you do not succeed please open a case so I can assist you directly.

     

    Regards,

    Pierre



  • 7.  Re: Script Help

    Posted 03-01-2019 10:53 AM
    250/5000
    When one of the files reaches 100% use, it is a normal condition, that does not mean that it is a problem. I need the alert to occur when the 2 files reach 100% and not just one or the other. The OR condition does not apply to our need.


  • 8.  Re: Script Help

    Posted 03-01-2019 10:56 AM

    Ok, so use option 1 and that will do what you need.



  • 9.  Re: Script Help

    Posted 03-01-2019 01:53 PM

    I used option 1 and it did not work. It generated the alert before the second dataset reaches < 10%. Below is the script for option 1:

     

     "Dataset-Name" INCL  BNB1.MANX,BNB1.MANX AND  "Used" <  10



  • 10.  Re: Script Help

    Posted 03-04-2019 05:51 AM

    Felix,

    Please open a case so I can review what is occurring and assist you.

    Thank you.

    Regards,

    Pierre



  • 11.  Re: Script Help

    Posted 03-11-2019 04:04 AM

    Felix,

     

    Your filter is not what I have provided and is wrong in the syntax. It is why this is not working.

    Please open a case so I can definitely assist you and fix it in a short time.

    Thank you.

    Pierre