ThinkCookies’s blog

忘れない内に色々記録する目的のブログです。

esxcliコマンドでSNMP設定

#設定確認

esxcli system snmp get

 

#有効化

esxcli system snmp set --enable true(またはesxcli system snmp set -e yes)

 

#コミュニティ名指定

esxcli system snmp --communities {コミュニティ名}

(またはesxcli system snmp -c  {コミュニティ名})

 

#ターゲット指定

esxcli system snmp set --targets={ターゲットIP}@162/{コミュニティ名}

#設定確認

esxcli system snmp get