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)
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.
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.
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.
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 )
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.
Ok, so use option 1 and that will do what you need.
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
Please open a case so I can review what is occurring and assist you.
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.