SNMP Agent Snmpd.conf File

From Control Solutions IoTServer Documentation
Revision as of 15:57, 22 April 2019 by Jimhogenson (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Snmp agent snmpd conf 1.jpg

The SNMP engine that responds to external SNMP manager's Get and Set requests requires a configuration file named snmpd.conf to direct its functionality, primarily in terms of authorization. This page allows automated generation of that file, but with the option to manually edit it.

The SNMP engine in this IoTServer is the widely used open source Net-SNMP package. If you are concerned about manually editing the snmpd.conf file, simple search the Internet for Net-SNMP documentation - there is much to be found.

Snmp agent snmpd conf 2.jpg

The port on which SNMP listens for Get/Set requests defaults to the standard port 161. You may change it here if you wish.

Snmp agent snmpd conf 3.jpg

All SNMP devices have a set of system parameters that are universally available, and these describe the system. Enter your personalized system information here.

Snmp agent snmpd conf 4.jpg

Authorization for access in SNMPv1 and SNMPv2 is very simply. You only need to match the community names which are treated sort of like a password. If using SNMP v1 or v2 (v2c), enter your community strings here.

Snmp agent snmpd conf 5.jpg

Click the Generate Config button to auto-generate an snmpd.conf file. Parameters included in the file will be taken from two places: (1) The entries showing above on this page. (2) User settings from the System -> Users page (if SNMPv3).

SNMPv3 enforces access only by known users. These users may be a person or may be anther machine, but must be defined as a "user" either way. To permit SNMPv3 access, go to the System -> Users page and create a "user" for each person or machine that will access the MIB in this IoTServer. Once the users are created, and they have been selected for SNMPv3 access, they will be automatically included in the snmpd.conf file generated here.

Snmp agent snmpd conf 6.jpg

Once the interim snmpd.conf file is generated, it may be viewed and optionally edited here. The file content displayed here is not actually saved to a file until you click the Save button at the bottom. When Save is clicked, the file name given will be created or overwritten with the content currently displayed.

There are two more steps required to complete the reconfiguration of SNMP. Go to the SNMP Agent Config File page, select the newly created interim snmpd.conf file, and click the Load button (as discussed on the SNMP Agent Config File page). Finally, after loading the new snmpd.conf file, click Restart SNMP at the bottom of the Config File page.

Snmp agent snmpd conf 7.jpg

When the snmpd.conf file content is saved to an actual file as a result of clicking the Save button, you should see the confirmation illustrated here.