SNMP Setup: Difference between revisions
Created page with "=== macOS === in Terminal:<syntaxhighlight lang="zsh"> sudo sed -i 's/^rocommunity/rocommunity public 10.1.0.0\/16\n# rocommunity/' /etc/snmp/snmpd.conf </syntaxhighlight>and<..." Tag: visualeditor |
Tag: visualeditor |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
== macOS == | |||
in Terminal:<syntaxhighlight lang="zsh"> | in Terminal:<syntaxhighlight lang="zsh"> | ||
sudo | sudo nano /etc/snmp/snmpd.conf | ||
</syntaxhighlight> | </syntaxhighlight>search (control + w) for "rocommunity". | ||
Change the line<syntaxhighlight lang="zsh"> | |||
rocommunity public default .1.3.6.1.2.1.1.4 | |||
</syntaxhighlight>to<syntaxhighlight lang="zsh"> | |||
# rocommunity public default .1.3.6.1.2.1.1.4 | |||
rocommunity public 10.1.0.0/16 | |||
</syntaxhighlight>save (control + o) | |||
close nano (control + x) | |||
Start the SNMP Daemon<syntaxhighlight lang="zsh"> | |||
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist | sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist | ||
</syntaxhighlight> | |||
== Windows 10 == | |||
You can install SNMP via the '''Settings''' panel. Go to '''Apps''' -> '''Optional features''' -> '''Add an optional feature''' -> '''View features'''. | |||
To install the SNMP service using PowerShell, run the command below:<syntaxhighlight lang="powershell"> | |||
Add-WindowsCapability -Online -Name SNMP.Client~~~~0.0.1.0 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 15:05, 16 January 2023
macOS
[edit]in Terminal:<syntaxhighlight lang="zsh"> sudo nano /etc/snmp/snmpd.conf </syntaxhighlight>search (control + w) for "rocommunity".
Change the line<syntaxhighlight lang="zsh">
rocommunity public default .1.3.6.1.2.1.1.4
</syntaxhighlight>to<syntaxhighlight lang="zsh">
- rocommunity public default .1.3.6.1.2.1.1.4
rocommunity public 10.1.0.0/16 </syntaxhighlight>save (control + o)
close nano (control + x)
Start the SNMP Daemon<syntaxhighlight lang="zsh">
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
</syntaxhighlight>
Windows 10
[edit]You can install SNMP via the Settings panel. Go to Apps -> Optional features -> Add an optional feature -> View features.
To install the SNMP service using PowerShell, run the command below:<syntaxhighlight lang="powershell"> Add-WindowsCapability -Online -Name SNMP.Client~~~~0.0.1.0 </syntaxhighlight>