Why would session.sendconsolecommand time out?

I have a scheduled agent that polls disk space on other servers in the same domain. Here's the problem snippet of code;

' Get our drive information from the server
Print "Polling " + docserver.Abbreviated
response = session.Sendconsolecommand(doc.server(0), "Show stat disk")

It polls all of the servers in the domain, but when it does the command on the server where the agent is running, I get the error;

AMgr: Agent ('OSMonitor' in 'administration/OSMonitor.nsf') error message: Notes error:
The connection has timed out. (Agent Manager0x332E)

I could understand if the problem was when it was polling a different server, but am mystified as to why it would time out on the server where it's running.

It's not every time. It does sometimes run successfully, but it seems to fail about 75% of the time.

I think I have it solved. Before I send the command, I do this;

If dbserver.Canonical = docserver.Canonical Then server = "" Else server = docserver.Abbreviated

Then I use "Server" for the console command.

My theory is that if you enter the server name, it will force it to make a network connection. Using a blank might not as that it assumes the command should go to the local server and not involve a network connection. (Now why the server's network card doesn't respond all the time is a different matter. We have a really complex network around here and it often times out.)

Ran once so far. Looks good....