![background image](/i/tripp-lite/128520/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032/h/tripp-lite-b094-008-2e-m-f-b096-048-b096-016-b094-008-2e-v-b096-032-229.png)
229
Chapter 15: Advanced Configuration
15.5.4 /etc/config/snmpd.conf
The
net-snmpd
is an extensible SNMP which includes built-in support for a wide range of MIB information modules, and can
be extended using dynamically loaded modules, external scripts and commands.
snmpd
when enabled should run with a
default configuration. Its behavior can be customized via the options in
/etc/config/snmpd.conf.
Note
: If the SNMP Service is enabled through the Web Based Management Console this configuration file will be overidden
and you will lose any customization.
Changing standard system information such as system contact, name and location can be achieved by editing
/etc/config/snmpd.conf
file and locating the following lines:
sysdescr
"tripplite"
syscontact
root <root@localhost>(configure /etc/default/snmpd.conf)
sysname
Not defined (edit /etc/default/snmpd.conf)
syslocation
Not defined (edit /etc/default/snmpd.conf)
Simply change the values of
sysdescr
,
syscontact
,
sysname
and
syslocation
to the desired settings and restart
snmpd
.
The
snmpd.conf
provides is extremely powerful and too flexible to completely cover here. The configuration file itself is
commented extensively and good documentation is available at the net-
snmp
website http://www.net-snmp.org, specifically:
Man Page:
http://www.net-snmp.org/docs/man/snmpd.conf.html
FAQ
: http://www.net-snmp.org/docs/FAQ.html
Net-SNMPD Tutorial:
http://www.net-snmp.org/tutorial/tutorial-5/demon/snmpd.html
15.5.5 Adding multiple remote SNMP managers
You can add multiple SNMP servers for alert traps add the first and second SNMP servers using the Management Console
(refer Chapter 7) or the command line
config
tool. Further SNMP servers must be added manually using
config
.
Log in to the Console Server’s command line shell as root or an admin user. Refer back to the Management Console UI or
user documentation for descriptions of each field.
To set the SNMP Manager Address field:
config –set="config.system.snmp.address3=w.x.y.z"
.. replacing w.x.y.z with the IP address or DNS name.
To set the Manager Trap Port field
config --set=”config.system.snmp.trapport3=162”
.. replacing 162 with the TCP/UDP port number
To set the SNMP Manager Protocol field:
config --set="config.system.snmp.protocol3=UDP" or
config --set="config.system.snmp.protocol3=TCP"
To set the SNMP Manager Version field:
config --set="config.system.snmp.version3=3"
To set the SNMP Manager v1 & v2c community field:
config --set="config.system.snmp.community3=public"
To set the SNMP Manager v3 Engine ID field:
config –set="config.system.snmp.engineid3=0x8000000001020304"
.. replacing 0x8000000001020304 with the hex Engine-ID
To set the SNMP Manager v3 Security Level field:
config --set="config.system.snmp.seclevel3=noAuthNoPriv" or
config --set="config.system.snmp.seclevel3=authNoPriv" or
config --set="config.system.snmp.seclevel3=authPriv"
To set the SNMP Manager v3 Username field:
config --set="config.system.snmp.username3=username"