Last active
April 26, 2018 13:30
-
-
Save gsmitheidw/eee830f2ba6ae301449d90a1ef5b7f0b to your computer and use it in GitHub Desktop.
vmware cheatsheet of useful commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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