Hello Guys,
In this post I will show you how to configure and enable SNMPv3 traps in VMware vSphere 6.7 or later.
First Step: Get the MAC Address on ESXi Host:
Command:
esxcfg-info | grep "Mac Address"
Result:
LoadOemStrings: SMBIOS OEM String at 5 failed: Unable to get node: Sysinfo error: FailureSee VMkernel log for details.
|----Mac Address.....................................00:25:b5:22:a1:02
|----Mac Address.....................................00:50:56:67:32:7c
|----Mac Address.....................................00:50:56:6c:63:c8
|----Mac Address..................................00:25:b5:22:a1:02
|----Mac Address..................................00:50:56:67:32:7c
|----Mac Address..................................00:50:56:6c:63:c8
|----World Command Line.................................grep Mac Address
Second Step: With the MAC Address configure the Engine ID:
esxcli system snmp set -E=25b522a102
Third Step: Set the authentication protocol:
esxcli system snmp set -a=MD5
Four Step: Set the encryption protocol:
esxcli system snmp set -x=AES128
Fifth Step: Indicate the authentication and encryption password:
Command:
esxcli system snmp hash -r -A SnMpV3BnClDx -X SnMpV3BnClDx
Result:
Authhash: 09851d1332df44bf48e73e5112a60c7b
Privhash: 09851d1332df44bf48e73e5112a60c7b
Sixth Step: Indicate the user with the Authhash and Privhash:
esxcli system snmp set --users SNMPV3HYPFLEX/09851d1332df44bf48e73e5112a60c7b/09851d1332df44bf48e73e5112a60c7b/priv
Seventh Step: Enable SNMP
esxcli system snmp set --enable true
eighth Step: Enable SNMPv3
esxcli system snmp set --v3targets 172.27.254.72@161/SNMPV3HYPFLEX/priv/trap
That's all for this post.
Rememeber: Share and be sociable.
No hay comentarios:
Publicar un comentario