User Tools

Site Tools


sysadmin:abilitare_snmp_in_esxi

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.

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

Manuale

ESXi 5 free

Dall'interfaccia SSH:

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

Riferimento

ESXi 4 free

Editare /etc/vmware/snmp.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>

e quindi /sbin/services.sh restart

sysadmin/abilitare_snmp_in_esxi.txt · Last modified: 20/12/2021 06:11 by lrosa