Skip to content

Instantly share code, notes, and snippets.

@gsmitheidw
Last active April 26, 2018 13:30
Show Gist options
  • Select an option

  • Save gsmitheidw/eee830f2ba6ae301449d90a1ef5b7f0b to your computer and use it in GitHub Desktop.

Select an option

Save gsmitheidw/eee830f2ba6ae301449d90a1ef5b7f0b to your computer and use it in GitHub Desktop.
vmware cheatsheet of useful commands
# From shell change appliance default to bash (needed for winscp transfers to vcenter)
chsh -s /bin/bash
# and back again with:
chsh -s /bin/appliancesh root
# May be pre-requisite to set shell.set --enable True in appliance root also depending on current settings
#Install certs (example: for intercepting proxy authentication):
/usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --chain --cert /path/to/cert.cer
# Note cert must be base64 encoded on export not DER encoded!
# View installed certs with /usr/lib/vmware-vmafd/bin/dir-cli trustedcert publish --chain --cert
#Backup Nodes config manually:
# first run a sync
vim-cmd hostsvc/firmware/sync_config
# then backup configs to file which will provide a url output which can be used once only (may need wildcard substituted with correct IP/localhost)
vim-cmd hostsvc/firmware/backup_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment