Top
ETERNUS SF Express V16.3 / Storage Cruiser V16.3 / AdvancedCopy Manager V16.3 Installation and Setup Guide
FUJITSU Storage

4.3.3 SNMP Trap Setting

Set SNMP Trap to receive SNMP Traps on the Management Server.

4.3.3.1 SNMP Trap Setting (for Windows)

Management Server SNMP Trap settings differs from when monitoring devices only with SNMPv1 protocol in either of the following cases:

Configure according to the operating environment.

When Monitoring Devices Using Only SNMPv1 Protocol

Install a Windows standard SNMP Trap receiver service (SNMP Trap).
This service is included in the install media of OS.

When Monitoring Devices Using Only SNMPv3 Protocol or When Monitoring Devices Using SNMPv1 Protocol and SNMPv3 Protocol

When Other Applications (Systemwalker Centric Manager, ServerView Resource Orchestrator, etc.) Using SNMP Traps Do Not Coexist
  1. Take the following steps to stop Storage Cruiser's manager.

    1. Open the Services screen.

      For Windows Server 2012, click Control Panel > System and Security > Administrative Tools > Services.

      For a Windows environment other than listed above, click Control Panel > Administrative Tools > Services.

    2. Select "ETERNUS SF Manager Tomcat Service" to click Stop.

  2. Execute the following command from the command prompt and install the ETERNUS SF SNMP Trap Service. $INS_DIR is "Program Directory" specified at the ETERNUS SF Manager installation.

    > powershell -ExecutionPolicy Unrestricted $INS_DIR\ESC\Manager\opt\FJSVssmgr\sbin\swsttctr.ps1 -install
  3. Take the following steps to start ETERNUS SF SNMP Trap Service.

    1. Open the Services screen.

    2. Select "ETERNUS SF SNMP Trap Service" to click Start.

  4. Take the following steps to start Storage Cruiser's manager.

    1. Open the Services screen.

    2. Select "ETERNUS SF Manager Tomcat Service" to click Start.

When Other Applications (Systemwalker Centric Manager, ServerView Resource Orchestrator, etc.) Using SNMP Traps Coexist

Note

If other applications using SNMP Traps coexist, use only IPv4 address for IP address of managed devices.

If IPv6 address is included in the IP addresses of managed devices, ETERNUS SF Manager cannot coexist with other applications using SNMP Traps.

  1. Take the following steps to stop Storage Cruiser's manager.

    1. Open the Services screen.

      For Windows Server 2012, click Control Panel > System and Security > Administrative Tools > Services.

      For a Windows environment other than listed above, click Control Panel > Administrative Tools > Services.

    2. Select "ETERNUS SF Manager Tomcat Service" to click Stop.

  2. Execute the following command from the command prompt and install the ETERNUS SF SNMP Trap Service. $INS_DIR is "Program Directory" specified at the ETERNUS SF Manager installation.

    > powershell -ExecutionPolicy Unrestricted $INS_DIR\ESC\Manager\opt\FJSVssmgr\sbin\swsttctr.ps1 -install
  3. Refer to "Appendix J Installation and Configuration of SNMP Trap Transfer Program" to install the SNMP Trap transfer program.

4.3.3.2 SNMP Trap Setting (for Linux)

The SNMP Trap settings of the Management Server differ depending on the IP address of devices or the protocol used for fault monitoring. Perform a configuration according to the operating environment by referring to the following table.

IP Address of Managed Device

Protocol to Be Used with Device Fault Monitoring

SNMP Trap Settings

IPv4 address only

SNMPv1 only

Refer to "When Using OS-standard SNMP Trap Monitoring Daemon".

IPv4 address only

SNMPv3 only, or SNMPv1 and SNMPv3

Refer to "When Using ETERNUS SF SNMP Trap Monitoring Daemon".

IPv4 address and IPv6 address

When Using OS-standard SNMP Trap Monitoring Daemon

Customize the snmptrapd configuration file that is in the OS-standard net-snmp package to receive SNMP Trap in Management Server.

For Red Hat Enterprise Linux 7

Execute the following commands.

# systemctl enable snmptrapd.service
# systemctl start snmptrapd.service
For Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6

Execute the following command and check whether snmptrapd is activated.

# chkconfig --list snmptrapd
snmptrapd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

If snmptrapd is not activated, execute the following command to activate it.

# chkconfig --add snmptrapd
# chkconfig snmptrapd on

Point

The snmptrapd file is located at /etc/snmp/snmptrapd.conf, but the file /usr/share/snmp/snmptrapd.conf is also used in some other products.
Check the settings in both files to ensure they are correct for the sake of coexistence with other products.

Check Access Control Settings

Check the status of the access control settings.
If the following setting is not in snmptrapd.conf, access control is enabled:

disableAuthorization yes

Note

  • Check the status of access control settings for both /etc/snmp/snmptrapd.conf and /usr/share/snmp/snmptrapd.conf.

  • If there are no requests from other products, set the above "disableAuthorization yes" in /etc/snmp/snmptrapd.conf to disable access control.

SNMP Trap Reception Settings (If Access Control Is Disabled)

Add the following setting to /etc/snmp/snmptrapd.conf:

forward default unix:/var/opt/FJSVssmgr/trap_socket
SNMP Trap Reception Settings (If Access Control Is Enabled)

Add the following setting:

authCommunity net public
authCommunity net SANMA
forward default unix:/var/opt/FJSVssmgr/trap_socket

Note

  • Check both /etc/snmp/snmptrapd.conf and /usr/share/snmp/snmptrapd.conf, and edit the snmptrapd.conf in which authCommunity has been set by other products. If it is not set in either file, edit /etc/snmp/snmptrapd.conf.

  • If a device with an SNMP Trap community name other than "public" or "SANMA" is to be monitored, add an authCommunity setting.
    For example, if a device to be monitored has the community name "common", set this parameter as below. Note that the "public" and "SANMA" settings are mandatory.

    authCommunity net public
    authCommunity net SANMA
    authCommunity net common
    forward default unix:/var/opt/FJSVssmgr/trap_socket
  • If authCommunity log or authCommunity execute has already been set by another product, add a comma and "net".
    For example, if authCommunity execute public is already set, set it as follows:

    authCommunity execute,net public
    authCommunity net SANMA
    forward default unix:/var/opt/FJSVssmgr/trap_socket
Reflect Configuration File

After having changed the snmptrapd.conf, execute the following commands to restart snmptrapd:
The changed content is reflected to the SNMP Trap configuration.

For Red Hat Enterprise Linux 7

Execute the following command.

# systemctl restart snmptrapd.service
For Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6

Execute the following commands.

# /etc/init.d/snmptrapd stop
# /etc/init.d/snmptrapd start

Point

In an environment using ServerView trap transfer program, restart the snmptrapd daemon and the trpsrvd daemon.

Note

If ServerView AlarmService or any other application that uses snmptrapd has been installed, uninstalled, or had its settings changed after snmptrapd.conf has been customized, check that these procedures have not changed the customized content of snmptrapd.conf.

See

Refer to "snmptrapd.conf Configuration File" in the ETERNUS SF Storage Cruiser Operation Guide for information on the snmptrapd.conf file.

When Using ETERNUS SF SNMP Trap Monitoring Daemon

Immediately after installing ETERNUS SF Manager, the system is set to use the OS-standard SNMP Trap monitoring daemon. For this reason, change from the snmptrapd that contains the OS-standard net-snmp package using the following procedure:

  1. Execute the following command to stop ETERNUS SF Manager.

    # /opt/FJSVesfcm/bin/stopesf.sh
  2. If the OS-standard SNMP Trap daemon (snmptrapd of net-snmp package) has started, execute the following steps to stop it.

    For Red Hat Enterprise Linux 7, execute the following command:

    # systemctl stop snmptrapd.service

    For Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6, execute the following command:

    # /etc/init.d/snmptrapd stop
  3. Make the settings of the OS-standard SNMP Trap daemon.

    Make the following settings depending on the version of the installed ETERNUS SF Manager program.

    • For Red Hat Enterprise Linux 7:
      If the OS-standard SNMP Trap daemon has automatically started when the system started, execute the following command to stop automatic start.

      # systemctl disable snmptrapd.service
    • For Red Hat Enterprise Linux 6:
      If the OS-standard SNMP Trap daemon has automatically started when the system started, execute the following command to stop automatic start.

      # chkconfig snmptrapd off
      # chkconfig --list snmptrapd
    • For Red Hat Enterprise Linux 5:
      The settings are performed automatically when installing the package. No special setting is necessary.

  4. Perform an installation and configuration of the SNMP Trap daemon package.

    1. Installation of package

      Install the FJSVswstt-XXXX.rpm package in /opt/FJSVssmgr/etc/pkg.

      # rpm -i /opt/FJSVssmgr/etc/pkg/FJSVswstt-XXXX.rpm

      XXXX part of the package file is depending on the platform of the system.

      Red Hat Enterprise Linux 6 and Red Hat Enterprise Linux 7 are as shown below:

      # rpm -i /opt/FJSVssmgr/etc/pkg/FJSVswstt-V13.7.0-1.x86_64.rpm
    2. Configuration of automatic startup

      This procedure is only performed for Red Hat Enterprise Linux 7. Execute the following commands to configure the automatic startup of the SNMP Trap daemon.

      # cp -p /opt/FJSVssmgr/etc/pkg/startsc-snmptrapd.service /usr/lib/systemd/system
      # systemctl enable startsc-snmptrapd.service
    3. Start the OS-standard SNMP Trap daemon

      This procedure is only performed for Red Hat Enterprise Linux 5. Execute the following command to restart the OS-standard SNMP Trap daemon.

      # /etc/init.d/snmptrapd restart
  5. Execute the following command to start ETERNUS SF Manager.

    # /opt/FJSVesfcm/bin/startesf.sh

Note

It can be mixed with the following products on the same server if monitoring the IPv6 address device:

  • Systemwalker Centric Manager Management Server (V13.6.0 or later)

  • Systemwalker Centric Manager Section control server (V13.6.0 or later)

Uninstalling the above products may stop the SNMP Trap daemon. Execute the following when the above products have been uninstalled from the mixed environment.

  1. Execute the following command and confirm that nwsnmp-trapd is running.

    • For Red Hat Enterprise Linux 7

      # systemctl status startsc-snmptrapd.service
    • For Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6

      # ps -ef | grep nwsnmp-trapd
  2. If nwsnmp-trapd is not running, restart the system or execute the following command.

    • For Red Hat Enterprise Linux 7

      # systemctl start startsc-snmptrapd.service
    • For Red Hat Enterprise Linux 5 or Red Hat Enterprise Linux 6

      # /opt/FJSVswstt/bin/mpnm-trapd stop
      # /opt/FJSVswstt/bin/mpnm-trapd start

Installation of SELinux Policy Module for SNMP Trap Daemon

For environments in which SELinux is set to "Enforcing", apply the policy module, according to the following procedure.
If Red Hat Enterprise Linux 7, default is SELinux = Enforcing.
By performing this procedure, the SELinux policy module for the snmptrapd daemon or the nwsnmp-trapd daemon is automatically installed, and event notifications can be received depending on the SNMP Trap.

Note

Check that other products have changed the policy setting for snmptrapd daemon or nwsnmp-trapd daemon before applying the policy of this product to snmptrapd daemon or nwsnmp-trapd daemon. Customize the policy settings if necessary.
If the policy is not set correctly, snmptrapd daemon or nwsnmp-trapd daemon may not work.

4.3.3.3 SNMP Trap Setting (for Solaris)

There are no specific settings for receiving the SNMP Trap in Management Server.

Note

This software can be used in the mixed environment with the following software. When uninstalled, the SNMP Trap monitoring daemon may be stopped.

  • Systemwalker Centric Manager Management Server

  • Systemwalker Centric Manager Section control server

  • Systemwalker Network Assist

  • Systemwalker Network Topology Manager

When above software is uninstalled in the mixed environment, execute the following commands:

  1. Check whether nwsnmp-trapd is running by executing the following command.

    # /bin/ps -ef | grep nwsnmp-trapd
  2. If nwsnmp-trapd is not running, reboot the system or execute the following commands.

    # /opt/FJSVswstt/bin/mpnm-trapd stop
    # /opt/FJSVswstt/bin/mpnm-trapd start