vmware/pyvmomi-community-samples

Sample: login to guest example

Open

#44 aperta il 30 mag 2014

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Python (914 fork)batch import
help wantedin progresssample request

Metriche repository

Star
 (972 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Create some simple sample that addresses requests like https://github.com/vmware/pyvmomi/issues/22

And formalizes...

# executes /bin/touch /tmp/hello.txt
cmdspec = pyVmomi.vim.vm.guest.ProcessManager.ProgramSpec(arguments='/tmp/hello.txt', programPath='/bin/touch')

# cmdoutput returns a pid
cmdoutput = si.content.guestOperationsManager.processManager.StartProgramInGuest(vm=vm, auth=creds, spec=cmdspec)

Guida contributor