VMware ESXI SNMP v3 Setup

A bit of bat script to set snmp v3 on your ESXI cluster

set PATH=%PATH%;C:\Program Files (x86)\VMware\esxcli\

set VCASERVER=vca.example.com
set VCAUSERNAME=VCENTERUSERNAME
set VCENTERPASSWORD=VCENTERPASSWORD
set VCENTERFINGERPRINT=EE:EE:FF:FF:FF:EE:EE:FF:FF:FF:EE:EE:FF:FF:FF:EE:EE:FF:FF:FF

REM Replace "-d" with your ssl finger print

set ESX=esxcli.exe -s %VCASERVER% -u %VCAUSERNAME% -p %VCENTERPASSWORD% -d %VCENTERFINGERPRINT%

%ESX% -h VMWAREHOSTNAME system snmp set --enable true

%ESX% -h VMWAREHOSTNAME system snmp set --communities yourv2communityifyouwanttosetit
%ESX% -h VMWAREHOSTNAME system snmp set --authentication SHA1
%ESX% -h VMWAREHOSTNAME system snmp set --privacy AES128
%ESX% -h VMWAREHOSTNAME system snmp set --users fausnmp/AUTHHASH/PRIVACYHASH/security
REM note you must create the authhash and privacy hash, I lost this line but will add it at somepoint.

Posted in How-To-Guides
izmir escort
ataşehir escort maltepe escort kartal escort kadıköy escort pendik escort escort bayan pendik escort bostancı escort kartal escort kadıköy escort ataşehir escort