Enabling SNMP for a Domino Server on Solaris
To enable SNMP on a Domino server on Solaris, follow the broad steps given below:
- Install the Master SNMP agent on the Domino server
- Configure the Domino SNMP agent to communicate with the Master SNMP agent
- Each of these steps has been discussed in great detail below.
On Solaris platform, the Domino SNMP Agent uses the SMUX protocol, per RFC 1227, to communicate with the system's Master SNMP Agent. The Solaris Master SNMP Agent does not support the SMUX protocol, making it necessary to substitute a Master SNMP Agent that does. On Solaris platforms, Domino includes a suitable NET-SNMP Master Agent, called NET-SNMPD, already configured to support the SMUX protocol and the Domino SNMP Agent.
Before using NET-SNMPD, disable any existing Master SNMP Agent. Please follow the steps below for disabling an existing Master SNMP Agent running on Solaris.
- Log in as root.
- Stop the SNMPDX daemon by typing, /etc/rc3.d/S76snmpdx stop.
- Disable the SNMPDX daemon by issuing the command, mv /etc/rc3.d/S76snmpdx /etc/rc3.d/s76snmpdx.
To use the NET-SNMPD that is provided with Domino, do the following:
- Login as the root user.
- Next, install the NET-SNMPD files. Enter this command, changing the Domino executable path if necessary: cp /opt/lotus/notes/latest/sunspa/net-snmpd* /etc
Arrange for NET-SNMPD to be restarted after a reboot. Enter these commands:
- ln -f -s /etc/net-snmpd.sh /etc/init.d/net-snmpd
- ln -f -s /etc/init.d/net-snmpd /etc/rc2.d/S76net-snmpd
- ln -f -s /etc/init.d/net-snmpd /etc/rc1.d/K76net-snmpd
- After installation, proceed to configure and start NET-SNMPD. Here is how:
- Udate the /etc/net-snmpd.conf file with appropriate community names for your remote management infrastructure. Community names are set using the rocommunity and rwcommunity directives. For instance, to set a community named nppublic, the command would be: Set rocommunity value to nppublic
- To manually start NET-SNMPD, login as the root user and issue the command, /etc/net-snmpd.sh start. To stop NET-SNMPD, use this command: /etc/net-snmpd.sh stop
The Domino SNMP Agent configuration on Solaris involves the following:
- Configuring the LNSNMP agent to work with the Master SNMP Agent that is provided with Domino
- Completing the configuration by starting the add-in tasks
Before attempting to configure the Domino SNMP agent, ensure the following:
- The Solaris Master SNMP Agent provided with Domino should be properly installed and configured on the server. Refer to the steps discussed in Installing and Configuring the Master SNMP Agent on the Domino Server for the procedure.
- TCP/IP and SNMP should be properly installed and configured on the server. Ensure that the Domino executable and the Domino data directories are in your search path.
- The Domino SNMP Agent is set up to run automatically. Once the Domino SNMP Agent is configured, it is virtually always running, even when Domino is not. If you later upgrade Domino, stop the LNSNMP process, before beginning the upgrade process.
To configure the LNSNMP agent, do the following:
- Login as the root-user.
- Stop the LNSNMP process. Enter this command: lnsnmp.sh stop
- Stop the NET-SNMP Master Agent by entering this command: /etc/net-snmpd.sh stop
- Start the NET-SNMP Master Agent by entering this command: /etc/net-snmpd.sh start
- Start the LNSNMP process using the command, lnsnmp.sh start
- Create a link to the LNSNMP script. Enter this command, changing the Domino executable path if necessary: ln -f -s /opt/lotus/notes/latest/sunspa/lnsnmp.sh /etc/init.d/lnsnmp
Arrange for LNSNMP to be restarted after a reboot. Enter these commands:
- ln -f -s /etc/init.d/lnsnmp /etc/rc2.d/S77lnsnmp
- ln -f -s /etc/init.d/lnsnmp /etc/rc1.d/K77lnsnmp
After configuring the LNSNMP agent, start the Domino server add-in tasks such as the QuerySet, Event Interceptor, and Statistic Collector tasks. To achieve this, do the following:
- To support SNMP queries, start the QuerySet add-in task. Enter this command on the Domino Server console: load quryset
- To support SNMP traps for Domino events, start the Event Interceptor add-in task. Enter this command on the Domino Server console: load intrcpt
- To support Domino statistic threshold traps, start the Statistic Collector add-in task. Enter this command on the Domino Server console: load collect
Arrange for the add-in tasks to be restarted automatically when Domino is next restarted. Add quryset and/or intrcpt and collect to the ServerTasks variable in Domino’s notes.ini file.