On 2018-02-17, Jiri B wrote:
> I can't read C but how do you sort vmctl status output?
>
> host1# vmctl status
>ID PID VCPUS MAXMEM CURMEM TTYOWNER NAME
> 6 99046 12.0G698M ttyp4jirib build1
> 1 93692 12.0G917M ttyp7jirib jirib1
> 7 - 1512M - -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