Agent in schedule not in agent list

I have an agent that is showing up in the schedule under administration but when I try to find the agent (under reports.nsf according to the console and the scheduler) it is not listed. This wouldn’t bother me but the console shows that this agent is running. I want to kill the agent because it is impacting the server but the agent is not anywhere to be found. Hidden? Filpped-out?

Subject: Agent in schedule not in agent list

I did not follow you of where you are failing to see the agent. You said the console command that shows hte queue shows it, as well as admin UI? The agent console command looks at the actual queue and shows you what agent manager is using, the admin UI issues the console command under the covers. I did no follow how “the schedule” fits in - it is not used to schedule agents.

You might find helpfun info in “Deconding ND6 agnets” which talks about queues and canceling agents. Link is in the Agent FAQ under #0.

Subject: RE: Agent in schedule not in agent list

This agent runs on the server and is scheduled for every 5 minutes. I’ve read the part about cancelling an agent, but that seems to mean that it has to be running to cancel it. I want to delete the agent completely and to keep it from running every 5 minutes. I have deleted the agent out of the designer, which I assumed would remove it from being scheduled. I had also disabled the agent prior to deleting it. Does this not remove the agent from being scheduled?

Subject: RE: Agent in schedule not in agent list

Canceling an agent means just that one execution of the agent is stopped. It is very different from deleting the agent (removing it form the database) or disabling (mark as an agent that should not be scheduled).

It sounds to me that you don’t want ot cancel the agent,what you want to do is disable it from the designer.

Alternatively you can just delete that design element from Designer.

If you have more than one agent with the same name, you should be able to see it in designer agent list.

Subject: RE: Agent in schedule not in agent list

Yes I do want to delete the agent so I never see it again. I want to remove them from the database. I now have 3 agents that don’t show up in design yet are still being scheduled, and the funny thing is that only one of them are showing up on the schedule list in the administrative console. I do not see the the agents in the designer. I have cleaned out every one of my agents out of every database. The funny thing is I have 2 agents with the same name running out of the same database, according to the “tell amgr schedule” command. Is that possible?

Subject: RE: Agent in schedule not in agent list

I guess I’m wondering if there’s any brute-force way to delete these from the scheduler. They sure do look like remnant threads from things I’ve already deleted. My understanding is that the “tell amgr cancel” command can only work if the agents are running. These are only scheduled and don’t run long enough to do anything with them. Are there debugging commands that would shed any light on this?

Subject: RE: Agent in schedule not in agent list

Deleting an agent should certainly keep it from running. An agent isn’t like a servlet – it has to be loade every time you run it, and that can’t happen if it’s not there. Therefore, I have to suspect that the agent you deleted and the agent that’s still running are not the same agent; perhaps they’re in different replicas or copies of the database.

There’s also some possibility that another agent by the same name exists, and that you do not have reader access to it. To get rid of it in that case, you would have to either find out who does have access to it, and get them to do it, or access the database as a local file with consistent access control turned off, instead of allowing the server to mediate the access.

Subject: RE: Agent in schedule not in agent list

This is strange. I have 2 agents with the same name under the same database- according to the live console. Is this possible? I created them and I deleted them- although they still show up under the “tell amgr schedule” command and the console shows them executing. I have not replicated any databases. If I was the only one creating them how could they get to another database? Also, I created these from the administrative console. The console tells me that they’re running under the reports.nsf database. How can you determine whether they are running under a replica from the console?