Hi,
I need to find all scheduled agents on our servers. I’ve tried the code below ,i’ve tried AgentEz from Ytria , dbDesign from Damian Katz
I finally found that it is not possible to find personal agents (See technote below)
Do you have any other way around?
The LotusScript Agents property (of the NotesDatabase class) does not list all agents in a database. You find that it does not include private agents.
For example, you have a database that contains 20 agents. When you execute the following code it does not list all of the agents. It does not include the private agents.
Dim session As New NotesSession
Dim database As NotesDatabase
Set database = session.CurrentDatabase
Forall a In database.Agents
Print a.Name
End Forall
Content
The LotusScript Agents property is designed to include only the private agents belong to the user on whose authority the code is being executed. Note, that this is true of the Views property as well - it does not include private folders/views. This is true regardless of whether or not the Full Access Adminstration feature is enabled.
Workaround
If you are creating an agent that needs to access private agents, then the owner of those agents must run the agent for it to work.
If a private agent is modified by a Designer or Manager, then they will now become the user associated with that private agent.
Supporting Information
Users with Designer and Manager access will be able to see private agents listed when viewing the design using the Domino Designer client. If a local replica exists, which does not enforce a consistent Access Control List, then any user will be able to view the private agents using the Domino Designer client.