Skip to content

Commit e032db5

Browse files
T3m3zLandrash
authored andcommitted
Added configuration info for more secure SNMPv3 (#1294)
* Added configuration info for more secure SNMPv3 * Add inline code markdown for variable names
1 parent be8ea1a commit e032db5

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

source/_components/device_tracker.snmp.markdown

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,36 @@ OID examples:
2929
- pfSense: `1.3.6.1.2.1.4.22.1.2` (tested on 2.2.4-RELEASE, need to enable SNMP service)
3030
- TPLink: `1.3.6.1.2.1.3.1.1.2.19.1` (Archer VR2600v, need to enable SNMP service)
3131

32-
To use the SNMP platform in your installation, add the following to your `configuration.yaml` file:
32+
To use the SNMP version 1 platform in your installation, add the following to your `configuration.yaml` file:
3333

3434
```yaml
35-
# Example configuration.yaml entry
35+
# Example configuration.yaml entry for SNMP version 1
3636
device_tracker:
3737
- platform: snmp
3838
host: 192.168.1.1
3939
community: public
4040
baseoid: 1.3.6.1.4.1.14988.1.1.1.2.1.1
4141
```
42+
43+
If you want to use encryption, you must enable SNMP version 3 by adding `authkey` and `privkey` variables and enabling SNMP version 3 on your router. Currently only SHA1 is supported for authentication and AES for encryption. Example of SNMPv3 configuration:
44+
45+
```yaml
46+
# Example configuration.yaml entry for SNMP version 3
47+
device_tracker:
48+
- platform: snmp
49+
host: 192.168.1.1
50+
community: username
51+
authkey: authpass
52+
privkey: privpass
53+
baseoid: 1.3.6.1.4.1.14988.1.1.1.2.1.1
54+
```
55+
4256
Configuration variables:
4357

4458
- **host** (*Required*): The IP address of the router, eg. 192.168.1.1.
4559
- **community** (*Required*): The SNMP community which is set for the device. Most devices have a default community set to to `public` with read-only permission (which is sufficient).
4660
- **baseoid** (*Required*): The OID prefix where wireless client registrations can be found, usually vendor specific. It's advised to use the numerical notation. To find this base OID, check vendor documentation or check the MIB file for your device.
61+
- **authkey** (*Inclusive*): Authentication key for SNMPv3. Variable privkey must also be set.
62+
- **privkey** (*Inclusive*): Privacy key SNMPv3. Variable authkey must also be set.
4763

4864
See the [device tracker component page](/components/device_tracker/) for instructions how to configure the people to be tracked.

0 commit comments

Comments
 (0)