Hello Dave,

I have checked the behavior of snmpget with "-Dall" option:

Here's the result of the snmpget
----------------------------------------------------------------------
# snmpget --version
NET-SNMP version: 5.7.1
...
("clientAddr  :4455" in my snmp.conf)
...
# snmpget -Dall -c public -v2c localhost:4000 ...
...
9:read_config:line: /usr/local/share/snmp/snmp.conf:5 examining: clientAddr
 :4455
trace: read_config(): read_config.c, 943:
read_config:line: /usr/local/share/snmp/snmp.conf:5 examining: clientAddr
 :4455
trace: run_config_handler(): read_config.c, 538:
read_config:parser: Found a parser.  Calling it: clientAddr / :4455
trace: netsnmp_ds_handle_config(): default_store.c, 389:
netsnmp_ds_handle_config: handling clientAddr
trace: netsnmp_ds_handle_config(): default_store.c, 399:
netsnmp_ds_handle_config: setting: token=clientaddr, type=4, id=LIB,
which=14
trace: netsnmp_ds_set_string(): default_store.c, 294:
netsnmp_ds_set_string: Setting LIB:14 = ":4455"
...
netsnmp_sockaddr_in: addr 0xbfa1ddec, inpeername ":4455", default_target
"[NIL]"
trace: netsnmp_sockaddr_in2(): transports/snmpIPv4BaseDomain.c, 121:
netsnmp_sockaddr_in: check user service 4455
trace: netsnmp_sockaddr_in2(): transports/snmpIPv4BaseDomain.c, 180:
netsnmp_sockaddr_in: return { AF_INET, 0.0.0.0:4455 } (**port==4455**)
trace: netsnmp_udpipv4base_transport(): transports/snmpUDPIPv4BaseDomain.c,
156:
netsnmp_udpbase: binding socket: 3
trace: netsnmp_udpipv4base_transport(): transports/snmpUDPIPv4BaseDomain.c,
174:
netsnmp_udpbase: client open UDP: [127.0.0.1]:4000->[0.0.0.0]:52964
(**different port**)
...
----------------------------------------------------------------------

I think configuration path for snmp is OK.
However, the port is not specified.

Do you think I should modify the source code of NET-SNMP?

Best regards,
Shigeru


2012/3/2 GotaGota Engineer <[email protected]>

> Hello Dave,
>
> > When you say "it doesn't work" - what happens?
>
> Please see the attached file "wireshark_snapshot_2012-03-02.PNG".
> The snmpget sent all requests from new ports.
>
> So, I'd like to specify the source port of snmpget.
>
> Best regards,
> Shigeru
>
>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to