Category: vSphere

  • ESX cheat sheet

    List of hosts in the HA cluster less /etc/opt/vmware/fdm/hostlist List registered VMs less /etc/vmware/hostd/vmInventory.xml vim-cmd commands vim-cmd vmsvc/getallvms List VMs registered on the host vim-cmd vmsvc/reload VMID Force the host to reload the vmx vim-cmd vmsvc/power.getstate VMID Get Power State of the VM vim-cmd vmsvc/power.shutdown VMID Shutdown the Guest OS vim-cmd vmsvc/power.off VMID VM Hard…

  • vCenter AD issues

    Leave domain from command line – SSH vCenter– Type: /opt/likewise/bin/domainjoin-cli leave If trying to leave AD fail with error: ldm client exception: Error trying to leave AD, error code [1321],user [adusername] Running the command “/opt/likewise/bin/domainjoin-cli join [domain] [user name] [password]” to join domain with restricted user account fails with error: Error LW_ERROR_LDAP_CONSTRAINT_VIOLATION [code 0x00009d7b] OR LW_ERROR_LDAP_INSUFFICIENT_ACCESS [code…

  • PowerCLI

    PowerCLI install on Ubuntu # apt-get update -y# snap install powershell –classic# pwshPS /home/ludo> Install-Module Microsoft.PowerShell.GraphicalToolsPS /home/ludo> Install-Module Microsoft.PowerShell.ConsoleGuiToolsPS /home/ludo> Install-Module -Name VMware.PowerCLIPS /home/ludo> Set-PowerCLIConfiguration -InvalidCertificateAction Ignore Connect to a Server Connect-VIServer vc67.ludo.local List events at a specific date Get-VIEvent -Start 23/08/2020 -Finish 25/08/2020 | Out-GridView Export events to a file Get-VIEvent -Start 23/08/2020 -Finish…