ListProcesses does not list complete command line in windows VMs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Description
pyvmomi 6.7.1
Hypervisor: VMware ESXi, 6.7.0, 13006603
Guest OS: Microsoft Windows Server 2016 or later (64-bit)
Compatibility: ESXi 6.7 and later (VM version 14)
VMware Tools: Running, version:10341 (Current)
win_vm_mor is the MOR for the VM
win_content is the service content for the VM
win_gom = win_content.guestOperationsManager
NamePasswordAuthentication = vim.vm.guest.NamePasswordAuthentication
win_auth = NamePasswordAuthentication(username='Administrator', password='password')
ps_list = win_gom.processManager.ListProcesses(vm=win_vm_mor, auth=win_auth)
[p for p in ps_list if 'Phtm' in p.cmdLine]
the output is:
[(vim.vm.guest.ProcessManager.ProcessInfo) {
dynamicType = ,
dynamicProperty = (vmodl.DynamicProperty) [],
name = 'Phtm.exe',
pid = 4156,
owner = 'WIN2K16\Administrator',
cmdLine = 'Phtm.exe',
startTime = 2019-09-27T19:00:55Z,
endTime = ,
exitCode =
}]
Our complete command line is Phtm.exe followed by many command line options, which we do not see here.
This works on Linux VMs, we can get the complete command line in cmdLine.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the reported ProcessManager.ListProcesses call and compare the Windows ProcessInfo cmdLine result with the Linux behavior described in the issue. Investigate whether the missing arguments are exposed by the VMware guest API on Windows; done means resolving the behavior or documenting the platform limitation and its expected result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100