SNMP

SNMP (Simple Network Management Protocol) monitors network-attached devices for conditions that warrant administrative attention. TrueNAS uses Net-SNMP to provide SNMP. To configure SNMP, go to System Settings > Services page, find SNMP, and click the .

ServicesSNMPSCALE

See SNMP Service Screen for setting information.

Port UDP 161 listens for SNMP requests when starting the SNMP service.

Management Information Bases (MIBs)

Available Management Information Bases (MIBs) are located in /usr/local/share/snmp/mibs. This directory contains many files routinely added or removed from the directory.

To check the directory on your system, go to System Settings > Shell to access the TrueNAS CLI and enter storage filesystem listdir path="/usr/local/share/snmp/mibs". For more information, see storage filesystem listdir.

Command Example
storage filesystem listdir path="/usr/local/share/snmp/mibs"
+-----------------+--------------------------------------------+--------------------------------------------+------+-------+-------+-------+-----+-----+---------------+-----------+
| name            | path                                       | realpath                                   | type | size  | mode  | acl   | uid | gid | is_mountpoint | is_ctldir |
+-----------------+--------------------------------------------+--------------------------------------------+------+-------+-------+-------+-----+-----+---------------+-----------+
| TRUENAS-MIB.txt | /usr/local/share/snmp/mibs/TRUENAS-MIB.txt | /usr/local/share/snmp/mibs/TRUENAS-MIB.txt | FILE | 11137 | 33188 | false | 0   | 0   | false         | false     |
+-----------------+--------------------------------------------+--------------------------------------------+------+-------+-------+-------+-----+-----+---------------+-----------+

To read the MIB file, download a copy to a shared dataset. Enter storage filesystem get path="/usr/local/share/snmp/mibs/FILENAME.ext" > PATH/FILENAME.ext, where FILENAME.ext is the MIB file and PATH is the path to a dataset with a share configured (SMB, NFD, or iSCSI). For more information, see storage filesystem get.

Command Example
storage filesystem get path="/usr/local/share/snmp/mibs/TRUENAS-MIB.txt" > /mnt/tank/test/TRUENAS-MIB.txt
[0%] ...
[100%] ...
[100%] Job output (0 bytes) saved at '/mnt/tank/test/TRUENAS-MIB.txt'

Log in to the share to access the copy.