How to list running VMs (and their options) from script?

Discussion in 'Proxmox VE: Installation and configuration' started by achekalin, May 17, 2012.

  1. achekalin

    achekalin Member

    Joined:
    Jun 17, 2011
    Messages:
    74
    Likes Received:
    0
    Hello,

    I try to make some monitoring system to check which VM are running/non running on given server. It is easy to check from web interface, but I can't check it from bash scripts. So, may I ask you for advice - how can I check which VMs are running now from script or shell?

    Another thing (if it's possible at all) I'd love to know is to know each VM settings ('Run on startup' checkbox, memory settings) without dump config files parsing?

    Thank you in advance for your help!
     
  2. dietmar

    dietmar Proxmox Staff Member
    Staff Member

    Joined:
    Apr 28, 2005
    Messages:
    16,484
    Likes Received:
    314
    use 'vzlist' and 'qm list'

    The config file is the only place where that info is stored.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. achekalin

    achekalin Member

    Joined:
    Jun 17, 2011
    Messages:
    74
    Likes Received:
    0
    That's it!

    Thank you!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice