Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AAB37200BB3 for ; Wed, 2 Nov 2016 18:27:20 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A93B0160AFB; Wed, 2 Nov 2016 17:27:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C9D16160AF0 for ; Wed, 2 Nov 2016 18:27:19 +0100 (CET) Received: (qmail 89100 invoked by uid 500); 2 Nov 2016 17:27:18 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 88785 invoked by uid 99); 2 Nov 2016 17:27:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 17:27:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 978ACC0829 for ; Wed, 2 Nov 2016 17:27:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.221 X-Spam-Level: X-Spam-Status: No, score=-7.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id C32oNCgTzO-3 for ; Wed, 2 Nov 2016 17:27:15 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 0003F5FB2B for ; Wed, 2 Nov 2016 17:27:14 +0000 (UTC) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6EB083D952 for ; Wed, 2 Nov 2016 17:27:14 +0000 (UTC) Received: from ovpn-112-91.phx2.redhat.com (ovpn-112-91.phx2.redhat.com [10.3.112.91]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uA2HRBUv000778 for ; Wed, 2 Nov 2016 13:27:13 -0400 Message-ID: <1478107631.5658.77.camel@redhat.com> Subject: Re: qpid monitoring tool in GO From: Alan Conway To: users@qpid.apache.org Date: Wed, 02 Nov 2016 13:27:11 -0400 In-Reply-To: References: <1477579322.11433.54.camel@redhat.com> <1477602355.11433.122.camel@redhat.com> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 02 Nov 2016 17:27:14 +0000 (UTC) archived-at: Wed, 02 Nov 2016 17:27:20 -0000 On Tue, 2016-11-01 at 12:20 -0700, rammohan ganapavarapu wrote: > I have "qpid-proton-c-0.14.0-1.el6.x86_64" installed and my borker > version > is "qpid-cpp-server-1.35.0-2.el6.x86_64" so the proton-c rpm version > is not > right? > You need qpid-proton-c-devel RPM for the header files which are used to compile the Go binding. With that you should be able to     go get qpid.apache.org/electron Note I updated it yesterday, so if it didn't work before, try again. > Ram > > On Thu, Oct 27, 2016 at 2:05 PM, Alan Conway > wrote: > > > > > On Thu, 2016-10-27 at 10:16 -0700, rammohan ganapavarapu wrote: > > > > > > Alan, > > > > > > I was trying to use this one http://godoc.org/github.com/streadwa > > > y/am > > > qp > > > > > > but not sure if it will work with any qpid broker or not, i am > > > getting > > > "2016/10/27 04:09:48 Exception (501) Reason: "Exception (501) > > > Reason: > > > \"frame could not be parsed\""" > > > > > > > First, make sure your qpidd is built & configured to support AMQP > > 1.0. > > The go client doesn't speak the older 0-10 version that qpidd also > > uses, but qpidd has spoken AMQP 1.0 for a long time so that > > shouldn't > > be a problem. > > > > Second: The Go client is a wrapper for a C library, there may be a > > mismatch between the Go code and the proton-C library you have > > installed. I would suggest downloading the latest proton release > > from > > > >   http://qpid.apache.org/proton/ > > > > and use the matching C and Go code from the release. We will figure > > out > > a better story for managing that relationship but we haven't yet :( > > > > Otherwise if you have to work with some specific (reasonably > > recent) > > older released version of proton I can help you get it working. > > > > Please let me know how you get on - like I said I'd like to add a > > generic request-response pattern to the electron package. > > > > > > > > Thanks, > > > Ram > > > > > > > > > On Thu, Oct 27, 2016 at 7:42 AM, Alan Conway > > > wrote: > > > > > > > > > > > > > > > On Wed, 2016-10-26 at 21:05 -0700, rammohan ganapavarapu wrote: > > > > > > > > > > > > > > > Hi, > > > > > > > > > > I am trying to write a qpid-stat tool in go, any one > > > > > attempted to > > > > > do > > > > > it, if > > > > > so can you please share your ideas? or if you have any > > > > > documents > > > > > on > > > > > how to > > > > > write please share. > > > > > > > > > > Thanks, > > > > > Ram > > > > > > > > For a Go client I recommend the qpid.apache.org/electron > > > > package > > > > which > > > > is part of the Proton project. > > > > > > > > https://github.com/apache/qpid-proton/tree/master/examples/go > > > > > > > > To work with the latest you should use the code from the proton > > > > repo > > > > rather than the `go get` version as it is still progressing > > > > rapidly. > > > > > > > > qpid-stat and the other qpid tools are based on the request- > > > > response > > > > message pattern: send a correctly-formatted QMF request message > > > > with > > > > correlation-id and then process the response message. There's a > > > > "canned" request-response pattern in python at: > > > > > > > > https://github.com/apache/qpid-proton/blob/master/proton-c/bind > > > > ings > > > > /pyt > > > > hon/proton/utils.py > > > > > > > > QMF messages are maps, so your main work will be to construct > > > > and > > > > interpret nested maps with the right names/values. Look at the > > > > qpid- > > > > stat sources and the qmf schemas here: > > > > > > > > /home/aconway/qpid-cpp/src/qpid/acl/management-schema.xml > > > > /home/aconway/qpid-cpp/src/qpid/broker/management-schema.xml > > > > /home/aconway/qpid-cpp/src/qpid/legacystore/management- > > > > schema.xml > > > > /home/aconway/qpid-cpp/src/qpid/ha/management-schema.xml > > > > /home/aconway/qpid-cpp/src/qpid/linearstore/management- > > > > schema.xml > > > > > > > > You are probably mostly/only interested in the broker schema. > > > > > > > > I am very interested in this as I worked on the Go binding and > > > > also > > > > on > > > > schema-driven management tools (in python) for qpid-dispatch. I > > > > would > > > > like to add a canned "request-response" pattern to the Go > > > > binding > > > > which > > > > would make your job easier, but I won't get to that in the > > > > immediate > > > > term so maybe you'll do it for me :) I'm happy to help with > > > > pointers > > > > and any problems you find in the Go binding. > > > > > > > > Cheers, > > > > Alan. > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------- > > > > ---- > > > > ---- > > > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > > > > For additional commands, e-mail: users-help@qpid.apache.org > > > > > > > > > > > > > > ----------------------------------------------------------------- > > ---- > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > > For additional commands, e-mail: users-help@qpid.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org