
193
The
snmpd.conf
is extremely powerful and too flexible to cover completely 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.1
Adding More than One SNMP Server
To add more than one SNMP server for alert traps, add the first SNMP server using the
Management Console (refer to Chapter 7) or the command line
config
tool. Secondary and any
further SNMP servers are 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 Manager Protocol field:
config --set config.system.snmp.protocol2=UDP
or
config --set config.system.snmp.protocol2=TCP
To set the Manager Address field:
config --set config.system.snmp.address2=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.trapport2=162
.. replacing 162 with the TCP/UDP port number
To set the Version field:
config --set config.system.snmp.version2=1
or
config --set config.system.snmp.version2=2c
or
config --set config.system.snmp.version2=3
To set the Community field (SNMP version 1 and 2c only):
config --set config.system.snmp.community2=yourcommunityname
.. replacing
yourcommunityname
with the community name