T.R | Title | User | Personal Name | Date | Lines |
---|
2432.1 | one option | ICS::WOODCOCK | | Wed Feb 26 1992 18:21 | 38 |
| > I am looking for the rule to only poll once a day, and I am planning that
> the rules will be enabled via batch and will be restarted at midnight each
> night.
> If I am looking for the rule to start at noon, should I set it up with
> start = +12:00
Hi Scott,
If you are only looking to poll once a day, and you are going to resubmit
each day, then why not resubmit when you want it to poll and forget the
time qualifier.
Example:
Rule(s) expressions look like:
expression=(node4 xxx Attribute = <whatever>) <-- no time qualifier
Command procedure looks like:
$! RULES.COM
$!
$! automatically resubmit the procedure for tomorrow at noon
$!
$ submit/after="TOMORROW +12:00" rules.com ! <--time syntax is probably not
$! right but close
$!
$ mana/enter
enable domain xxx rule RULE_1
enable domain xxx rule RULE_2
sp wait 0:1:0 ! <--give the rules time to fire
exit
$ exit
best regards,
brad...
|
2432.2 | | NSCRUE::KEANE | U.S. NIS Service Engineering and Delivery | Wed Feb 26 1992 19:18 | 8 |
| Hi Brad,
The part I left out is that I need this rule to run in the same process
context with some other rules and the other rules will be active all the time.
Thanks for the reply.
Scott
|
2432.3 | take out the "+" | ICS::WOODCOCK | | Fri Feb 28 1992 14:34 | 17 |
| Hi Scott,
I just tried a test rule with an expression like:
node4 bbpk04 circ syn-0 substate <> none,at start 14:25
This seemed to work ok as a quick test. After enabling the rule it
waited until 14:25 before executing. The only quirk I saw is that the
rules current severity was critical before it executed instead of clear.
This shouldn't give you a problem today but the ALARMS team may want to
take note of this.
So try taking out the + and let it run for awhile to see if it works for
you.
best regards,
brad...
|
2432.4 | | NSCRUE::KEANE | U.S. NIS Service Engineering and Delivery | Fri Feb 28 1992 15:01 | 11 |
|
Brad,
Thanks for the reply. I ended up with something similar. It turned out that
I was making the rule more complicated than it needed to be. It's amazing
what happens when you drop something like this and then go back to it after a
day. Sheds a whole new light on it.
Thanks again,
Scott
|