Passer au contenu principal
  • Passer des commandes rapidement et facilement
  • Afficher les commandes et suivre l’état de votre expédition
  • Créez et accédez à une liste de vos produits
  • Gérer vos sites, vos produits et vos contacts au niveau des produits Dell EMC à l’aide de la rubrique Gestion des informations de l’entreprise.

Dell OpenManage Server Administrator Version 7.4 User's Guide

Configuring The SNMP Agent On Systems Running Supported VMware ESX 4.X Operating Systems To Proxy VMware MIBs

The ESX 4.X server can be managed through a single default port 162 using the SNMP protocol. To do this, snmpd is configured to use the default port 162 and vmwarehostd is configured to use a different (unused) port, for example, 167. Any SNMP request on the VMware MIB branch is rerouted to the vmware-hostd using the proxy feature of the snmpd daemon.

The VMWware SNMP configuration file can be modified manually on the ESX server or by running the VMware Remote Command-Line Interface (RCLI) command, vicfg-snmp, from a remote system (Windows or Linux). The RCLI tools can be downloaded from the VMware website at vmware.com/download/vi/drivers_tools.html.

To configure the SNMP agent:

  1. Edit the VMware SNMP configuration file, /etc/vmware/snmp.xml, either manually or run the following vicfg-snmp commands to modify the SNMP configuration settings. This includes the SNMP listening port, community string, and the trap target ipaddress/port, and trap community name and then enable the VMware SNMP service.
    1. vicfg-snmp.pl --server <ESX_IP_addr> --username root --password <password> -c <community name> -p X –t <Destination_IP_Address> @162/ <community name>

      Where represents an unused port. To find an unused port, check the /etc/services file for the port assignment for defined system services. Also, to make sure that the port selected is not currently being used by any application or service, run the following command on the ESX server: netstat –a command
      • NOTE: Multiple IP addresses can be entered using a comma-separated list.

      To enable VMWare SNMP service, run the following command:

    2. vicfg-snmp.pl --server <ESX_IP_addr> --username root --password <password> - E

      To view the configuration settings, run the following command:

    3. vicfg-snmp.pl --server <ESX_IP_addr> --username root --password <password> -s

      The following is an example of the configuration file, after modification:

      <?xml version="1.0">

      <config>

      <snmpSettings>

      <enable> true </enable>

      <communities> public </communities>

      <targets> 143.166.152.248@162/public </targets>

      <port> 167 </port>

      </snmpSettings>

      </config>

  2. Stop the SNMP service if it is already running on your system by entering the following command: service snmpd stop
  3. Add the following line at the end of the /etc/snmp/snmpd.conf file: proxy -v 1 -c public udp:127.0.0.1:X .1.3.6.1.4.1.6876

    Where X represents the unused port specified above, while configuring SNMP.

  4. Configure the trap destination using the following command: <Destination_IP_Address> <community_name>

    The trapsink specification is required to send traps defined in the proprietary MIBs.

  5. Restart the mgmt-vmware service with the following command: service mgmt-vmware restart
  6. Restart the snmpd service with the following command: service snmpd start
    • NOTE: If the srvadmin is installed and the services are already started, restart the services as they depend on the snmpd service.
  7. Run the following command so that the snmpd daemon starts on every reboot: chkconfig snmpd on
  8. Run the following command to ensure that the SNMP ports are open before sending traps to the management station: esxcfg-firewall -e snmpd .

Évaluez ce contenu

Précis
Utile
Facile à comprendre
Avez-vous trouvé cet article utile ?
0/3000 characters
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez attribuer une note (1 à 5 étoiles).
  Veuillez indiquer si l’article a été utile ou non.
  Les commentaires ne doivent pas contenir les caractères spéciaux : <>()\