Пятница, 16.11.2018, 21:05
Приветствую Вас Гость | RSS
Мой сайт
Форма входа

Меню сайта

Категории раздела
Об ОС Windows [137]
В категории размещаются статьи, касающщиеся операционных систем от Microsoft.
Об ОС *Nix [198]
В данной категории собраны статьи об ОС семейства Unix/Linux/FreeBSD/...
Справочные материалы [351]
Справка по всему разделу.
Виртуализация и Облака [46]
Networks & Routing [86]
DataBases [22]

Наш опрос
Оцените мой сайт
Всего ответов: 198


Онлайн всего: 1
Гостей: 1
Пользователей: 0

Главная » Статьи » Системное администрирование » Об ОС *Nix

Configuring SNMP Traps in ESXi/ESX (1008065)

Configuring SNMP Traps in ESXi/ESX (1008065)


To generate virtual machine and environmental traps from ESXi/ESX 3.5, 4.x, and ESXi 5.x hosts, you must configure and enable the embedded SNMP agent. You cannot use the Net-SNMP-based agent to generate these traps, although it can receive GET transactions and generate other types of traps.

This represents a change in behavior from ESX 3.0.x, in which the configuration file for the Net-SNMP-based agent controlled the generation of virtual machine traps. For more information, see Configuring SNMP on an ESX 3.0.x host (1008186).

In ESXi 5.1, SNMP is configured using esxcli rather than vicfg-snmp. In addition, you have the option to configure SNMP v3 traps and informs as well as the SNMP v1 and v2c traps available with previous versions of ESXi.

For instructions on:


Run the vicfg-snmp.pl command from the Remote CLI or vSphere CLI to enable the SNMP agent and configure trap destinations. Each time you specify a target with the vicfg-snmp.pl command, the settings you specify overwrite all previously specified settings. To specify multiple targets, specify them in a single command, separated by commas.

To enable and configure SNMP traps:

  1. Navigate to the directory where vicfg-snmp.pl is stored. By default, vicfg-snmp.pl is located in:

    C:\Program Files\VMware\VMware vSphere CLI\bin

  2. Run this command:

    vicfg-snmp.pl --server hostname --username username --password password --show

    Note: Run the vicfg-snmp.pl --help command for a full list of options.

  3. Specify the communities and trap targets with this command:

    vicfg-snmp.pl --server hostname --username username --password password -t hostname@port -c community

    Note: In ESX 3.5, you may need to use vicfg-snmp.pl --server hostname --username username --password password -t hostname@port/community.

    Example: To send SNMP traps from the host host.example.com to port 162 on target.example.com, using the public community, use this command:

    vicfg-snmp.pl --server host.example.com --username root --password password -t target.example.com@162 -c public

    For ESXi 5.0:

    vicfg-snmp.pl --server host.example.com --username root --password password -t target.example.com@162/community

    Note: To prevent clear text display of the user password, remove the --password password portion. You are then prompted to enter the password, and the entry is hidden.

  4. To enable the SNMP service, run this command:

    vicfg-snmp.pl --server hostname --username username --password password --enable

    Note: To verify SNMP settings, run this command:

    vicfg-snmp.pl --server hostname --username username --password password --show

  5. (Optional) To send a test trap to verify that the agent is configured correctly, run this command:

    vicfg-snmp.pl --server hostname --username username --password password --test

    The test trap generated is a warmStart trap.
Note: Changes to the SNMP configuration are stored on the ESXi/ESX host in /etc/vmware/snmp.xml. The ESX/ESXi SNMP agent log messages are saved in /var/log/syslog.log.

For more information, see:

Additional Information

For translated versions of this article, see:

Update History

11/26/2012 - Revised article to indicate that this procedure does not apply to ESXi 5.1, and added links to ESXi 5.1 documentation for this task. 10/20/2011 - Added under notes: For ESX 3.5, use the Remote CLI. For ESX 4.x and ESX 5.0 10/20/2011 - For ESX 5.0, snmp firewall port 161 is open by default, for more information see, vSphere 5 Documentation Center 10/20/2011 - Added note to run this procedure using vSphere CLI in ESX 4.x and ESXi 5.0 10/28/2011 - Added .pl to multiple entries 02/01/2012 - Added links to download vSphere CLI 04/16/2012 - Add full command to step 2. 09/20/2012 - Added string for ESXi 5.x in step 3. 09/10/2013 - Added log locations for SNMP configuration changes and agent logs.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.


Источник: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1008065
Категория: Об ОС *Nix | Добавил: admin (17.09.2015)
Просмотров: 676 | Теги: VMware, snmp, vSphere | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *:

Друзья сайта
  • Официальный блог
  • Сообщество uCoz
  • FAQ по системе
  • Инструкции для uCoz

  • Copyright MyCorp © 2018