2016-09-21 15:18:39 +02:00
source: Support/SNMP-Configuration-Examples.md
2018-10-27 23:04:34 +01:00
path: blob/master/doc/
2016-09-21 15:18:39 +02:00
# SNMP configuration examples
Table of Content:
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
- [Devices ](#devices )
2019-07-18 21:25:53 -05:00
- [Cisco ](#cisco )
- [Adaptive Security Appliance (ASA) ](#adaptive-security-appliance-asa )
- [IOS / IOS XE ](#ios--ios-xe )
- [NX-OS ](#nx-os )
- [Wireless LAN Controller (WLC) ](#wireless-lan-controller-wlc )
- [HPE 3PAR ](#hpe3par )
- [Inform OS 3.2.x ](#inform-os-32x )
- [Infoblox ](#infoblox )
- [NIOS 7.x+ ](#nios-7x )
- [Juniper ](#juniper )
- [Junos OS ](#junos-os )
- [Mikrotik ](#mikrotik )
- [RouterOS 6.x ](#routeros-6x )
- [Palo Alto ](#palo-alto )
- [PANOS 6.x/7.x ](#panos-6x7x )
2019-09-30 08:03:44 +02:00
- [Ubiquiti ](#ubiquiti )
- [EdgeOs ](#edgeos )
2019-07-18 21:25:53 -05:00
- [VMware ](#vmware )
- [ESX/ESXi 5.x/6.x ](#esxesxi-5x6x )
- [VCenter 6.x ](#vcenter-6x )
2016-09-21 15:18:39 +02:00
- [Operating systems ](#operating-systems )
2019-07-18 21:25:53 -05:00
- [Linux (snmpd v2) ](#linux-snmpd )
- [Linux (snmpd v3) ](#linux-snmpd-v3 )
- [Windows Server 2008 R2 ](#windows-server-2008-r2 )
2020-12-30 09:38:14 -05:00
- [Windows Server 2012 R2 and newer ](#windows-server-2012-r2-and-newer )
2019-07-18 21:25:53 -05:00
- [Mac OSX ](#Mac-OSX )
2016-09-21 15:18:39 +02:00
## Devices
### Cisco
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
#### Adaptive Security Appliance (ASA)
2017-07-13 05:59:42 -05:00
ASDM
2016-09-21 15:18:39 +02:00
1. Launch ASDM and connect to your device
2019-07-18 21:25:53 -05:00
1. Go to Configuration > Management Access > SNMP
1. Add your community string
1. Add in the "SNMP Host Access List" section your LibreNMS server IP address
1. Click Apply and Save
2016-09-21 15:18:39 +02:00
2019-07-18 21:25:53 -05:00
CLI
2017-07-13 05:59:42 -05:00
```
# SNMPv2c
snmp-server community < YOUR-COMMUNITY >
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
snmp-server host < INTERFACE > < LIBRENMS-IP > poll community < YOUR-COMMUNITY > version 2c
# SNMPv3
snmp-server group < GROUP-NAME > v3 priv
snmp-server user < USER-NAME > < GROUP-NAME > v3 auth sha < AUTH-PASSWORD > priv aes 128 < PRIV-PASSWORD >
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
snmp-server host < INTERFACE > < LIBRENMS-IP > poll version 3 < USER-NAME >
```
2019-10-08 20:32:02 -04:00
>Note: If the device is unable to find the SNMP user, reboot the ASA. Once rebooted, continue the steps as normal.
2017-07-13 05:59:42 -05:00
#### IOS / IOS XE
```
# SNMPv2c
2019-10-21 02:47:40 +02:00
2017-07-13 05:59:42 -05:00
snmp-server community < YOUR-COMMUNITY > RO
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
# SNMPv3
snmp-server group < GROUP-NAME > v3 priv
snmp-server user < USER-NAME > < GROUP-NAME > v3 auth sha < AUTH-PASSWORD > priv aes 128 < PRIV-PASSWORD >
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
# Note: The following is also required if using SNMPv3 and you want to populate the FDB table.
2019-10-21 02:47:40 +02:00
snmp-server group < GROUP-NAME > v3 priv context vlan- match prefix
2017-07-13 05:59:42 -05:00
```
2019-10-08 20:32:02 -04:00
>Note: If the device is unable to find the SNMP user, reboot the ASA. Once rebooted, continue the steps as normal.
2017-07-13 05:59:42 -05:00
#### NX-OS
```
# SNMPv2c
snmp-server community < YOUR-COMMUNITY > RO
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
# SNMPv3
2016-09-21 15:18:39 +02:00
2017-07-13 05:59:42 -05:00
snmp-server user < USER-NAME > < GROUP-NAME > v3 auth sha < AUTH-PASSWORD > priv aes 128 < PRIV-PASSWORD >
snmp-server contact < YOUR-CONTACT >
snmp-server location < YOUR-LOCATION >
2016-09-21 15:18:39 +02:00
```
#### Wireless LAN Controller (WLC)
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
1. Access the web admin page and log in
2019-07-18 21:25:53 -05:00
1. If you are running version 8.1 and later, on the new dashboard click "Advanced"
1. Go to management Tab
1. On SNMP sub-menu, select "Communities"
1. Click "New..."
1. Add your community name and leave IP addresses empty
1. Click Apply and Save
2016-09-21 15:18:39 +02:00
2020-03-23 18:41:26 +01:00
### Eaton
#### Network Card-MS
1. Connect to the Web UI of the device
2020-12-30 09:38:14 -05:00
1. Upgrade to the latest available manufacturer firmware which applies to your hardware revision. Refer to the release notes. For devices which can use the Lx releases, *do* install LD.
2020-03-23 18:41:26 +01:00
1. After rebooting the card (safe for connected load), configure Network, System and Access Control. Save config for each step.
1. Configure SNMP. The device defaults to both SNMP v1 and v3 enabled, with default credentials. Disable what you do not need. SNMP v3 works, but uses MD5/DES. You may have to add another section to your SNMP credentials table in LibreNMS. Save.
2016-11-29 23:40:00 +01:00
### HPE 3PAR
2019-07-18 21:25:53 -05:00
2016-11-29 23:40:00 +01:00
#### Inform OS 3.2.x
2019-07-18 21:25:53 -05:00
2016-11-29 23:40:00 +01:00
- Access the CLI
- Add an SNMP Manager with your LibreNMS IP address:
2019-07-18 21:25:53 -05:00
2016-11-29 23:40:00 +01:00
```
addsnmpmgr < librenms ip >
```
2019-07-18 21:25:53 -05:00
2016-11-29 23:40:00 +01:00
- Add your SNMP community:
2019-07-18 21:25:53 -05:00
2016-11-29 23:40:00 +01:00
```
setsnmppw < community >
```
2016-09-21 15:18:39 +02:00
### Infoblox
2019-07-18 21:25:53 -05:00
2017-07-13 05:59:42 -05:00
#### NIOS 7.x+
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
1. Access the web admin page and log in
2019-07-18 21:25:53 -05:00
1. Go to Grid tab > Grid Manager
1. In the right menu select "Grid properties"
1. Select "SNMP" menu
1. Click "Enable SNMPv1/SNMPv2 Queries"
1. Add your community
1. Click Save & Close
2016-09-21 15:18:39 +02:00
### Juniper
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
#### Junos OS
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
for SNMPv1/v2c
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
```
set snmp description description
set snmp location location
set snmp contact contact
set snmp community YOUR-COMMUNITY authorization read-only
```
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
for SNMPv3 (authPriv):
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
```
set snmp v3 usm local-engine user authpriv authentication-sha authentication-password YOUR_AUTH_SECRET
set snmp v3 usm local-engine user authpriv privacy-aes128 privacy-password YOUR_PRIV_SECRET
set snmp v3 vacm security-to-group security-model usm security-name authpriv group mysnmpv3
set snmp v3 vacm access group mysnmpv3 default-context-prefix security-model any security-level authentication read-view mysnmpv3view
2018-03-15 21:51:11 +01:00
set snmp v3 vacm access group mysnmpv3 default-context-prefix security-model any security-level privacy read-view mysnmpv3view
2018-03-15 09:59:31 +01:00
set snmp view mysnmpv3view oid iso include
```
2017-01-27 00:17:53 +02:00
### Mikrotik
2019-07-18 21:25:53 -05:00
2017-01-27 00:17:53 +02:00
#### RouterOS 6.x
2019-07-18 21:25:53 -05:00
2019-12-18 16:10:24 +05:30
CLI SNMP v2 Configuration
2020-06-11 10:07:37 +03:00
2017-01-27 00:17:53 +02:00
```
/snmp community
set [ find default=yes ] read-access=no
2020-06-11 10:07:37 +03:00
add addresses=< ALLOWED-SRC-IPs / NETMASK > name=< COMMUNITY >
2017-01-27 00:17:53 +02:00
/snmp
set contact="< NAME > " enabled=yes engine-id=< ENGINE ID > location="< LOCALTION > "
```
2019-12-18 16:10:24 +05:30
Notes:
2020-06-11 10:07:37 +03:00
2019-12-18 16:10:24 +05:30
* About the snmp community commands:
* The commands change the default snmp community. It is probably possible to create a new one instead.
2020-06-11 10:07:37 +03:00
* < ALLOWED-SRC-IPs / NETMASK > specify the address and host (not network) netmask of the LibreNMS server. Example: 192.168.8.71/32
2019-12-18 16:10:24 +05:30
* trap-version=2 must also be specified if some other trap-version has been set
* trap-interfaces may also be used to limit the interfaces the router listens on
* About the snmp command:
* contact, engine-id and location are optional
* trap-community is probably required if a new snmp community has been created.
2017-01-27 00:17:53 +02:00
2020-06-11 10:07:37 +03:00
CLI SNMP v3 Configuration for *authPriv*
```
/snmp community
add name="< COMMUNITY > " addresses="< ALLOWED-SRC-IPs / NETMASK > "
set "< COMMUNITY > " authentication-password="< AUTH_PASS > " authentication-protocol=MD5
set "< COMMUNITY > " encryption-password="< ENCRYP_PASS > " encryption-protocol=AES
set "< COMMUNITY > " read-access=yes write-access=no security=private
#Disable public SNMP
set public read-access=no write-access=no security=private
/snmp
set contact="< NAME > " enabled=yes engine-id="< ENGINE ID > " location="< LOCALTION > "
```
Notes:
* Use password with length of min 8 chars
Notes for both SNMP v2 and v3
* In some cases of advanced routing one may need to set explicitly the source IP address from which the SNMP daemon will reply - `/snmp set src-address=<SELF_IP_ADDRESS>`
2016-09-21 15:18:39 +02:00
### Palo Alto
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
#### PANOS 6.x/7.x
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
1. Access the web admin page and log in
2019-07-18 21:25:53 -05:00
1. Go to Device tab > Setup
1. Go to the sub-tab "Operations"
1. Click "SNMP Setup"
1. Enter your SNMP community and then click "OK"
1. Click Apply
Note that you need to allow SNMP on the needed interfaces. To do that
you need to create a network "Interface Mgmt" profile for standard
interface and allow SNMP under "Device > Management > Management
Interface Settings" for out of band management interface.
2016-09-21 15:18:39 +02:00
2019-07-18 21:25:53 -05:00
One may also configure SNMP from the command line, which is useful
when you need to configure more than one firewall for SNMP
monitoring. Log into the firewall(s) via ssh, and perform these
commands for basic SNMPv3 configuration:
2016-09-21 15:18:39 +02:00
2018-03-15 21:51:11 +01:00
```
username@devicename > configure
username@devicename # set deviceconfig system service disable-snmp no
username@devicename # set deviceconfig system snmp-setting access-setting version v3 views pa view iso oid 1.3.6.1
username@devicename # set deviceconfig system snmp-setting access-setting version v3 views pa view iso option include
username@devicename # set deviceconfig system snmp-setting access-setting version v3 views pa view iso mask 0xf0
username@devicename # set deviceconfig system snmp-setting access-setting version v3 users authpriv authpwd YOUR_AUTH_SECRET
username@devicename # set deviceconfig system snmp-setting access-setting version v3 users authpriv privpwd YOUR_PRIV_SECRET
username@devicename # set deviceconfig system snmp-setting access-setting version v3 users authpriv view pa
username@devicename # set deviceconfig system snmp-setting snmp-system location "Yourcity, Yourcountry [60.4,5.31]"
username@devicename # set deviceconfig system snmp-setting snmp-system contact noc@your .org
username@devicename # commit
username@devicename # exit
```
2019-09-30 08:03:44 +02:00
### Ubiquiti
#### EdgeOs
If you use the HTTP interface:
1. Access the legacy web admin page and log in
1. Go to System > Advanced Configuration
1. Go to the sub-tab "SNMP" > "Community"
1. Click "Add Community Group"
1. Enter your SNMP community, ip address and click submit
1. Go to System > Summary
1. Go to the sub-tab "Description"
1. Enter your System Name, System Location and System Contact.
1. Click submit
1. Click "Save Configuration"
If you use CLI:
```
username@devicename > enable
username@devicename # configure
username@devicename (Config)# snmp-server community "public" ro
username@devicename (Config)# snmp-server sysname "devicename"
username@devicename (Config)# snmp-server contact "noc@example .com"
username@devicename (Config)# exit
username@devicename # write memory
```
2018-03-15 09:59:31 +01:00
### VMware
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
#### ESX/ESXi 5.x/6.x
2019-07-18 21:25:53 -05:00
Log on to your ESX server by means of ssh. You may have to enable the
ssh service in the GUI first.
2018-03-15 09:59:31 +01:00
From the CLI, execute the following commands:
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
```
esxcli system snmp set --authentication SHA1
esxcli system snmp set --privacy AES128
esxcli system snmp hash --auth-hash YOUR_AUTH_SECRET --priv-hash YOUR_PRIV_SECRET --raw-secret
```
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
This command produces output like this
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
```
Authhash: f3d8982fc28e8d1346c26eee49eb2c4a5950c934
Privhash: 0596ab30b315576a4e9f7d7bde65bf49b749e335
```
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
Now define a SNMPv3 user:
2019-07-18 21:25:53 -05:00
2018-03-15 09:59:31 +01:00
```
2019-10-08 20:32:02 -04:00
esxcli system snmp set --users < username > /f3d8982fc28e8d1346c26eee49eb2c4a5950c934/0596ab30b315576a4e9f7d7bde65bf49b749e335/priv
2018-03-15 09:59:31 +01:00
esxcli system snmp set -L "Yourcity, Yourcountry [60.4,5.3]"
esxcli system snmp set -C noc@your .org
esxcli system snmp set --enable true
```
2016-09-21 15:18:39 +02:00
2020-12-30 09:38:14 -05:00
>Note: In case of snmp timeouts, disable the firewall with `esxcli
2019-07-18 21:25:53 -05:00
>network firewall set --enabled false` If snmp timeouts still occur
>with firewall disabled, migrate VMs if needed and reboot ESXi host.
2018-08-16 12:47:49 -04:00
#### VCenter 6.x
2019-07-18 21:25:53 -05:00
Log on to your ESX server by means of ssh. You may have to enable the
ssh service in the GUI first. From the CLI, execute the following
commands:
2018-08-16 12:47:49 -04:00
```
snmp.set --authentication SHA1
snmp.set --privacy AES128
snmp.hash --auth_hash YOUR_AUTH_SECRET --priv_hash YOUR_PRIV_SECRET --raw_secret true
```
2019-07-18 21:25:53 -05:00
2018-08-16 12:47:49 -04:00
This command produces output like this
2019-07-18 21:25:53 -05:00
2018-08-16 12:47:49 -04:00
```
Privhash: 0596ab30b315576a4e9f7d7bde65bf49b749e335
Authhash: f3d8982fc28e8d1346c26eee49eb2c4a5950c934
```
2019-07-18 21:25:53 -05:00
2018-08-16 12:47:49 -04:00
Now define a SNMPv3 user:
2019-07-18 21:25:53 -05:00
2018-08-16 12:47:49 -04:00
```
snmp.set --users authpriv/f3d8982fc28e8d1346c26eee49eb2c4a5950c934/0596ab30b315576a4e9f7d7bde65bf49b749e335/priv
snmp.enable
```
2016-09-21 15:18:39 +02:00
## Operating systems
2019-07-18 21:25:53 -05:00
2017-02-12 03:12:05 +13:00
### Linux (snmpd v2)
2016-09-21 15:18:39 +02:00
2019-07-18 21:25:53 -05:00
Replace your snmpd.conf file by the example below and edit it with
appropriate community in "RANDOMSTRINGGOESHERE".
2016-09-21 15:18:39 +02:00
```
vi /etc/snmp/snmpd.conf
```
```
# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
com2sec readonly default RANDOMSTRINGGOESHERE
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Rack, Room, Building, City, Country [GPSX,Y]
syscontact Your Name < your @email .address >
#Distro Detection
2020-10-06 07:37:46 -05:00
extend distro /usr/bin/distro
2018-05-09 07:35:25 +08:00
#Hardware Detection (uncomment to enable)
2020-10-06 07:37:46 -05:00
#extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
#extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
#extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
2016-09-21 15:18:39 +02:00
```
2017-02-14 10:51:46 +02:00
2019-07-18 21:25:53 -05:00
**NOTE**: On some systems the snmpd is running as its own user, which
means it can't read `/sys/devices/virtual/dmi/id/product_serial` which
is mode 0400. One solution is to include `@reboot chmod 444
/sys/devices/virtual/dmi/id/product_serial` in the crontab for root or
equivalent.
2017-09-05 10:39:25 +00:00
2020-10-21 17:39:06 -07:00
Non-x86 or SMBIOS-based systems, such as ARM-based Raspberry Pi units should
query device tree locations for this metadata, for example:
```
extend hardware '/bin/cat /sys/firmware/devicetree/base/model'
extend serial '/bin/cat /sys/firmware/devicetree/base/serial-number'
```
2016-09-21 15:18:39 +02:00
The LibreNMS server include a copy of this example here:
```
/opt/librenms/snmpd.conf.example
```
2016-10-21 08:21:11 +02:00
The binary /usr/bin/distro must be copied from the original source repository:
```
curl -o /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro
chmod +x /usr/bin/distro
```
2017-02-12 03:12:05 +13:00
### Linux (snmpd v3)
Go to /etc/snmp/snmpd.conf
2019-07-18 21:25:53 -05:00
Open the file in vi or nano /etc/snmp/snmpd.conf and add the following
line to create SNMPV3 User (replace username and passwords with your
own):
2017-02-12 03:12:05 +13:00
```
2020-10-28 01:50:23 +01:00
createUser authPrivUser SHA "authPassword" AES "privPassword"
2017-02-12 03:12:05 +13:00
```
2019-07-18 21:25:53 -05:00
Make sure the agent listens to all interfaces by adding the following
line inside snmpd.conf:
2017-02-12 03:12:05 +13:00
```
agentAddress udp:161,udp6:[::1]:161
```
2019-07-18 21:25:53 -05:00
This line simply means listen to connections across all interfaces
IPv4 and IPv6 respectively
2017-02-12 03:12:05 +13:00
2019-07-18 21:25:53 -05:00
Uncomment and change the following line to give read access to the
username created above (rouser is what LibreNMS uses) :
2017-02-12 03:12:05 +13:00
```
#rouser authPrivUser priv
```
Change the following details inside snmpd.conf
```
syslocation Rack, Room, Building, City, Country [GPSX,Y]
syscontact Your Name < your @email .address >
```
Save and exit the file
2019-07-18 21:25:53 -05:00
#### Restart the snmpd service
2016-09-21 15:18:39 +02:00
##### CentOS 6 / Red hat 6
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
```
service snmpd restart
```
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
##### CentOS 7 / Red hat 7
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
```
systemctl restart snmpd
```
2019-07-18 21:25:53 -05:00
2019-10-08 20:32:02 -04:00
Add SNMP to Firewalld
```
firewall-cmd --zone=public --permanent --add-service=snmp
firewall-cmd --reload
```
2016-09-21 15:18:39 +02:00
##### Ubuntu
2019-07-18 21:25:53 -05:00
2016-09-21 15:18:39 +02:00
```
service snmpd restart
```
2016-09-21 21:00:56 +02:00
### Windows Server 2008 R2
2019-07-18 21:25:53 -05:00
2016-09-21 21:00:56 +02:00
1. Log in to your Windows Server 2008 R2
2019-07-18 21:25:53 -05:00
1. Start "Server Manager" under "Administrative Tools"
1. Click "Features" and then click "Add Feature"
1. Check (if not checked) "SNMP Service", click "Next" until "Install"
1. Start "Services" under "Administrative Tools"
1. Edit "SNMP Service" properties
1. Go to the security tab
1. In "Accepted community name" click "Add" to add your community string and permission
1. In "Accept SNMP packets from these hosts" click "Add" and add your
LibreNMS server IP address
1. Validate change by clicking "Apply"
2016-09-21 21:00:56 +02:00
2020-12-30 09:38:14 -05:00
### Windows Server 2012 R2 and newer
2019-07-18 21:25:53 -05:00
2020-12-30 09:38:14 -05:00
#### GUI
1. Log in to your Windows Server 2012 R2 or newer
2019-07-18 21:25:53 -05:00
1. Start "Server Manager" under "Administrative Tools"
1. Click "Manage" and then "Add Roles and Features"
1. Continue by pressing "Next" to the "Features" menu
1. Install (if not installed) "SNMP Service"
1. Start "Services" under "Administrative Tools"
1. Edit "SNMP Service" properties
1. Go to the security tab
1. In "Accepted community name" click "Add" to add your community string and permission
1. In "Accept SNMP packets from these hosts" click "Add" and add your
LibreNMS server IP address
1. Validate change by clicking "Apply"
2017-11-19 12:50:55 -06:00
2020-12-30 09:38:14 -05:00
#### PowerShell
The following example will install SNMP, set the Librenms IP and set a read only community string.
Replace `$IP` and `$communitystring` with your values.
```Powershell
Install-WindowsFeature -Name 'SNMP-Service','RSAT-SNMP'
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\SNMP\Parameters\PermittedManagers" -Name 2 -Value $IP
New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\services\SNMP\Parameters\ValidCommunities" -Name $communitystring -Value 4
```
2020-01-01 15:43:56 -05:00
>Note: SNMPv3 can be supported on Windows platforms with the use of Net-SNMP.
2019-10-08 20:32:02 -04:00
2017-11-19 12:50:55 -06:00
### Mac OSX
2019-07-18 21:25:53 -05:00
2017-11-19 12:50:55 -06:00
Step 1: ```sudo nano /etc/snmp/snmpd.conf` ``
2019-07-18 21:25:53 -05:00
2017-11-19 12:50:55 -06:00
```bash
#Allow read-access with the following SNMP Community String:
rocommunity public
# all other settings are optional but recommended.
# Location of the device
syslocation data centre A
# Human Contact for the device
syscontact SysAdmin
# System Name of the device
sysName SystemName
# the system OID for this device. This is optional but recommended,
# to identify this as a MAC OS system.
sysobjectid 1.3.6.1.4.1.8072.3.2.16
```
2019-07-18 21:25:53 -05:00
Step 2:
``` bash
2017-11-19 12:50:55 -06:00
sudo launchctl load -w /System/Library/LaunchDaemons/org.net-snmp.snmpd.plist
```