Im trying to shave seconds off an agent. Runs on many thousands of databases.
For each db it checks for the OutOfOffice agent.
Set OutOfOfficeAgent = MailDB.GetAgent(OfficeCheck)
This line is relatively slow. Is there any other way to see if an agent is there and is enabled?
Subject: No, but here’s a different approach…
You could query each mail server’s agent queue for all active OutOfOffice agents. The queue only holds actively scheduled agents, so you don’t have to weed thru the disabled ones.
Send show schedule -agents -xml to the server console (via Lotusscript) and feed the response XML to a NotesSAXParser object, and check for the tag, which holds the agent name. The tag contains the db name, so if the matches the OutOfOffice agent name, then open the db from the tag and do whatever you need to do…
Thomas - IBM
Subject: RE: No, but here’s a different approach…
Any chance anyone has any example code for this? 
edit-----
And Im guessing I don’t have access to the server console =( our boxes are locked down pretty nicely.