Solved

Scheduled agent when server down

Posted on 2010-09-01
8
964 Views
Last Modified: 2013-11-17
Hi all!

If a Domino server is down and there are missed scheduled agent(s), does the Domino Server run them when the server is started?
For exemple my agent run daily at 3:30 , but today the server was down at this time, the server has been re-started  at 4:04, I notice in my agent's log that it didn't run today.
Is there a special configuration that allow this?

thanks
0
Comment
Question by:Emmanuel Gleizer
  • 3
  • 3
  • 2
8 Comments
 
LVL 22

Accepted Solution

by:
mbonaci earned 500 total points
Comment Utility
There's no such feature (for server down).
This is from Designer help:

Agents that miss their scheduled run
If a scheduled agent is edited (for example, enabled, modified, saved, or pasted), it will usually run immediately if it has missed its scheduled run. This is true for agents scheduled monthly and weekly. It is partially true for agents scheduled daily.

If a agent scheduled to run daily misses its scheduled run because it was disabled, it will run if it is enabled within half an hour of the scheduled run. However, If a scheduled agent is saved, pasted, or modified, it will run immediately if it has missed its schedule.

http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_TRIGGERING_AN_AGENT_ON_A_SCHEDULE_STEPS.html
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Good to know that my agents don't have that problem: I usually have only one, it runs every hour and does only what has to be done, so the once per day stuff is given a 2nd or even a 3rd chance.
0
 
LVL 5

Author Closing Comment

by:Emmanuel Gleizer
Comment Utility
Thanks for the workaround of saving the agent, the main problem is to remember that after downtime we should "Scan" All Dbs for scheduled Agents and run them manually.
Too bad that there isn't a sh sched missed.
sjef: Some of my agents import data from files, some connect by FTP to get update from 1/3 partner, some consolidate stats, some generate hugh reports, I can't shedule them every hours! Even if my case the  "quand c'est pas l'heure c'est plus l'heure" adage is wrong (I mean I can run them later).
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Of course you can start agents every hour!
1. My agent starts, opens a profile document, checks what has to be done this time, runs the chores it has to do at that time, updates the profile document with the current date/time for this function, and ends.
2. I hope you know there are ways to start only a small agent and then you can load all other functions dynamically, in runtime.
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 22

Expert Comment

by:mbonaci
Comment Utility
If you're familiar with LotusScript, you can develop a new agent that will:

 - run on each of your servers
 - will be triggered by the server startup (trigger: "When server starts" - this option is available from v8, but can be set-up in earlier versions - see bellow)
 - cycle through all server's databases using NotesDbDirectory class
 - get all agents in each db using Agents property in NotesDatabase
 - narrow the agents set to only scheduled agents (Trigger and IsEnabled properties in NotesAgent)
 - check their schedule (using Lotus API code from open source project SuperNTF on OpenNTF.org)
 - compare the last run time against their schedule (LastRun property in NotesAgent)
 - run all of the agents that your code decide needs to run (RunOnServer method in NotesAgent)


How to trigger an agent on server startup before Domino Designer v8:
    http://www-01.ibm.com/support/docview.wss?uid=swg21231728

NotesDbDirectory class:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_NOTESDBDIRECTORY_CLASS.html

Agents property in NotesDatabase:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_AGENTS_PROPERTY.html

LastRun Property in NotesAgent:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.designer.domino.main.doc/H_LASTRUN_PROPERTY_AGENT.html

Trigger property in NotesAgent:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_TRIGGER_PROPERTY_9708_ABOUT.html

IsEnabled property in NotesAgent:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_ISENABLED_PROPERTY.html

SuperNTF:
    http://www.openntf.org/projects/pmt.nsf/ProjectLookup/SuperNTF

RunOnServer method in NotesAgent:
    http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.main.doc/H_RUNONSERVER_METHOD_5924_ABOUT.html
0
 
LVL 46

Expert Comment

by:Sjef Bosman
Comment Utility
Wow!
0
 
LVL 22

Expert Comment

by:mbonaci
Comment Utility
Good stuff, ha :)
0
 
LVL 5

Author Comment

by:Emmanuel Gleizer
Comment Utility
wow! I totally zapped the "When server starts" trigger, thanks!
I love your skeleton! I'm not sure to persuade my boss to get the time to implement this, but I agree with you that we have "all what's needed" to re run automatically the missed scheduled agent!
GREAT POST mbonaci,
Emmanuel Gleizer
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now