This is an archive of the Maximo Yahoo Community. The content of this pages may be a sometimes obsolete so please check post dates.
Thanks to the community owner Christopher Wanko for providing the content.
I'm going to try this, and it will probably fail, but has anyone managed a crontask active/not active with an escalation?
I was posed this question recently: can I shut off a crontask FTP interface a few days before month-end, then re-activate it a few days afterwards? So, think a blackout period that always changes (it is set a year in advance) so I can't rely on math.
I was thinking an escalation could look up blackout dates, then shutoff the interface with a Set Value Action [CRONTASKINSTANCE.ACTIVE], I could then light it up with a related Set Value.
-C
You could use a calendar on the Escalation, although you'd have to change it each year...
Shannon
Sent from my wonderful BlackBerry Z30 smartphone!
Original Message
From: maximal@wanko.com [MAXIMO]
Sent: Thursday, January 7, 2016 7:10 AM
To: MAXIMO@yahoogroups.com
Reply To: MAXIMO@yahoogroups.com
Subject: [MAXIMO List] Manage a cron with escalation?
I'm going to try this, and it will probably fail, but has anyone managed a crontask active/not active with an escalation?
I was posed this question recently: can I shut off a crontask FTP interface a few days before month-end, then re-activate it a few days afterwards? So, think a blackout period that always changes (it is set a year in advance) so I can't rely on math.
I was thinking an escalation could look up blackout dates, then shutoff the interface with a Set Value Action [CRONTASKINSTANCE.ACTIVE], I could then light it up with a related Set Value.
-C
I'm curious as to whether the escalation schedule is cached and may not reload when you modify it. Maybe if the escalation calls an actual disable action directly or via an automation scrip action. Have you considered doing away with the cron and basing everything on an escalation where you have more control and could build the blackout in to the where clause? I assume the cron is a custom Java class, you could reproduce the code in an auto script action or a Java action class quite easily.
On January 7, 2016 at 7:39:06 AM MST, Incomm Solutions incomm@shaw.ca [MAXIMO] <MAXIMO@yahoogroups.com> wrote: You could use a calendar on the Escalation, although you'd have to change it each year... Shannon Sent from my wonderful BlackBerry Z30 smartphone! Original Message From: maximal@wanko.com [MAXIMO] Sent: Thursday, January 7, 2016 7:10 AM To: MAXIMO@yahoogroups.com Reply To: MAXIMO@yahoogroups.com Subject: [MAXIMO List] Manage a cron with escalation? I'm going to try this, and it will probably fail, but has anyone managed a crontask active/not active with an escalation? I was posed this question recently: can I shut off a crontask FTP interface a few days before month-end, then re-activate it a few days afterwards? So, think a blackout period that always changes (it is set a year in advance) so I can't rely on math. I was thinking an escalation could look up blackout dates, then shutoff the interface with a Set Value Action [CRONTASKINSTANCE.ACTIVE], I could then light it up with a related Set Value. -C
@Shannon: a calendar might be good. If I did manage to get this to work, that'd be a way to go.
@ChrisL: apparently you cannot access crontaskdef or crontaskinstance from ESCALATIONS, and I'm thinking it's because they are both flagged internal. You correctly note the reload issue I'd encounter as well.
So, I think I'll have to wait until we go from 6.2.0 -> 7.6-ish, and I'll automate it using Javascript. I kinda wanted to jiu-jitsu my way through it though, so I may keep looking. Like, if I switch off "internal", what's the worst that could happen? Let's find out!
-C