SNMP Setup: Difference between revisions
Appearance
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 |
||
| Line 1: | Line 1: | ||
=== macOS === | === 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> | </syntaxhighlight> | ||
Revision as of 15:00, 16 January 2023
macOS
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>