Bug 798268 - qpid-stat does not allow to combine different options in one run (qpid-stat -b -q)
qpid-stat does not allow to combine different options in one run (qpid-stat -...
Status: NEW
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-tools (Show other bugs)
Development
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Ted Ross
MRG Quality Engineering
: Improvement
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-02-28 08:41 EST by Frantisek Reznicek
Modified: 2015-11-15 20:17 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Frantisek Reznicek 2012-02-28 08:41:26 EST
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.