I'm using net-snmp library for a snmp manager project.
The problem that I have encountered is the following:
the manager (programmed using the net-snmp library) can send a get message
towards an agent on port udp:161 but can receive the response only on an
assigned fixed port (udp:10001)
How can I (if is possible) to tell the agent to respond on that port?
Is this the use of the parameter local_port of the netsnmp_session struct?
thank you for your answers.
--
Giampiero Torrielli
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
The agent will respond to the same port that the original request was
sent on. So if you want the response to go to port udp:10001 then
the request needs to be sent *from* udp:10001
That's pretty standard for IP-based communication.
It typically goes:
A.B.C.D:port E --> V.W.X.Y:port Z
A.B.C.D:port E <-- V.W.X.Y:port Z
Dave
Ok, it is correct.
But =
my big, big, big problem is:
how can I send a GET message *from* port ud=
p:10001 using net-snmp library?
--
Giampiero.