17.3 Enabling SNMP for ESXi to Retrieve Configuration and Traps

This section describes the steps to enable SNMP on an ESXi host for retrieving configuration details and SNMP traps by leveraging the Redfish Server and a guest Operating System.

The following is the list of prerequisites:

  • An ESXi host machine
  • Guest OS installed on ESXi (Linux or Windows)
  • Microchip maxView Storage Manager software
  1. Install the Redfish Server component on your ESXi host machine to enable remote hardware management.
  2. Deploy a guest Operating System (Linux or Windows) on the ESXi host and install the maxView Storage Manager application on the guest OS.
  3. Manage the ESXi Redfish Server. For instructions on managing the ESXi Redfish Server, see the Manually Adding a Remote System section.
    Note:

    The SNMP subagent cannot be installed directly on the ESXi server. Instead, when managing a remote ESXi host, the SNMP subagent running on the virtual machine acts as an SNMP proxy on behalf of the ESXi server.

  4. Set up SNMP notifications and configure SNMP traps on the guest OS.

    For Windows guests, perform the following steps:

    1. Enable and configure SNMP service.
    2. Define the community string (for example, public).
    3. Configure trap destinations (managers) and enable traps.
    4. For detailed steps, that includes configuring Windows Firewall rules for SNMP communication, see Setting Up SNMP Notifications on Windows section.
    For Linux guests, perform the following steps to configure SNMP and enable traps:
    1. Install the required Net-SNMP packages:
      net-snmp
      libsnmp15
      snmp-mibs
    2. Edit the SNMP daemon configuration file /etc/snmp/snmpd.conf:
      1. Comment out the default com2sec line by adding a “#” at the beginning.

        # com2sec notConfigUser default public

      2. Add the following lines at the end of the file:
        rocommunity public
        trapsink localhost
        master agentx
    3. Copy the MIB file aus.mib to the SNMP MIBs directory: cp -rf /usr/StorMan/aus.mib /usr/share/snmp/mibs/
    4. Restart the Tomcat® service used by StorMan.
      service stor_tomcat restart
    5. Restart the SNMP daemon to apply changes:
      service snmpd restart
    6. Start the storage-specific SNMP agent:
      cd /usr/StorMan/
      export MIBS=ALL
      export SNMPCONFPATH=/etc/snmp/snmpd.conf
      ./aus-snmpd

      For more details, see Setting Up SNMP Notifications on Linux.

  5. Use an SNMP management tool (SNMP browser) to access, monitor and retrieve configuration details and traps from the guest OS.