Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/Steven-D-Foster/huc into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-D-Foster committed May 28, 2021
2 parents a1293c8 + 058530e commit 597a439
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 597a439

Please sign in to comment.