-
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.
- Loading branch information
1 parent
28fc51a
commit 4329197
Showing
1 changed file
with
20 additions
and
0 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,6 +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) | ||
- [Can use a properties file](#using-a-properties-file) | ||
- [Helper Utility Functions](#helper-functions) | ||
|
||
|
@@ -403,6 +404,25 @@ Decrypt file with private key | |
huc FileDecrypt -pk=MyPrivateKey.txt data.encrypted dataDecrypted.txt | ||
``` | ||
| ||
### VMware | ||
Query various information in a VCenter 6.5+ 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 | ||
``` | ||
|
||
Query raw REST data from VCenter 6.5+ 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 | ||
``` | ||
| ||
| ||
## Putting it all together | ||
Query SQL server, convert the data, sftp it, zip it, then email the data | ||
|