Snmp and Windows 2000

Andreas Ericsson ae at op5.se
Thu May 26 23:53:45 CEST 2005


Torleiv Ringer wrote:
> I just found that one version of snmpwalk does work against Win2k,
> another does not. Are you using snmpwalk on a linux box?
> 
> NET-SNMP version: 5.1.2 -- Doesn't work
> UCD-snmp version: 4.2.3 -- Does work
> 

snmpwalk has a command argument to let it parse non-linear variables 
without warning (an RFC violation, but it's sort of expected with M$). 
Try setting it and you should be able to walk it with net-snmp as well.

> I use this command as a check:
> snmpwalk 1.2.3.4 public .1.3.6
> (replace 1.2.3.4 with the IP of the Win2k box)
> 
> I never rely on snmpwalk for functionality checks of Windows boxes. I
> had to import some third party OIDs to get WinXP to behave properly. 
> 
> snmpget should always work though, if you know the OID. I have some
> basic OIDs:
> 
> WinXP (with third party extensions):
> eth0in .1.3.6.1.2.1.2.2.1.10.65539
> eth0out .1.3.6.1.2.1.2.2.1.16.65539
> memAvailReal .1.3.6.1.4.1.311.1.1.3.1.1.1.2.0
> memCommit .1.3.6.1.4.1.311.1.1.3.1.1.1.3.0
> cpuProc .1.3.6.1.4.1.311.1.1.3.1.1.2.1.3.1.48
> cpuUser .1.3.6.1.4.1.311.1.1.3.1.1.2.1.4.1.48
> cpuPriv .1.3.6.1.4.1.311.1.1.3.1.1.2.1.5.1.48
> sysCalls .1.3.6.1.4.1.311.1.1.3.1.1.9.8.0
> context .1.3.6.1.4.1.311.1.1.3.1.1.9.7.0
> exceptions .1.3.6.1.4.1.311.1.1.3.1.1.9.15.0
> 
> Win2k Server:
> eth0in .1.3.6.1.2.1.2.2.1.10.16777219
> eth0out .1.3.6.1.2.1.2.2.1.16.16777219
> 
> On Thu, 2005-05-26 at 17:05 -0400, Edward Ford wrote:
> 
>>I get timed out on both commands. I restarted the snmp service on the server
>>and still got the same message. I can ping the server. Is there a service
>>associated with snmp on Linux that I have to start?
>>
>>Thanks;
>>Eddie
>>
>>
>>-----Original Message-----
>>From: nagios-users-admin at lists.sourceforge.net
>>[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Adams, Russell
>>L.
>>Sent: Thursday, May 26, 2005 3:46 PM
>>To: Nagios-users at lists.sourceforge.net
>>Subject: Re: [Nagios-users] Snmp and Windows 2000
>>
>>Try:
>>
>>snmpwalk -c public 192.168.0.4
>>
>>and
>>
>>snmpget -c public 192.168.0.4 sysDescr.0
>>
>>and see what it returns.
>>
>>The word "system" at the end of the command may have been
>>misinterpreted as part of a MIB entry.
>>
>>Russell
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by Yahoo.
> Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
> Search APIs Find out how you can build Yahoo! directly into your own
> Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list