xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* JSON format of >xl list< does not provide state information
@ 2017-02-17  3:34 Robert Urban
  0 siblings, 0 replies; 3+ messages in thread
From: Robert Urban @ 2017-02-17  3:34 UTC (permalink / raw)
  To: xen-devel

Hello Folks,

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.

cheers,

Robert Urban


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* JSON format of >xl list< does not provide state information
@ 2017-02-17  3:37 Robert Urban
  2017-02-20 17:30 ` Wei Liu
  0 siblings, 1 reply; 3+ messages in thread
From: Robert Urban @ 2017-02-17  3:37 UTC (permalink / raw)
  To: xen-devel

Hello Folks,

Sorry, forgot to mention the version:

> # xl info
> [...]
> release                : 4.9.3-200.186.fc25.x86_64


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.

cheers,

Robert Urban


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: JSON format of >xl list< does not provide state information
  2017-02-17  3:37 JSON format of >xl list< does not provide state information Robert Urban
@ 2017-02-20 17:30 ` Wei Liu
  0 siblings, 0 replies; 3+ messages in thread
From: Wei Liu @ 2017-02-20 17:30 UTC (permalink / raw)
  To: Robert Urban; +Cc: Wei Liu, xen-devel

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@lists.xen.org
> https://lists.xen.org/xen-devel

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-02-20 17:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17  3:37 JSON format of >xl list< does not provide state information Robert Urban
2017-02-20 17:30 ` Wei Liu
  -- strict thread matches above, loose matches on Subject: below --
2017-02-17  3:34 Robert Urban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).