Hi Bart, 

 

OS Name:                   Microsoft(R) Windows(R) Server 2003, Enterprise
Edition

OS Version:                5.2.3790 Service Pack 2 Build 3790

OS Manufacturer:           Microsoft Corporation

 

 

Thanks, 

Duy

  _____  

From: [email protected] [mailto:[email protected]] On Behalf
Of Bart Van Assche
Sent: Friday, May 14, 2010 5:58 PM
To: Duy Doan Khuong
Cc: [email protected]
Subject: Re: different between Net-SNMP Agent service and snmpd.exe from
command line

 

Hello Duy,

Thanks for the feedback. On which Windows version have you observed this
behavior ?

Bart.



On Fri, May 14, 2010 at 12:47 PM, Duy Doan Khuong <[email protected]> wrote:

Hi Bart, 

 

I modify as your guide, and now Net-SNMP service works as expected. Thank
you. 

 

 

I have removed ip entry from additionaloptions, and run unregisteragent.bat,
run registeragent.bat, started Net_SNMP, it also works as expected. 

I have stopped Net-SNMP agent, and started build in SNMP service of
Microsofts, the result also is as expected. 

 

I think there is some thing wrong with the way we load ip mib while starting
snmpd. 

 

Thanks, 

Duy

 

 

  _____  

From: [email protected] [mailto:[email protected]] On Behalf
Of Bart Van Assche
Sent: Friday, May 14, 2010 5:37 PM


To: Duy Doan Khuong
Cc: [email protected]
Subject: Re: different between Net-SNMP Agent service and snmpd.exe from
command line

 

Hello Duy,

This means that you have found a bug in one of Microsofts SNMP extension
DLLs. You can switch from the Microsoft implementation of IP-MIB to the
Net-SNMP implementation by modifying the third line of registeragent.bat as
follows:

set additionaloptions= -Lf "C:/usr/log/snmpd.log" -I-winExtDLL

and next to stop the Net-SNMP service, run unregisteragent.bat, run
registeragent.bat and to start the Net-SNMP service again.

Bart.

On Fri, May 14, 2010 at 12:17 PM, Duy Doan Khuong <[email protected]> wrote:

Hi Bart, 

 

I have installed Net-SNMP service with winExtDll support. 

The third line of C:\usr\registeragent.bat on my system: 

 

set additionaloptions= -Lf "C:/usr/log/snmpd.log"
-I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable

 

 

 

Duy

  _____  

From: [email protected] [mailto:[email protected]] On Behalf
Of Bart Van Assche
Sent: Friday, May 14, 2010 4:51 PM
To: Duy Doan Khuong
Cc: [email protected]
Subject: Re: different between Net-SNMP Agent service and snmpd.exe from
command line

 

On Fri, May 14, 2010 at 11:09 AM, Duy Doan Khuong <[email protected]> wrote:
> I'm using Net-snmp 5.5. When I install snmpd service mode (Net-SNMP Agent
service), run netsnmpwalk:
> C:\>netsnmpwalk -v 2c -c public 192.168.98.193 1.3.6.1.2.1.4.20.1.1
> IP-MIB::ipAdEntAddr.0.0.0.0 = IpAddress: 84.73.84.89
> IP-MIB::ipAdEntAddr.10.11.12.193 = IpAddress: 10.11.12.193
> IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.11.12.193
> IP-MIB::ipAdEntAddr.192.168.98.193 = IpAddress: 192.168.98.193
>
> It show wrong IP (84.73.84.89), it must be 0.0.0.0
>  
> I stop net-snmp service, and run snmpd by command line:
> c:\usr\bin>snmpd.exe -a
>
> and run netsnmpwalk:
> C:\>netsnmpwalk -v 2c -c public 192.168.98.193 1.3.6.1.2.1.4.20.1.1
> IP-MIB::ipAdEntAddr.0.0.0.0 = IpAddress: 0.0.0.0
> IP-MIB::ipAdEntAddr.10.11.12.193 = IpAddress: 10.11.12.193
> IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
> IP-MIB::ipAdEntAddr.192.168.98.193 = IpAddress: 192.168.98.193
>
> Now it shows correct IP address.
>
> How can I make the net-snmp service show correct IP address (0.0.0.0) ?

This depends on how the Net-SNMP agent service has been installed. Have you
installed Net-SNMP with or without winExtDLL support ? And what is specified
on the third line of C:\usr\registeragent.bat on your system (the line that
sets the variable additionaloptions) ?

Bart.

 

 

------------------------------------------------------------------------------

_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to