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