User Tools

Site Tools


sysadmin:abilitare_snmp_in_esxi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

sysadmin:abilitare_snmp_in_esxi [11/06/2017 07:09] – external edit 127.0.0.1sysadmin:abilitare_snmp_in_esxi [20/12/2021 06:11] (current) – [ESXi 4 free] lrosa
Line 1: Line 1:
 +====== Abilitare SNMP in ESXi ======
 +
 +=====ESXi 5.1+=====
 +  esxcli system snmp set --communities public
 +  esxcli system snmp set --enable true
 +
 +
 +=====ESXi con licenza=====
 +Via VMware vSphere Command-Line Interface.
 +<code>vicfg-snmp.pl --server hostname --username username --password password -c public --enable</code>
 +[[http://pubs.vmware.com/vsphere-50/index.jsp#com.vmware.vsphere.monitoring.doc_50/GUID-24F04690-CAF9-45DD-ACB6-3F361B312828.html|Manuale]]
 +
 +=====ESXi 5 free=====
 +Dall'interfaccia SSH:
 +<code bash>
 +esxcli system snmp set --communities public
 +esxcli system snmp set --targets 1.2.3.4@161/public
 +esxcli system snmp set --enable true
 +esxcli system snmp test
 +</code>
 +[[http://blogs.vmware.com/vsphere/2012/11/configuring-snmp-v1v2cv3-using-esxcli-5-1.html|Riferimento]]
 +
 +=====ESXi 4 free=====
 +Editare ''/etc/vmware/snmp.xml''
 +<code xml>
 +<?xml version="1.0" encoding="ISO-8859-1"?>
 +<config><snmpSettings><enable>true</enable><port>161</port><syscontact></syscontact><syslocation></syslocation>
 +<EnvEventSource>indications</EnvEventSource><communities>public</communities><targets>10.0.1.254@161 public</targets>
 +<engineid>00000063000000a10a00010a</engineid><loglevel>info</loglevel><authProtocol></authProtocol><privProtocol></privProtocol>
 +</snmpSettings> </config>
 +</code>
 +
 +e quindi ''/sbin/services.sh restart''
 +