XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Help with Command Line Translation to XO Jobs

    Scheduled Pinned Locked Moved Advanced features
    2 Posts 2 Posters 141 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JSylvia007J Offline
      JSylvia007
      last edited by

      Howdy all!
      I have a script that runs the following 2 commands:

      xe vm-shutdown --multiple power-state=running tags:contains=NAS_REQD
      xe vm-shutdown --multiple power-state=running tags:contains=NAS_REQD_LAST
      

      Is there any way I can somehow convert these to the Jobs section? I'd love to execute this from the GUI within XO, but I'm not sure I have the skills LOL.

      Conversely, the reverse of this script calls this:

      xe vm-start power-state=halted vm=NS01
      sleep 5
      xe vm-start power-state=halted vm=RELAY01
      sleep 5
      xe vm-start --multiple power-state=halted tags:contains=NAS_REQD
      

      This allows two VMs to start first, and then all the rest to start at the same time. Obviously I can add vm.start for the 2 specific, but how would I then quantify "everything else" with that tag on the Jobs screen?

      1 Reply Last reply Reply Quote 0
      • olivierlambertO olivierlambert moved this topic from Xen Orchestra on
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        Hopefully someone in the community will guide you, personally I never played with jobs 🙂

        1 Reply Last reply Reply Quote 1
        • First post
          Last post