[GH-ISSUE #40] How i can get status from one machine ? #16

Closed
opened 2026-02-27 15:45:59 +03:00 by kerem · 3 comments
Owner

Originally created by @deadbyhost on GitHub (Nov 8, 2020).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/40

hello i want to know how i can get nodes.lxc.vmid.current.get() but whit a custom machine , whit a function parameter not gettig all vms

Originally created by @deadbyhost on GitHub (Nov 8, 2020). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/40 hello i want to know how i can get nodes.lxc.vmid.current.get() but whit a custom machine , whit a function parameter not gettig all vms
kerem closed this issue 2026-02-27 15:45:59 +03:00
Author
Owner

@deadbyhost commented on GitHub (Nov 8, 2020):

i did whit whit

for node in proxmox.nodes.get():
    for vm in proxmox.nodes(node['node']).lxc.get():
        if vm['vmid'] == vmid :
            print(vm['vmid'] + vm['status'])
<!-- gh-comment-id:723550930 --> @deadbyhost commented on GitHub (Nov 8, 2020): i did whit whit for node in proxmox.nodes.get(): for vm in proxmox.nodes(node['node']).lxc.get(): if vm['vmid'] == vmid : print(vm['vmid'] + vm['status'])
Author
Owner

@morph027 commented on GitHub (Nov 8, 2020):

if you know on which node the container is running: proxmox.nodes(node_id).lxc(lxc_id).status.get('current')

<!-- gh-comment-id:723551056 --> @morph027 commented on GitHub (Nov 8, 2020): if you know on which node the container is running: `proxmox.nodes(node_id).lxc(lxc_id).status.get('current')`
Author
Owner

@deadbyhost commented on GitHub (Nov 8, 2020):

if you know on which node the container is running: proxmox.nodes(node_id).lxc(lxc_id).status.get('current')

Thanks u so much , works pretty well 👍 , have nice day

<!-- gh-comment-id:723566903 --> @deadbyhost commented on GitHub (Nov 8, 2020): > > > if you know on which node the container is running: `proxmox.nodes(node_id).lxc(lxc_id).status.get('current')` Thanks u so much , works pretty well 👍 , have nice day
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#16
No description provided.