non-"threaded" listsnaphost view?

hvisage

Renowned Member
May 21, 2013
278
26
93
doing lots of snapshots (And yes, it would've shortened a recovery for me if there wasn't a problem with pmxcfs causing the snapshots to not happen over this past weekend), and a listsnapshot output starts to degrade after a couple of lines and then after some more totally goes un-bad-aligned

Is there a setting I'm missing to not have this? or should I log a enhancement request?

Code:
daily_2022_01_23            2022-01-23 04:25:05     no-description
  `-> daily_2022_01_30          2022-01-30 04:25:06     no-description
    `-> daily_2022_02_06        2022-02-06 04:25:05     no-description
      `-> daily_2022_02_13      2022-02-13 04:25:05     no-description
        `-> frequent_2022_02_19_22_17_02 2022-02-19 22:17:03     no-description
          `-> daily_2022_02_20  2022-02-20 04:25:05     no-description
            `-> daily_2022_02_21 2022-02-21 04:25:05     no-description
              `-> daily_2022_02_22 2022-02-22 04:25:03     no-description
                `-> frequent_2022_02_23_04_17_02 2022-02-23 04:17:03     no-description
                  `-> daily_2022_02_23 2022-02-23 04:25:05     no-description
                    `-> frequent_2022_02_23_05_17_02 2022-02-23 05:17:03     no-description
                      `-> frequent_2022_02_23_06_17_02 2022-02-23 06:17:03     no-description
                        `-> frequent_2022_02_23_07_17_02 2022-02-23 07:17:03     no-description
                          `-> frequent_2022_02_23_08_17_02 2022-02-23 08:17:02     no-description
                            `-> frequent_2022_02_23_09_17_03 2022-02-23 09:17:03     no-description
                              `-> frequent_2022_02_23_10_17_02 2022-02-23 10:17:03     no-description
                                `-> frequent_2022_02_23_11_17_02 2022-02-23 11:17:03     no-description
                                  `-> frequent_2022_02_23_12_17_03 2022-02-23 12:17:03     no-description
                                    `-> frequent_2022_02_23_13_17_02 2022-02-23 13:17:03     no-description
                                      `-> frequent_2022_02_23_14_17_02 2022-02-23 14:17:03     no-description
                                        `-> frequent_2022_02_23_15_17_03 2022-02-23 15:17:03     no-description
                                          `-> frequent_2022_02_23_16_17_02 2022-02-23 16:17:03     no-description
                                            `-> frequent_2022_02_23_17_17_03 2022-02-23 17:17:04     no-description
                                              `-> frequent_2022_02_23_18_17_02 2022-02-23 18:17:03     no-description
                                                `-> frequent_2022_02_23_19_17_02 2022-02-23 19:17:03     no-description
                                                  `-> frequent_2022_02_23_20_17_02 2022-02-23 20:17:03     no-description
                                                    `-> frequent_2022_02_23_21_17_02 2022-02-23 21:17:03     no-description
                                                      `-> frequent_2022_02_23_22_17_02 2022-02-23 22:17:03     no-description
                                                        `-> frequent_2022_02_24_01_17_02  2022-02-24 01:17:03     no-description
                                                          `-> frequent_2022_02_24_02_17_02    2022-02-24 02:17:03     no-description
                                                            `-> frequent_2022_02_24_03_17_02      2022-02-24 03:17:03     no-description
                                                              `-> frequent_2022_02_24_04_17_03        2022-02-24 04:17:03     no-description
                                                                `-> daily_2022_02_24                      2022-02-24 04:25:06     no-description
                                                                  `-> frequent_2022_02_24_05_17_02            2022-02-24 05:17:03     no-description
                                                                    `-> frequent_2022_02_24_06_17_02              2022-02-24 06:17:02     no-description
                                                                      `-> frequent_2022_02_24_07_17_02                2022-02-24 07:17:03     no-description
                                                                        `-> frequent_2022_02_24_08_17_02                  2022-02-24 08:17:03     no-description
                                                                          `-> frequent_2022_02_24_09_17_02                    2022-02-24 09:17:03     no-description
                                                                            `-> frequent_2022_02_24_10_17_02                      2022-02-24 10:17:03     no-description
                                                                              `-> frequent_2022_02_24_11_17_03                        2022-02-24 11:17:03     no-description
                                                                                `-> frequent_2022_02_24_12_17_03                          2022-02-24 12:17:03     no-description
                                                                                  `-> frequent_2022_02_24_13_17_02                            2022-02-24 13:17:03     no-description
                                                                                    `-> frequent_2022_02_24_14_17_02                              2022-02-24 14:17:03     no-description
                                                                                      `-> frequent_2022_02_24_15_17_02                                2022-02-24 15:17:03     no-description
                                                                                        `-> frequent_2022_02_24_16_17_03                                  2022-02-24 16:17:03     no-description
                                                                                          `-> frequent_2022_02_24_17_17_02                                    2022-02-24 17:17:03     no-description
                                                                                            `-> frequent_2022_02_24_18_17_02                                      2022-02-24 18:17:03     no-description
                                                                                              `-> frequent_2022_02_24_19_17_02                                        2022-02-24 19:17:03     no-description
                                                                                                `-> frequent_2022_02_24_20_17_02                                          2022-02-24 20:17:03     no-description
                                                                                                  `-> frequent_2022_02_24_21_17_02                                            2022-02-24 21:17:03     no-description
                                                                                                    `-> frequent_2022_02_24_22_17_03                                              2022-02-24 22:17:04     no-description
                                                                                                      `-> frequent_2022_02_25_00_17_03                                                2022-02-25 00:17:03     no-description
                                                                                                        `-> frequent_2022_02_25_01_17_03                                                  2022-02-25 01:17:03     no-description
                                                                                                          `-> frequent_2022_02_25_02_17_03                                                    2022-02-25 02:17:03     no-description
                                                                                                            `-> frequent_2022_02_25_03_17_03                                                      2022-02-25 03:17:03     no-description
                                                                                                              `-> frequent_2022_02_25_04_17_03                                                        2022-02-25 04:17:03     no-description
                                                                                                                `-> daily_2022_02_25                                                                      2022-02-25 04:25:05     no-description
                                                                                                                  `-> frequent_2022_02_25_05_17_03                                                            2022-02-25 05:17:03     no-description
                                                                                                                    `-> frequent_2022_02_25_06_17_02                                                              2022-02-25 06:17:03     no-description
                                                                                                                      `-> frequent_2022_02_25_07_17_02                                                                2022-02-25 07:17:03     no-description
                                                                                                                        `-> frequent_2022_02_25_08_17_03                                                                  2022-02-25 08:17:04     no-description
                                                                                                                          `-> frequent_2022_02_25_09_17_02                                                                    2022-02-25 09:17:03     no-description
                                                                                                                            `-> frequent_2022_02_25_10_17_03                                                                      2022-02-25 10:17:03     no-description
                                                                                                                              `-> frequent_2022_02_25_11_17_03                                                                        2022-02-25 11:17:03     no-description
                                                                                                                                `-> frequent_2022_02_25_12_17_02                                                                          2022-02-25 12:17:02     no-description
                                                                                                                                  `-> frequent_2022_02_25_13_17_03                                                                            2022-02-25 13:17:04     no-description
                                                                                                                                    `-> frequent_2022_02_25_14_17_03                                                                              2022-02-25 14:17:03     no-description
                                                                                                                                      `-> frequent_2022_02_25_15_17_03                                                                                2022-02-25 15:17:03     no-description
                                                                                                                                        `-> frequent_2022_02_25_16_17_02                                                                                  2022-02-25 16:17:03     no-description
                                                                                                                                          `-> frequent_2022_02_25_17_17_03                                                                                    2022-02-25 17:17:03     no-description
 
Depends on what you are trying to do with the output, you have a few options:

pvesh get /nodes/pve7demo1/qemu/100/snapshot


pvesh get /nodes/pve7demo1/qemu/100/snapshot --output-format json|jq

pvesh get /nodes/pve7demo1/qemu/100/snapshot --output-format json-pretty


P.S. thats some nice ascii art :)


Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
Last edited:
mhmm.. i'll check out the alignment issue, but otherwise what @bbgeek17 wrote
 
Depends on what you are trying to do with the output, you have a few options:

pvesh get /nodes/pve7demo1/qemu/100/snapshot
I'll add `|egrep -i '[a-z]'` to remove the non-text lines ;)

But yes, is an option, was just wondering about a less indented output of qm/pct given the "ascii art" I had to look at without the spaces in front
 
I'll add `|egrep -i '[a-z]'` to remove the non-text lines ;)
there's an easier way:
Code:
pvesh get /nodes/nodename/qemu/id/snapshot --noborder --noheader

But yes, is an option, was just wondering about a less indented output of qm/pct given the "ascii art" I had to look at without the spaces in front
we applied a fix for the misalignment [0] and also shortened the indent to one space only [1] that should fit more, but yes, for no indentation, the pvesh command is the way to go

0: https://git.proxmox.com/?p=pve-gues...ff;h=9fca8f9d5ec210c0215f5990ca4ba4cf3615fa8e
1: https://git.proxmox.com/?p=pve-gues...ff;h=e6e15500491d1e3b5bc5b2b1071bc7020625e8bc
 
  • Like
Reactions: hvisage

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!