GSoC:Convert some utilities to emit XML

Adrian Chadd adrian at freebsd.org
Mon Mar 17 02:35:46 UTC 2014


Hi!

So I've just added libbsdstats to the tree, which some wireless tools
use (tools/tools/net80211/wlanstats is a good exmaple.)

I'd like to extend libbsdstats to have multiple output formats, including xml.

That way we can just "get" xml representations for any tools we
migrate to use libbsdstats.

I was thinking of maybe doing a conversion of iostat to begin with.

The only real downside with libbsdstats as it stands right now is that
it doesn't "know" about dynamic lists of things to display statistics
for, so it can't do the iostat/vmstat thing of listing statistics for
say, two or more disk devices at once. But it'd be good to teach it
that.

Thanks!



-a


On 16 March 2014 07:07, 徐志锋 <szive at live.com> wrote:
> Hello all,
> I'am going to apply the GSoC for the project "Machine readable output from userland utilities".
> I wonder how to enable the utilities to emit XML output ;Should I add an option saying -xml to
> enable this?
> JunOS can emit the XML output using the pipe to display xml(| display xml); and I also
> wonder how JunOS implemented this.
>
> Bests.
> _______________________________________________
> freebsd-hackers at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe at freebsd.org"


More information about the freebsd-hackers mailing list