On 11/08/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> If I use clientaddr from my polling server and do an snmpget or snmpwalk and
> specify TCP:192.168.1.1:1161 it will create a TCP packet and put
> 192.168.1.1 in the source IP address and 1161 in the TCP port field.
It's slightly ambiguous as to exactly what you mean by that.
AIUI, the command
snmpget --clientaddr 192.168.1.2 :6616 tcp:192.168.1.3:1161 someOID
should send an SNMP GET request (using a TCP packet) with source IP
192.168.1.2 (port 6616), and destination IP 192.168.1.3 (port 1161).
The response should use the same IP and port addresses, but in the
reverse order obviously.
Of course, this only works if the originating system does have an
interface with that IP address - you can't use 'clientaddr' to send
messages from an address you're not actually using!
OK?
Dave
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders