====== ESXCLI====== [[vmware:vmware|{{ :vmware:icon.jpg?120|}}]] ===== context===== dit document beschrijft het gebruik van ESXCLI op ESXi hosts, de **commandline tool** waarmee je je ESXi kan beheren. ===== werking ===== * esxcli werkt met zgn **namespaces**, vergelijkbaar met categorien binnen Vmware (disk, netwerk, vms, ...) * ''esxcli'': overzicht van de beschikbare namespaces{{ :vmware:vmare_esxcli.png?600 |}} * ''esxcli '': brengt je in de betreffende namespace en geeft overzicht van beschikbare commando's * voorbeeld: ''esxcli system stats installdate get'': installatiedatum geen type-ahead, hier. ===== hardware ===== * ''esxcli hardware memory get'': RAM * ''esxcli hardware clock get'': hardware clock * ===== iscsi===== * ''esxcli iscsi session list'': actieve iSCSI sessies * ''esxcli iscsi adapter list'': iscsi adapters * ''esxcli iscsi adapter target list'': iscsi targets * ''esxcli iscsi adapter lun list'': iscsi luns ===== network===== * ''esxcli network nic list'': overzicht netwerkkaarten * ''esxcli network vswitch standard list'': overzicht van vswitches * ''esxcli network vswitch standard portgroup list'': list portgroups * ''esxcli network ip interface ipv4 get'': IPv4 configuratie van netwerkkaarten * ''esxcli network ip connection list'': tcp verbindingen met ESXi host (cfr ''netstat'') ===== storage ===== * ''esxcli storage core adapter list'': overzicht (software) adapters * ''esxcli storage core device list'': overzicht van storage devices * ''storage core device capacity list'': overzicht capaciteit van storage devices * ''esxcli storage core device stats get'': statistieken van de storage devices * ''esxcli storage filesystem list'': overzicht van de storage volumes en filesystem ===== system ===== * ''esxcli system stats installtime get'': installatie datum * ===== meer info ===== [[https://www.nakivo.com/blog/most-useful-esxcli-esxi-shell-commands-vmware-environment/#:~:text=In%20order%20to%20connect%20to,can%20be%20used%20by%20default).|Most Useful ESXCLI and ESXi Shell Commands for Your VMware Environment]] {{tag>vmware ssh esxi}}