On 2018-02-17, Jiri B <[email protected]> wrote:
> I can't read C but how do you sort vmctl status output?
>
> host1# vmctl status
>    ID   PID VCPUS  MAXMEM  CURMEM     TTY        OWNER NAME
>     6 99046     1    2.0G    698M   ttyp4        jirib build1
>     1 93692     1    2.0G    917M   ttyp7        jirib jirib1
>     7     -     1    512M       -       -        jirib archive1
>
> Not by ID, not by PID, names order with preference of alive VMs?
> Wouldn't be ID best for order?

IIUC vmctl is just displaying it in the order coming back from the
kernel ioctl.

> It would be great if there would be systat vmm (?) with similar
> output and refreshing data.

A similar request might be made for bgpd, ospfd, etc - rather than
reaching around from systat into more parts of the tree, I'd use one
of the 'watch' variants for an updating display, e.g.

pkg_add iwatch
iwatch vmctl status


Reply via email to