[GH-ISSUE #61] proxmoxer agent exec-status #29

Closed
opened 2026-02-27 15:46:03 +03:00 by kerem · 2 comments
Owner

Originally created by @enimath on GitHub (Jun 9, 2021).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/61

Hello,

I am trying to check agent exec-status command but proxmoxer don't know anything after "-" so perhaps there is some other keyword to use ?

when I am trying to check on console with pvesh it is working
"pvesh get /nodes/local-11/qemu/10001/agent/exec-status --pid 1017"

my code:
targetnode=local-11
vmid=10001
pid=1017
proxmox.nodes(targetnode).qemu(vmid).agent.exec-status(pid=pid).get()

Originally created by @enimath on GitHub (Jun 9, 2021). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/61 Hello, I am trying to check agent exec-status command but proxmoxer don't know anything after "-" so perhaps there is some other keyword to use ? when I am trying to check on console with pvesh it is working "pvesh get /nodes/local-11/qemu/10001/agent/exec-status --pid 1017" my code: targetnode=local-11 vmid=10001 pid=1017 proxmox.nodes(targetnode).qemu(vmid).agent.exec-status(pid=pid).get()
kerem 2026-02-27 15:46:03 +03:00
Author
Owner

@jhollowe commented on GitHub (Jun 10, 2021):

This is a limitation of python when using the dotted form (python doesn't like dashes in the name). If you change it to the following, it should work (I currently don't have access to my testing rig so I can't test for sure).

proxmox.nodes(targetnode).qemu(vmid).agent("exec-status").get(pid=pid)
<!-- gh-comment-id:859123897 --> @jhollowe commented on GitHub (Jun 10, 2021): This is a limitation of python when using the dotted form (python doesn't like dashes in the name). If you change it to the following, it should work (I currently don't have access to my testing rig so I can't test for sure). ```python proxmox.nodes(targetnode).qemu(vmid).agent("exec-status").get(pid=pid) ```
Author
Owner

@enimath commented on GitHub (Jun 11, 2021):

Hello,
Thank You for reply !
I have tested Your code and it is working.

<!-- gh-comment-id:859359632 --> @enimath commented on GitHub (Jun 11, 2021): Hello, Thank You for reply ! I have tested Your code and it is working.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#29
No description provided.