|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] JSON format of >xl list< does not provide state information
On Fri, Feb 17, 2017 at 04:37:10AM +0100, Robert Urban wrote:
> Hello Folks,
>
> Sorry, forgot to mention the version:
>
> > # xl info
> > [...]
> > release : 4.9.3-200.186.fc25.x86_64
>
This is for Linux kernel, not Xen. To get Xen version:
xl info | egrep 'major|minor|extra'
> plain "xl list" produces:
>
> > # xl list
> > Name ID Mem VCPUs State
> > Time(s)
> > Domain-0 0 2048 1 r-----
> > 108.2
>
> and "xl list -l" produces:
>
> > # xl list -l
> > [
> > {
> > "domid": 0,
> > "config": {
> > "c_info": {
> > "type": "pv",
> > "name": "Domain-0"
> > },
> > "b_info": {
> > "max_memkb": 2097152,
> > "target_memkb": 2097151,
> > "sched_params": {
> >
> > },
> > "type.pv": {
> >
> > },
> > "arch_arm": {
> >
> > }
> > }
> > }
> > }
> > ]
>
> why doesn't "xl list -l" provide the "State" information that the plain "xl
> list" provides? I would have thought the JSON output would be complete.
>
Because for reasons I don't know the long output format is actually
printing out the domain configuration.
It wouldn't be too difficult to add a new option to generate JSON output
according to short output, but unfortunately I don't have time to work
on this at the moment.
Wei.
> cheers,
>
> Robert Urban
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> https://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |