Skip to content

govc and vim-cmd / hostsvc #3595

Answered by dougm
ralfgro asked this question in Q&A
Oct 17, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

iirc, vim-cmd is its own cli that uses the same APIs govc. I don't know vim-cmd well, but looks like govc host.option.{ls,set} can do what you need:

% govc host.option.ls -host $host ScratchConfig.ConfiguredScratchLocation
ScratchConfig.ConfiguredScratchLocation:  /vmfs/volumes/67104522-e4406397-678b-02000da04ab4

% govc host.option.set -host $host ScratchConfig.ConfiguredScratchLocation /tmp

% govc host.option.ls -host $host ScratchConfig.ConfiguredScratchLocation
ScratchConfig.ConfiguredScratchLocation:  /tmp

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ralfgro
Comment options

Answer selected by ralfgro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants