From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 17 02:35:46 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9932F814 for ; Mon, 17 Mar 2014 02:35:46 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 585639C for ; Mon, 17 Mar 2014 02:35:46 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id o15so4728401qap.37 for ; Sun, 16 Mar 2014 19:35:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=YVjCUAtAohKzHQldflFpYCu5nVSs6goMhxeGYldOah0=; b=pzAR7GWY8586nw0FIBn4yFcot4dSuln5EYBSSbAF2WPdlVzyh+UZXvKGYXqx5v/dA/ lk8tgolZhzGe+63pdWN2gR54fUvrw44l5bJySonYWzFJsZ0ORWLURMSy0GQ9agVtZrP/ enyJpGLNKTB1STlsQVXkcRT1msajbpKcnf3gNNjzGMiyrCLtkWtRAR1Kbp8hN4FHYDUv 8rAKrNwb0YnjDrRB6Yq3RS6z1DjnQLu1BIM8ejPl6FAMK69/VZXodk58e9sgGdDQ78K6 PdRDicP8lb8QDGR85DfQy6JD08hOWX2qsIt6gLVNLxCOkrPRtfaQMAXJ+rOhlEFniKOf MpeQ== MIME-Version: 1.0 X-Received: by 10.140.84.231 with SMTP id l94mr6136013qgd.75.1395023745536; Sun, 16 Mar 2014 19:35:45 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.8.137 with HTTP; Sun, 16 Mar 2014 19:35:45 -0700 (PDT) In-Reply-To: References: Date: Sun, 16 Mar 2014 19:35:45 -0700 X-Google-Sender-Auth: QiIGVbYZ71bL7tRb3OKvA4y-3BA Message-ID: Subject: Re: GSoC:Convert some utilities to emit XML From: Adrian Chadd To: =?UTF-8?B?5b6Q5b+X6ZSL?= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD-Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Mar 2014 02:35:46 -0000 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 x= ml. 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, =E5=BE=90=E5=BF=97=E9=94=8B wrote: > Hello all, > I'am going to apply the GSoC for the project "Machine readable output fro= m 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@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= "