LoginSignup
1
0

More than 5 years have passed since last update.

esxi configuration memo

Last updated at Posted at 2019-03-09

esxi configuration memo

objectives

  • personal memo

system

  • ProLiant DL360 G7
  • esxi version 6.7

configurations

enable snmp

[root@esxi67:~] esxcli system snmp get
   Authentication: 
   Communities: 
   Enable: false
   Engineid: 
   Hwsrc: indications
   Largestorage: true
   Loglevel: info
   Notraps: 
   Port: 161
   Privacy: 
   Remoteusers: 
   Syscontact: 
   Syslocation: 
   Targets: 
   Users: 
   V3targets: 
[root@esxi67:~] esxcli system snmp set --enable true
[root@esxi67:~] esxcli system snmp get
   Authentication: 
   Communities: 
   Enable: true
   Engineid: 00000063000000a100000000
   Hwsrc: indications
   Largestorage: true
   Loglevel: info
   Notraps: 
   Port: 161
   Privacy: 
   Remoteusers: 
   Syscontact: 
   Syslocation: 
   Targets: 
   Users: 
   V3targets: 
[root@esxi67:~]

set snmp community string

[root@esxi67:~] esxcli system snmp set --communities public
[root@esxi67:~]
[root@esxi67:~] esxcli system snmp get
   Authentication: 
   Communities: public
   Enable: true
   Engineid: 00000063000000a100000000
   Hwsrc: indications
   Largestorage: true
   Loglevel: info
   Notraps: 
   Port: 161
   Privacy: 
   Remoteusers: 
   Syscontact: 
   Syslocation: 
   Targets: 
   Users: 
   V3targets:

check snmp communication

from linux node with snmp tools

# snmpwalk -v 2c -c public 192.168.100.8 .1.3 | more
(snip)
SNMPv2-MIB::sysDescr.0 = STRING: VMware ESXi 6.7.0 build-9484548 VMware, Inc. x86_64
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.6876.4.1
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (19600) 0:03:16.00
SNMPv2-MIB::sysContact.0 = STRING: 
SNMPv2-MIB::sysName.0 = STRING: esxi67.local
SNMPv2-MIB::sysLocation.0 = STRING: 
SNMPv2-MIB::sysServices.0 = INTEGER: 72
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00
SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.2 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.4 = OID: IP-FORWARD-MIB::ipForward
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udp
SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcp
SNMPv2-MIB::sysORID.7 = OID: ENTITY-MIB::entityMIB
SNMPv2-MIB::sysORID.8 = OID: SNMPv2-SMI::org.111.2.802.1.1.2
SNMPv2-MIB::sysORID.9 = OID: SNMPv2-SMI::org.111.2.802.1.1.4
SNMPv2-MIB::sysORID.10 = OID: iso.2.840.10006.300.43
SNMPv2-MIB::sysORID.11 = OID: SNMPv2-SMI::org.111.2.802.1.1.13
SNMPv2-MIB::sysORID.12 = OID: HOST-RESOURCES-MIB::hostResourcesMibModule
(snip)

get storage info by snmpwalk

from linux node with snmp tools

# snmpwalk -v 2c -c public 192.168.100.8 .1.3.6.1.2.1.25.2.3
(snip)
HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1
HOST-RESOURCES-MIB::hrStorageIndex.2 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3
HOST-RESOURCES-MIB::hrStorageIndex.4 = INTEGER: 4
HOST-RESOURCES-MIB::hrStorageIndex.5 = INTEGER: 5
HOST-RESOURCES-MIB::hrStorageIndex.6 = INTEGER: 6
HOST-RESOURCES-MIB::hrStorageIndex.7 = INTEGER: 7
HOST-RESOURCES-MIB::hrStorageType.1 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.2 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.3 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.4 = OID: HOST-RESOURCES-TYPES::hrStorageRamDisk
HOST-RESOURCES-MIB::hrStorageType.5 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.6 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk
HOST-RESOURCES-MIB::hrStorageType.7 = OID: HOST-RESOURCES-TYPES::hrStorageRam
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/850c0a75-101e07eb-71a5-6df8d6ebcf9a
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/5be1d574-8c984766-9d87-78e3b514d3a4
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/5be1d569-784603fc-b553-78e3b514d3a4
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/9c5e5179-203eb1c9-e12b-c95ff15d50f6
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/5bbbb555-0173357c-c0ec-78e3b514d3a4
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /vmfs/volumes/5be1d572-713b52a2-3aa4-78e3b514d3a4
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Real Memory
HOST-RESOURCES-MIB::hrStorageAllocationUnits.1 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.2 = INTEGER: 65536 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.3 = INTEGER: 8192 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.4 = INTEGER: 4096 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.5 = INTEGER: 1048576 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.6 = INTEGER: 1048576 Bytes
HOST-RESOURCES-MIB::hrStorageAllocationUnits.7 = INTEGER: 1024 Bytes
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 63929
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 65515
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 36586
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 63929
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 139776
HOST-RESOURCES-MIB::hrStorageSize.6 = INTEGER: 62208
HOST-RESOURCES-MIB::hrStorageSize.7 = INTEGER: 12572396
HOST-RESOURCES-MIB::hrStorageUsed.1 = INTEGER: 47028
HOST-RESOURCES-MIB::hrStorageUsed.2 = INTEGER: 254
HOST-RESOURCES-MIB::hrStorageUsed.3 = INTEGER: 26761
HOST-RESOURCES-MIB::hrStorageUsed.4 = INTEGER: 2
HOST-RESOURCES-MIB::hrStorageUsed.5 = INTEGER: 972
HOST-RESOURCES-MIB::hrStorageUsed.6 = INTEGER: 1440
HOST-RESOURCES-MIB::hrStorageUsed.7 = INTEGER: 1316528
HOST-RESOURCES-MIB::hrStorageAllocationFailures.1 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.2 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.3 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.4 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.5 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.6 = Counter32: 0
HOST-RESOURCES-MIB::hrStorageAllocationFailures.7 = Counter32: 0
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0