XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 2
    • Groups 3
    fred-stoF Offline
    1. Home
    2. fred-sto
    3. Posts

    Posts

    Recent Best Controversial
    • RE: search for snapshots sorted by creation date

      @Danp said:

      I haven't seen a way to do this from within XO. However, you can gather the details using xe on the command line --

      for i in `xe snapshot-list  | grep uuid | awk '{print$5}'`; do export j=$(xe snapshot-param-get uuid=$i  param-name=children); k=$(xe snapshot-param-get uuid=$i  param-name=snapshot-time); echo "VM UUID: $j - Snapshot UUID: $i - Creation Time: $k"; done
      

      This doesn't sort the results, so you will need to do that in Excel or your favorite text editor.

      @Danp adding | sort -t: -k4 to your command will sort it by date.

      • -t: set fields separator to :
      • -k4 sort by 4th field
      posted in Xen Orchestra
      fred-stoF
      fred-sto