Dart Home | PowerSNMP for ActiveX | Custom Development | Reply | PowerSNMP for ActiveX Topics | Forums |
Author | Forum: PowerSNMP for ActiveX Topic: Connection Error 10054 |
mdnbat From: Singapore, Singapore Posts: 16 Member Since: 05/13/05 |
posted May 17, 2005 7:17 AM Hi, I'm trying to create a simple agent that sends out traps. I used the SnmpTools1.1.exe file. I found that the agent works fine when there is a manager listening in. However, once I stopped the manager, I received connection error 10054 that is caught by the agent_error event handler. The full description of the error is: System.Runtime.InteropServices.COMException (0x800A2746): The virtual circuit was reset by the remote side executing a "hard" or "abortive" close. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host used a "hard close". This error may also result if a connection was broken due to "keep-alive" activity detecting a failure. This error is also be reported under Windows 2000 when a UDP packet is sent to a host with no service open on the specified port. If I try to close it, it will send out the same error again. From then on I will not be able to catch the error until I try to close it again. Is there a way to reset the agent when encountering this error? What is the best way to handle them? Also, is there a way for the agent to know if traps have been sent out successfully or not? |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 17, 2005 8:57 AM Where did you download a file called SnmpTools1.1.exe? We don't have a file by that name on our site. I would advise that you uninstall, then go to our site and get the latest version of the SnmpTool from this page: http://www.dart.com/powertcp/ If you are still having problems after that please let me know. |
mdnbat From: Singapore, Singapore Posts: 16 Member Since: 05/13/05 |
posted May 17, 2005 9:38 PM Sorry, it's supposed to be SnmpTool11.exe. The link was posted in this forum. I just assumed that this would be the latest version. I couldnt get the agent to work on the version I had (kept getting Paramater 2 of method is invalid) and with this version I could. The only problem now is that I'm getting the connection error as explained above. Here is the link that I used by the way: http://www.dart.com/downloads/SnmpTool11.exe |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 17, 2005 9:46 PM That is a legacy version of the product that we longer support. It is just available for older customers who may need it for some reason. Please download the latest version from this page: http://www.dart.com/powertcp/snmp.asp and try again. Make sure you review the Online Help and all of the sample applications, then repost here if you are still having problems. |
mdnbat From: Singapore, Singapore Posts: 16 Member Since: 05/13/05 |
posted May 17, 2005 10:10 PM Hi, I've done the download. It works better now. Thanks. However, it seems that the agent only handles the connection error event just once. The first you send a trap out without the manager opened, you will receive the connection error 10054. Subsequently, this error will no longer be handled no matter if you close and open the agent again. I would like to know if the agent can continuously handle events when it tries to send the trap out but the manager is not there to receive it. I need the agent to know if it has sent out traps successfully or not. |
Tony Priest![]() From: Utica, NY USA Posts: 8466 Member Since: 04/11/00 |
posted May 17, 2005 10:25 PM Technically you should not even be getting the first 10054 error. SNMP is a connectionless protocol, with no system of acknowledgment built in, so you never actually no if the trap was received. That's just the nature of SNMP. As I recall Microsoft introduced something in one of the Windows 2000 service packs that caused a virtual connection error in the case you describe. While I would advise that you handle the error, I would also advise that you do not depend on the fact that you will get. SNMP is not reliable. It is meant a way to quickly and easily request information. |
Reply | PowerSNMP for ActiveX Topics | Forums |
This site is powered by
![]() |