Bug 798268 - qpid-stat does not allow to combine different options in one run (qpid-stat -b -q)
Summary: qpid-stat does not allow to combine different options in one run (qpid-stat -...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-tools
Version: Development
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: messaging-bugs
QA Contact: MRG Quality Engineering
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-28 13:41 UTC by Frantisek Reznicek
Modified: 2021-03-16 12:47 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Frantisek Reznicek 2012-02-28 13:41:26 UTC
Description of problem:

qpid-stat does not allow to combine different options in one run, for instance commands:
 qpid-stat -b -q -c
 qpid-stat -bqc

are treated as qpid-stat -c

qpid-stat usage does not restrict usage to one display option at one time.


There are two possible ways how to fix it.
a] preferable - change behavior
   qpid-stat should handle multiple display options.

b] optional - update help
   qpid-stat -h should instruct user to use just one display option at time


Version-Release number of selected component (if applicable):
qpid-tools-0.14-1

How reproducible:
100%

Steps to Reproduce:
1. qpid-stat -b -q -c
2. see connection list but not others
  
Actual results:
qpid-stat is not able to provide more than one display statistic type at a time.

Expected results:
qpid-stat should be able to provide more than one display statistic type at a time.

Additional info:

  [root@dhcp-37-178 ~]# qpid-stat -bqc
  Connections
    client-addr             cproc  cpid  auth       connected  idle  msgIn  msgOut
    ================================================================================
    [::1]:5672-[::1]:52564               anonymous  0s         0s     214    235
  [root@dhcp-37-178 ~]#
  [root@dhcp-37-178 ~]# qpid-stat -b -q -c
  Connections
    client-addr             cproc  cpid  auth       connected  idle  msgIn  msgOut
    ================================================================================
    [::1]:5672-[::1]:52565               anonymous  0s         0s     214    235
  [root@dhcp-37-178 ~]# qpid-stat -bcq
  Queues
    queue                                                  dur  autoDel  excl  msg   msgIn  msgOut  bytes  bytesIn  bytesOut  cons  bind
    ======================================================================================================================================
    qmfc-v2-ui-dhcp-37-178....21195.1       Y        Y        0     0      0       0      0        0         1     1
    reply-dhcp-37-178....21195.1            Y        Y        0    61     61       0   24.9k    24.9k        1     2
    qmfc-v2-dhcp-37-178....21195.1          Y        Y        0    11     11       0   8.86k    8.86k        1     2
    topic-dhcp-37-178....21195.1            Y        Y        0     0      0       0      0        0         1     4
    qmfc-v2-hb-dhcp-37-178....21195.1       Y        Y        0     0      0       0      0        0         1     2


Note You need to log in before you can comment on or make changes to this bug.