VMware Cloud Community
Gabrie1
Commander
Commander
Jump to solution

Is it possible to query and change configstorecli via PowerCLI ???

Is there a way to query configstorecli through PowerCLI? We've got a lot of hosts to run a check against and maybe update with a new setting. 

The command I would like to run is:
configstorecli config current get -c esx -g services -k vpxa_solution_user_config | grep -i server_ip


http://www.GabesVirtualWorld.com
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Not directly via a PowerCLI cmdlet, but you can use Posh-SSH and the Invoke-SshCommand to execute the command.
Then eventually use Get-SCPItem and Set-SCPItem to download and upload the JSON files.
Changing a JSON file with PowerShell is straightforward.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

2 Replies
LucD
Leadership
Leadership
Jump to solution

Not directly via a PowerCLI cmdlet, but you can use Posh-SSH and the Invoke-SshCommand to execute the command.
Then eventually use Get-SCPItem and Set-SCPItem to download and upload the JSON files.
Changing a JSON file with PowerShell is straightforward.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Gabrie1
Commander
Commander
Jump to solution

Thanks, with these I was able to write a script that scans the hosts!

http://www.GabesVirtualWorld.com
0 Kudos