«   2021/03   »
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
03-02 03:45
Notice
Today
6
Total
1,406,662
관리 메뉴

변군이글루

[VMware] ESXi 7.x에서 SNMP 활성화 본문

* 리눅스

[VMware] ESXi 7.x에서 SNMP 활성화

변군 변군이글루 2021. 2. 4. 12:11

ESXi 7.x에서 SNMP 활성화

SNMP 현재 설정 확인

[root@esxi-111:~] esxcli system snmp get
   Authentication:
   Communities:
   Enable: false
   Engineid:
   Hwsrc: indications
   Largestorage: true
   Loglevel: warning
   Notraps:
   Port: 161
   Privacy:
   Remoteusers:
   Syscontact:
   Syslocation:
   Targets:
   Users:
   V3targets:

SNMP 공장 초기화

[root@esxi-111:~] esxcli system snmp set -r

SNMP 설정

[root@esxi-111:~] esxcli system snmp set -c communityname123!@#
[root@esxi-111:~] esxcli system snmp set -p 161

[root@esxi-111:~] esxcli system snmp set -L "aws ap-northeast-2(seoul) regions"
[root@esxi-111:~] esxcli system snmp set -C admin@email.com

SNMP 서비스 시작

[root@esxi-111:~] esxcli system snmp set -e yes

snmp 호출 테스트(for zabbix)

$ snmpwalk -v2c -c communityname123!@# 111.111.111.111 system.sysObjectID.0
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.6876.4.1


$ snmpwalk -v2c -c communityname123!@# 111.111.111.111 system


$ snmpwalk -v2c -c communityname123!@# 111.111.111.111

 

 

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.monitoring.doc/GUID-EA64297A-35FD-4226-A1B2-367C57D38CBD.html

 

0 Comments
댓글쓰기 폼