Now I have installed net-snmp 5.4 binaries in my system & registered the
services. I have chosen "With Windows Extension DLL support" while
installing.
Here I had post the contents of my registeragent.bat file
@echo off
set cmdline="D:\usr\bin\snmpd.exe" -register
set additionaloptions= -Lf "D:/usr/log/snmpd.log"
-I-udp,udpTable,tcp,tcpTable,icmp,ip,interfaces,system_mib,sysORTable
echo Registering snmpd as a service using the following additional options:
echo .
echo %additionaloptions%
echo .
%cmdline% %additionaloptions%
echo .
echo For information on running snmpd.exe and snmptrapd.exe as a Windows
echo service, see 'How to Register the Net-SNMP Agent and Trap Daemon as
echo Windows services' in README.win32.
echo .
pause
Now also hrSystemUptime giving me the wrong result.Please tell me, where the
problem exists??
Thanks in Advance
-Malar
On Tue, Oct 27, 2009 at 6:04 PM, Bart Van Assche
<bart.vanass...@gmail.com>wrote:
> On Tue, Oct 27, 2009 at 1:11 PM, malar vizhi <malar...@gmail.com> wrote:
> > On Tue, Oct 27, 2009 at 5:03 PM, Bart Van Assche <
> bart.vanass...@gmail.com> wrote:
> >>
> >> On Tue, Oct 27, 2009 at 6:18 AM, malar vizhi <malar...@gmail.com>
> wrote:
> >>>
> >>> hrSystemUptime gives wrong result under Windows box. But its giving
> accurate result under linux box. Why so??.
> >>>
> >>> $ uptime
> >>> 10:48:37 up 1 day, 55 min, 0 users, load average: 0.00, 0.00, 0.00
> >>>
> >>> C:\>snmpget -v 1 -c public localhost .1.3.6.1.2.1.25.1.1.0
> >>> HOST-RESOURCES-MIB::hrSystemUptime.0 = Timeticks: (89727265) 10 days,
> 9:14:32.65
> >>>
> >>> "uptime" command gives a correct uptimeof my windows machine. But the
> snmp gives me totally different value.
> >>
> >> Which implementation of the HOST-RESOURCES-MIB are you using ? The one
> included with Net-SNMP or Microsoft's implementation via WinExtDLL ? If you
> don't know the answer to this question, please post the contents of the
> c:\usr\registeragent.bat file you are using. The variable called
> 'additionaloptions' in this file specifies which of the two
> HOST-RESOURCES-MIB implementations is loaded.
> > I have build the net-snmp source in windows & installed.So there is no
> registeragent.bat file under my c:\usr. I have started the windows snmp
> service.
> >
> > Will it be problem??...should I register the net-snmp service using
> binaries????
>
> hrSystemUptime.0 will be correct if you rebuild Net-SNMP with
> WinExtDLL support and disable the built-in HOST-RESOURCES-MIB during
> startup of Net-SNMP. See also
> http://net-snmp.sourceforge.net/docs/README.win32.html for more
> information.
>
> Bart.
>
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users