Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 7601 invoked from network); 18 Oct 2007 14:11:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Oct 2007 14:11:53 -0000 Received: (qmail 21587 invoked by uid 500); 18 Oct 2007 14:11:40 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 21561 invoked by uid 500); 18 Oct 2007 14:11:40 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 21552 invoked by uid 99); 18 Oct 2007 14:11:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 07:11:40 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Oct 2007 14:11:42 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IiW5p-0003pa-Kt for users@activemq.apache.org; Thu, 18 Oct 2007 07:11:21 -0700 Message-ID: <13275339.post@talk.nabble.com> Date: Thu, 18 Oct 2007 07:11:21 -0700 (PDT) From: jmorri To: users@activemq.apache.org Subject: Re: Determine what ports ActiveMQ is listening on In-Reply-To: <13275182.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jeffrey.s.morrison@boeing.com References: <13258806.post@talk.nabble.com> <13275182.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org j0llyr0g3r wrote: > > Hi, > > if activemq is the only java-process running, you could execute something > like: > > netstat -tulpen | grep -i java > > with the processbuilder from within java and then parse the corresponding > output (i assume you are using Linux) for the listed ports. > Thanks for the suggestion. I'm using Solaris, do you know a comparable set of flags to -tulpen that would work in Solaris (I'm not familiar with the command outside of netstat -an)? netstat: illegal option -- t usage: netstat [-anv] [-f address_family] netstat [-g | -p | -s] [-n] [-f address_family] [-P protocol] netstat -m netstat -i [-I interface] [-an] [-f address_family] [interval] netstat -r [-anv] [-f address_family] netstat -M [-ns] [-f address_family] netstat -D [-I interface] [-f address_family] -- View this message in context: http://www.nabble.com/Determine-what-ports-ActiveMQ-is-listening-on-tf4642072s2354.html#a13275339 Sent from the ActiveMQ - User mailing list archive at Nabble.com.