I need to get a display (printed into the log would be fine) of all the agents that run on two servers. One of these servers would act as our DR server in case of a disaster. We need to ensure that this server essentially runs all of the agents, or at least the major ones. I know that I can type tell amgr schedule into the console to display the agents that are scheduled to run from that point forward to the end of that day. I tried to make a program document, but I must be doing something wrong.
Any ideas?
Thanks,
Pam
Subject: How to get list displayed of all scheduled agents on a server
Subject: How to get list displayed of all scheduled agents on a server
Server console command “Tell Amgr Schedule” for that day only and prints to log.nsf
For your program document you need to do one that does this console command. You need to create a program document something like this:
nserver -c “tell amgr schedule”
The nserver -c runs a console command, just the same as if you are typing it in at the console.
You can then harvest the results from the log.nsf Miscellaneous events page.
Scheduled agents and event driven agents are normally scheduled to run on a particular server. Be very careful about setting to run on “Any server” as the agents will then potentially run on both servers and replication conflicts could result if the agents are updating documents.
Also bear in mind that if you change an agent (to change the server it runs on, for example) certain types of agent then behave as if they are running for the first time and (depending on how they were written) can re-process documents already processed.
Subject: RE: How to get list displayed of all scheduled agents on a server
Thanks Melissa, that worked great!