윈도우 snmpwalk 설치 - windou snmpwalk seolchi

주요 콘텐츠로 건너뛰기

이 브라우저는 더 이상 지원되지 않습니다.

최신 기능, 보안 업데이트, 기술 지원을 이용하려면 Microsoft Edge로 업그레이드하세요.

Windows 10 또는 Windows 11 SNMP 및 WMI SNMP 공급자 기능을 설치할 수 없습니다.

  • 아티클
  • 10/12/2022
  • 읽는 데 2분 걸림

이 문서의 내용

이 문서에서는 Windows 10 또는 Windows 11 SNMP(Simple Network Management Protocol) 및 WMI(Windows Management Instrumentation) SNMP 공급자 기능을 설치하는 해결 방법을 제공합니다.

SNMP 및 WMI SNMP 공급자 기능을 설치할 때 오류 발생

다음과 같이 배포 이미지 서비스 및 관리(DISM.exe) 도구를 사용하여 Windows 10 또는 Windows 11 SNMP 및 WMI SNMP 공급자 기능을 설치하려고 합니다.

dism /online /enable-feature /featureName:SNMP /featureName:WMISnmpProvider

그런 다음 다음, 다음과 같은 오류 메시지가 표시됩니다.

오류: 0x800f080c
기능 이름 SNMP를 알 수 없습니다.
기능 이름 WMISnmpProvider를 알 수 없습니다.
Windows 기능 이름이 인식되지 않았습니다.
/Get-Features 옵션을 사용하여 이미지에서 기능의 이름을 찾고 명령을 다시 시도합니다.

중요

이 문제는 SNMP 및 WMI SNMP 공급자 기능이 더 이상 사용되지 않으므로 발생합니다.

이 문제를 해결하려면 다음 방법 중 하나를 사용하십시오.

설정 페이지에서 SNMP 및 WMI SNMP 공급자 기능 설치

  1. 시작으로 이동하여 설정>앱을 선택합니다.
  2. 앱 & 기능에서 선택적 기능>기능 추가를 선택합니다.
    • SNMP 기능을 설치하려면 SNMP(Simple Network Management Protocol)>설치를 선택합니다.
    • WMI SNMP 공급자 기능을 설치하려면 WMI SNMP 공급자>설치를 선택합니다.

설치 상태를 확인하려면 선택적 기능 기록 보기를 선택합니다.

Windows PowerShell 사용하여 SNMP 및 WMI SNMP 공급자 기능 설치

  1. 관리자 권한으로 Windows PowerShell 시작합니다.

  2. 다음 Add-WindowsCapability cmdlet을 실행하여 SNMP 및 WMI SNMP 공급자 기능을 설치합니다.

    Add-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
    
    Add-WindowsCapability -Online -Name "WMI-SNMP-Provider.Client~~~~0.0.1.0"
    

설치 상태를 확인하려면 다음 Get-WindowsCapability cmdlet을 실행합니다.

Get-WindowsCapability -Online -Name "SNMP.Client~~~~0.0.1.0"
Get-WindowsCapability -Online -Name "WMI-SNMP-Provider.Client~~~~0.0.1.0"

이러한 기능이 올바르게 설치되면 상태가 설치 됩니다.

:cry: NMS 프로그램 만드는 중인데요
리눅스에서는 별다른 설정 없이 컴파일 해서 커뮤니티 설정하고 올리니까 잘나왔는데요

C:\usr\bin>snmpwalk -v 2c -c public [AgentIp] UCD
UCD-SNMP-MIB::ssCpuUser.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuSystem.0 = INTEGER: 0
UCD-SNMP-MIB::ssCpuIdle.0 = INTEGER: 99
UCD-SNMP-MIB::ssCpuRawUser.0 = Counter32: 75419
UCD-SNMP-MIB::ssCpuRawNice.0 = Counter32: 2176
UCD-SNMP-MIB::ssCpuRawSystem.0 = Counter32: 193221
UCD-SNMP-MIB::ssCpuRawIdle.0 = Counter32: 201275026

윈도우에서 설치 프로그램을 통해서 깔고
C:\usr\bin>snmpwalk -v 2c -c public localhost UCD

C:\usr\bin>snmpget -v 2c -c public localhost ssCpuRawUser
UCD-SNMP-MIB::ssCpuRawUser = No Such Object available on this agent at this OID

하면 cpu, memory, disk 정보 아무것도 안나옵니다 :cry:

더설정해주어야 할게 있나요 :?: :?: :?:
흑 ~ 살려주세요 ㅜ,ㅜ;;;;

C:\Documents and Settings\Administrator>snmpd -f -L
NET-SNMP version 5.2.1.2
지정된 경로를 찾을 수 없습니다.
지정된 경로를 찾을 수 없습니다.
그리고 데몬 창은 UCD snmpwalk 검색하면 이런 경고가 뜹니다.

=============== snmpd.conf 파일입니다.
# sec.name source community
com2sec local localhost public
com2sec mynetwork default public

# sec.model sec.name
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
group MyROGroup v1 mynetwork
group MyROGroup v2c mynetwork
group MyROGroup usm mynetwork

# incl/excl subtree mask
view all included .1 80

# context sec.model sec.level match read write notif
access MyROGroup "" any noauth exact all none none
access MyRWGroup "" any noauth exact all all none

syslocation Right here, right now.
syscontact Me <>

# Make sure there are no more than 4 ntalkds running, but 0 is ok too.
proc ntalkd 4

# Make sure at least one sendmail, but less than or equal to 10 are running.
proc sendmail 10 1

# a simple hello world
exec echotest /bin/echo hello world

#disk D:\ 10000 윈도우에선 어떻게 경로를줘야할지 몰라서 주석처리 했습니다. ㅡㅡ;;;

# Check for loads:
load 12 14 14

Digital communication appears instantly and seamless to us today, but many complex processes happen in the background.

One such process that plays a big role in digital communications is the Simple Network Management Protocol or SNMP for short. This is an application layer protocol defined by the Internet Architecture Board to enable seamless communication between devices connected in the same network. It is also a part of the TCP/IP protocol established by the Internet Engineering Task Force.

From an implementation standpoint, SNMP is the standard protocol used by IP-based devices to communicate with each other on the Internet and at the same time, it’s used to gather metrics that provide deep insights into the health and performance of these devices.

Many organizations and tools rely heavily on SNMP to provide the pertinent data that will help with fault and vulnerability detection and the resultant root-cause analysis. It is also used to evaluate the performance of network devices such as routers, firewalls, printers, switches, and other wireless access points and devices that are SNMP-enabled.

A key advantage with SNMP is that you can automate it to provide the information you want from the network devices using a process called SNMPwalk. This is a simple way to automate the process of gathering specific information from your routers, switches, and other SNMP-enabled network devices. Since it replaces a bunch of GETNEXT requests, you can save time and effort in gathering the information you want. You can even view the OID parameters and set up the required thresholds against each of these values.

Let’s now delve deeper into the SNMPwalk process and commands, along with some real-world examples that you can use in Windows and Linux operating systems.

What is SNMPwalk?

SNMPwalk is the automated process of collecting metrics from your SNMP-enabled devices. It groups together different commands, so you don’t have to send multiple GETNEXT commands to see the available OID parameters or to set threshold values against them.

Typically, this SNMPwalk command is issued to the root node, so the required information can be gathered from every node.

Setting up a SNMPwalk

Setting up a SNMPwalk will automate the process of data collection, and can be divided into three steps.

Step 1: Load the MIB Files

Before we go into the loading process, let’s touch briefly on what MIB and OID are.

Management Information Base, or MIB, is a collection of information about the different devices and these are organized hierarchically. OIDs or Object Identifiers, as the name suggests, help us to identify a specific SNMP-enabled object on a network. These OIDs are also structured and follow a hierarchical pattern.

Now let’s link the two concepts. Every device has an OID for specific information such as status, availability, etc. In other words, device A can have three OIDs, one for status, availability, and performance respectively.

MIB is a database or a collection of OIDs that make it easy to find what you want. Every device has its MIB table and possibly many OIDs within it. A key role of the MIB table is to create the human-readable form of an OID. For example, if the OID is 1.3.8.4, the MIB helps you to understand that this means a particular device is available.

So, your SNMP agent must navigate to the OID and look up its value in the MIB table to give information about the health or performance of a device.

Now that you know what OIDs and MIBs are, make sure to add the MIB files, so you can easily find what you want. Every manufacturer will have specific implementations, so refer to the device manual or contact the manufacturer for the exact process.

While this is not mandatory, it can be easier to run the SNMPwalk when you have the MIB tables in place, especially when you plan to run SNMPwalk manually, without the use of third-party devices.

Step 2: Add and Enable the Host

In the next step, add the host you want to monitor, and enable SNMP monitoring for the same.

If you’re planning to use a tool for SNMP monitoring, navigate to its user interface where you should be able to add the host with its IP, so you can enable SNMP monitoring for it. You may also have to add the port and the SNMP version, so keep this information handy.

Finally, test the SNMP connection after setting up the device.

Please note that this is an optional step and may not be required for devices that automatically come enabled with SNMP monitoring.

Step 3: Set up SNMPwalk

Finally, install the SNMPwalk on your device. If you have Windows users, you can download snmpwalk.exe from https://sourceforge.net/projects/net-snmp/files/net-snmp/.

On Linux, the SNMPwalk comes as a package, so you can install it directly. But the exact installation process depends on the Linux version you use.

How to use SNMPwalk?

Now that you have SNMPwalk installed, you can start using it through your command-line interface.

To start, the different options/parameters you can use with this command are listed:

-h Displays the help menu
-H Shows the configuration file directives
-v Specifies the SNMP version
-c Sets the community string
-a Sets the authentication protocol
-A Sets the authentication protocol passphrase
-e Sets the security engine ID
-E Sets the context engine ID
-l Sets the security level
-n Sets the context name
-Os Displays only the last symbolic element of the OID
-u Sets the security name
-v Specifies the SNMP version that must be used
-x Sets the privacy protocol
-X Sets the privacy protocol passphrase
-Z Sets the destination engine boots/time

Using this combination of different parameters you can get the information you want.

Examples of SNMPwalk Commands

Let’s now look at some examples of SNMPwalk commands that you can use in both Windows and Linux.

Examples for Windows

PurposeCommand
Checking the availability of an operating system update using SNMPv1  snmpget -v1 -c [Community string] [IP address] [OID]
Checking the availability of an operating system update using SNMPv2  snmpget -v2c -c [Community string] [IP address] [OID]
Using SNMPv3 that requires no authentication/encryption snmpget -v3 -l noAuthNoPriv -u [User name] [IP address] [OID]
Test the connectivity and community string snmpwalk -Os -c public -v 2c [Community String]

Examples for Linux

PurposeCommand
Getting the hostname snmpwalk -v 2c -c public [Community String] sysname
Getting the CPU type snmpwalk -v 2c -c public [Community Strong][OID] |grep -i cpu

As you can see, the big advantage with SNMpwalk is that you don’t have to type multiple GETNEXT commands to get the information you want. So, this saves time and also, helps you to quickly stay on top of the health of your network devices.

A quick tip: When you use MIBs, you can see the specific information you want instead of the data collected from all the object IDs.

Well, if all these sound complicated, you can always opt for third-party tools as they have the capabilities to monitor your OIDs and MIBs from a user-friendly interface.

Let’s briefly look at a few tools to give you an idea.

1. SolarWinds MIB Walk – FREE TRIAL

SolarWinds MIB Walk is a part of the Engineer’s Toolset suite and it displays a complete list of all MIBs and OIDs. And of course, you can search through them or change parameters to zero in on what you want.

Features

Some of the salient features of this tool are:

  • Pulls the value of every OID in the supported MIB
  • Taps into the SolarWinds MIB database that has more than a million unique OIDs to verify the common name
  • Supports network products from multiple vendors
  • Quickly generates a report on the current status of every OID.

The Engineer’s Toolset is priced at $1,585 onwards and there’s a fully functional 14-day free trial.

Download: Click here for a fully functional 14-day-free trial.

윈도우 snmpwalk 설치 - windou snmpwalk seolchi

2. Paessler PRTG

윈도우 snmpwalk 설치 - windou snmpwalk seolchi

PRTG from Paessler is a sensor-based tool that can monitor your SNMP devices and give the information you want from MIBs and OIDs.

Features

Here’s a look at the capabilities of PRTG when it comes to monitoring your SNMP devices.

  • Quick and reliable
  • Compatible with most devices
  • Provides valuable insight into the performance and availability of devices in your network
  • Helps with capacity planning by providing relevant information

The cost depends on the number of objects you want to monitor with the first 100 sensors free. Click here to get started.

Conclusion

SNMPwalk is a handy way to execute multiple GETNEXT commands to get information about your SNMP-enabled devices. You can choose to download SNMP monitoring and run SNMPwalk from your command-line interface or use third-party tools that come with an easy-to-use interface. Either way, you’re sure to save a ton of time and effort, and at the same time, get the information you want to stay on top of the health and performance of all SNMP-enabled devices on your network.

Related Post: Best Wake On Lan Software