Install "SNMP Server" on Windows 10 and Ubuntu 18.04

1. Windows 10 Pro

Run powershell as Administrator

Add-WindowsCapability -Online -Name “SNMP.Client~~~~0.0.1.0”
Get-WindowsCapability -Online -Name “SNMP*”

Set Windows SNMP Trap Events

evntwin

Powershell commands to monitor windows. (Use “| ConvertTo-Json”)

CPU

Get-WmiObject Win32_Processor

Memory

Get-WmiObject win32_physicalmemory
Get-WmiObject win32_physicalmemory | Format-Table Manufacturer,Banklabel,Configuredclockspeed,Devicelocator,Capacity,Serialnumber -autosize

Disk

wmic diskdrive get

2. Ubuntu 18.04

Creating docker container

docker run -p 161:161/udp -v f:/gohome:/gohome -it --name snmp ubuntu bash

Update repository

sed -i s#archive\.ubuntu\.com#mirror.kakao.com#g /etc/apt/sources.list
apt update && apt install -y vim net-tools inetutils-ping telnet curl git

Install packages snmpd

apt install -y snmpd snmp
---
vi /etc/snmp/snmpd.conf
agentAddress udp:161
comments powered by Disqus