Login  
Search All Forums
Dart Home | PowerSNMP for .NET | Custom Development Reply | PowerSNMP for .NET Topics | Forums   
AuthorForum: PowerSNMP for .NET
Topic: Not all agents are receiving the request message
orlando.campos
orlando_forever1@hotmail.com

From: cochabamba, Bolivia
Posts: 2
Member Since: 07/12/10
posted August 19, 2010 6:56 PM

I instantiated 50 Agents with differents IP Addresses (Devices) using the port 161. All these agents are using the "Authentication Private" credentials for SNMPv3.

I have problems when I send GetMessage requests from another application (My Dart Manager Application). In this second application I send a GetMessage for each Agent

created (in this case for 50 Agents). The problem is that not all Agents are receiving the message (only the first 25 agents have received the GetMessage request).


- This Agent Application, is running from a VIRTUAL MACHINE (Windows Server 2003 x64).
- The Dart Manager Application is running in other VIRTUAL MACHINE (Windows Server 2003 x64) within the same network.


Side: Dart Agent
================

//This method is invoked for each instantiated Agent.

public void Start(AgentMessageReceived OnRequestMessageReceived, string localAddress, int localPort)
{
     dartAgent.LocalEndPoint = new IPEndPoint(IPAddress.Parse(localAddress), localPort);
        dartAgent.Start(OnRequestMessageReceived, null);
    }


private void OnRequestMessageReceived(Agent agent, RequestMessage requestMessage, object state)
    {
      StreamWriter sw = new StreamWriter(@"c:\RequestedMessage.txt", true);
      sw.WriteLine(DateTime.Now.Minute + ":" + DateTime.Now.Second + ":" + DateTime.Now.Millisecond + " - " + requestMessage.ToString() + " - AgentIP: " +

agent.LocalEndPoint.Address);
      sw.Close();
    }

//As you can see, I'm writing in a file the request message received for the Agent.


Side: Dart Manager
==================

To verify that all GetMessage requests have been sent from the "Dart Manager application" I used the "WireShark" application to capture all UDP packets that were sent to

the 50 Agents. For this reason I'm sure that all GetMessage requests were successfully sent.

I use a foreach to request the messages. I'm iterating the 50 IP addresses (one by one). In this case one IP Address by started Agent.

_________

Anyone can help me?
Do you know what I need to do to solve this problem?

For any doubt just let me know.
K M Drake



From: Utica, NY USA
Posts: 3406
Member Since: 07/14/00
posted August 20, 2010 9:33 AM

Hi,
I just tried a similar test and it worked fine for me.

It sounds like your target machine has a default 25 worker thread limit.
You should be able to increase your application limit by using the System.Threading.ThreadPool.SetMaxThreads function.

Hope it helps,
-ken
orlando.campos
orlando_forever1@hotmail.com

From: cochabamba, Bolivia
Posts: 2
Member Since: 07/12/10
posted August 20, 2010 4:29 PM

Thanks I will try using that function over the Agent application.

Regards,
Orlando
Reply | PowerSNMP for .NET Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX