[VMware]SNMP有効化

ver : VMware ESXi 6

  1. 【Community Name】にSNMPのコミュニティ名を指定します。
    [root@hogehoge:~]esxcli system snmp set –communities 【Community Name】
  2. SNMPサービスを有効化します。
    [root@hogehoge:~]esxcli system snmp set –enable true
  3. 特定のSNMP マネージャとだけ通信を許可する場合は、下記設定を追加します。[root@hogehoge:~]esxcli system snmp set –targets 【SNMP マネージャのIPアドレス or ネットワークアドレス】
  4. firewall にsnmp へのアクセスを許可するルールを追加します。[root@hogehoge:~]esxcli network firewall ruleset set –ruleset-id=snmp –allowed-all true #追加したルールを有効化します。 [root@hogehoge:~]esxcli network firewall ruleset set –ruleset-id=snmp –enabled true
  5. snmp サービスを起動します。
    [root@hogehoge:~]/etc/init.d/snmpd start root: snmpd Running from interactive shell, running command: esxcli system snmp set -e false.  root: snmpd setting up resource reservations. root: snmpd opening firewall port(s) for notifications. root: snmpd watchdog for snmpd started.
  6. SNMP マネージャ側からSNMP ポーリングが行えることを確認します。
    [snmpmanager@localhost ~]$ sudo snmpwalk -v 2c -c 【コミュニティ名】 【ESXi のIPアドレス】 1.3.6.1.4.1.6876.1.1.0 SNMPv2-SMI::enterprises.6876.1.1.0 = STRING: “VMware ESXi”


コメント

タイトルとURLをコピーしました