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

    xo-cli VM logs

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    8 Posts 3 Posters 1.1k Views 1 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.
    • B Offline
      briandch
      last edited by

      Hi,
      I would like to know if there is a way to get the logs of my VMs from the xo-cli. I can't seem to find the command using the --list-commands and i can't find the namespace they belong too for the log.get command.

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        What kind of logs exactly?

        1 Reply Last reply Reply Quote 0
        • B Offline
          briandch
          last edited by briandch

          The logs under the Logs tab in the VM page of the web application. Mainly for the Shutdown, Start, Interupt , etc. type of events.

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            I think it's not called logs, it might be "events" if I remember correctly

            1 Reply Last reply Reply Quote 0
            • B Offline
              briandch
              last edited by

              Event doesn't return anything in the commands or in the objects(--list-objects). I can find 'message' in the full list of object which seems to be what I'm looking for but the only method associated with them is message.delete . The source code for the web app has a createGetObjectMessages function, but I don't know enough node to find the right RPC call that this generates in the end.

              1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                Ping @julien-f

                1 Reply Last reply Reply Quote 0
                • julien-fJ Offline
                  julien-f Vates 🪐 Co-Founder XO Team
                  last edited by

                  > xo-cli --list-objects type=message \$object=<VM UUID>
                  
                  1 Reply Last reply Reply Quote 1
                  • B Offline
                    briandch
                    last edited by

                    Thanks, that's exactly what I was looking for.

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