-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Steven-D-Foster/huc into main
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ HUC is a simple to use open source command line tool for performing various task | |
- [Google Sheets Interaction](#google-sheets) | ||
- [Generation of public and private keys](#generate-public-and-private-keys) | ||
- [File encryption and decryption](#file-encryption-and-decryption) | ||
- [VMware Querying](#vmware) | ||
- [VMware Interaction](#vmware) | ||
- [Can use a properties file](#using-a-properties-file) | ||
- [Helper Utility Functions](#helper-functions) | ||
|
||
|
@@ -407,21 +407,35 @@ huc FileDecrypt -pk=MyPrivateKey.txt data.encrypted dataDecrypted.txt | |
### VMware | ||
Query various information in a VCenter 6.7+ infrastructure | ||
```sh | ||
huc VMwareListDatacenters -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListDatastores -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListFolders -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListHosts -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListNetworks -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListResourcePools -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareListVMs -h=192.168.1.5 [email protected] -p=mypass | ||
huc VMwareList -h=192.168.1.5 [email protected] -p=mypass DataCenter VM StoragePolicy | ||
huc VMwareList -h=192.168.1.5 [email protected] -p=mypass VM_Quick | ||
huc VMwareList -h=192.168.1.5 [email protected] -p=mypass VM_WithoutTools | ||
huc VMwareList -h=192.168.1.5 [email protected] -p=mypass VM_PoweredOff | ||
``` | ||
|
||
Query raw REST data from VCenter 6.7+ infrastructure | ||
Query raw JSON data from VCenter 6.7+ infrastructure | ||
```sh | ||
huc VMwareQuery -h=192.168.1.5 [email protected] -p=mypass /rest/vcenter/host | ||
huc VMwareQuery -h=192.168.1.5 [email protected] -p=mypass /rest/vcenter/vm | ||
huc VMwareQuery -h=192.168.1.5 [email protected] -p=mypass /rest/vcenter/vm/vm-1692 | ||
``` | ||
|
||
Query all infrastructure data to a JSON file | ||
```sh | ||
huc VMwareQueryJSON -h=192.168.1.5 [email protected] -p=mypass MyDataFile.json | ||
``` | ||
|
||
Perform various actions on a VM | ||
```sh | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM None | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Shutdown | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Reboot | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Standby | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Reset | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Start | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Stop | ||
huc VMwareVM -h=192.168.1.5 [email protected] -p=mypass MyVM Suspend | ||
``` | ||
| ||
| ||
## Putting it all together | ||
|