Microsoft

SNMP on Microsoft Windows

Reading Time: 2 minutes

Last Edited: 2/28/2022

On Windows use windows services (services.exe) to set a few items.

Examples:

Example: to get the windows hostname

SnmpGet.exe -q -r:192.168.0.50 -c:"public" -o:.1.3.6.1.2.1.1.5.0
mswin-01

Just a quick note: An OID is an “Object Identifier” and as much as you might want to use the same OID for all hardware for some very simple reasons. Let’s take the example of a simple router. You get very familiar with it. Then you add a new interface. Now the items in your list has to change to reflect the additional object.

This method also keeps the system flexiable so that you can use it across all objects. A MIB or Management Information Base file for a device can describe the basic “oid”s so that you can discover which OIDs are used.

Example: In this example we “walk” through a windows host.

snmpwalk  -r:192.168.0.50 -c:"public"
SnmpWalk v1.01 - Copyright (C) 2009 SnmpSoft Company
[ More useful network tools on http://www.snmpsoft.com ]

OID=.1.3.6.1.2.1.1.1.0, Type=OctetString, Value=Hardware: Intel64 Family 6 Model
 58 Stepping 9 AT/AT COMPATIBLE - Software: Windows Version 6.3 (Build 9600 Mult
iprocessor Free)
OID=.1.3.6.1.2.1.1.2.0, Type=OID, Value=1.3.6.1.4.1.311.1.1.3.1.2
OID=.1.3.6.1.2.1.1.3.0, Type=TimeTicks, Value=1:11:19.43
OID=.1.3.6.1.2.1.1.4.0, Type=OctetString, Value=

URL References:
http://www.net-snmp.org/
https://ezfive.com/snmpsoft-tools/snmp-get/
https://ezfive.com/snmpsoft-tools/snmp-walk/
https://oidref.com/1.3.6.1.4.1.311

Related posts

Microsoft SCCM – What is it. Is it right for me? What can I do with it.

Tom Hamilton

Create WMI filter for GPO

user

Windows Certificate of Authority

user