[ 
https://issues.apache.org/jira/browse/DISPATCH-1505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17159969#comment-17159969
 ] 

ASF subversion and git services commented on DISPATCH-1505:
-----------------------------------------------------------

Commit f5b98a1e41f3f08b80fba87fbc798e1bc72400dc in qpid-dispatch's branch 
refs/heads/master from Charles E. Rolke
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=f5b98a1 ]

DISPATCH-1505: Qdstat shows policy and vhost entities

  -p --policy   - base policy settings and status
  --vhosts      - vhost configuration with no group data
  --vhostgroups - vhost group configuration
  --vhoststats  - per-vhost statistics, per-vhost/user connections info

Policy is present even if it is not specified in the router config file.
Vhosts are present only if enabled in base policy.

The vhostgroups display is kind of ugly with superwide rows and
does not lend itself to the tabular format.  Similar to --log, it
is excluded from --all-entities and printed only on demand.

This closes #774


> [tools] Add policy and vhost information to qdstat
> --------------------------------------------------
>
>                 Key: DISPATCH-1505
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-1505
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Tools
>    Affects Versions: 1.9.0
>            Reporter: Charles E. Rolke
>            Assignee: Charles E. Rolke
>            Priority: Major
>
> Utility qdstat has no information about policy or vhost configuration
>  and does not expose any policy enforcement statistics.
>  This jira adds qdstat output for policy and vhost details.
> h3. qdstat --policy
> {noformat}
> maxConnections          5
> enableVhostPolicy       true
> enableVhostNamePatterns true
> policyDir               "."
> defaultVhost            "$default"
> connectionsProcessed    1
> connectionsDenied       0
> connectionsCurrent      1
> linksDenied             0
> totalDenials            0
> {noformat}
> h3. qdstat --vhost
> {noformat}
> hostname  maxConnections maxConnectionsPerUser maxConnectionsPerHost 
> allowUnknownUser userGroups
> boardwalk 10             2                     5                     true     
>         4
> safari    10             2                     5                     false    
>         3
> 0.0.0.0   50             5                     20                    true     
>         1
> localhost 50             5                     20                    true     
>         1
> 127.0.0.1 50             5                     20                    true     
>         1
> {noformat}
> h3. qdstat --vhost-stats
> {noformat}
> hostname   connectionsApproved connectionsDenied connectionsCurrent 
> activeUsers activeHosts sessionDenied senderDenied receiverDenied
> boardwalk  0                   0                 0                  0         
>   0           0             0            0
> safari     0                   0                 0                  0         
>   0           0             0            0
> 0.0.0.0    0                   0                 0                  0         
>   0           0             0            0
> localhost  0                   0                 0                  0         
>   0           0             0            0
> 127.0.0.1  20                  2                 2                  2         
>   1           0             5            3
> {noformat}
> Further data is available but would be difficult to display in tables due to 
> large sizes:
>  * How are vhost userGroups configured?
>  * What is the relationship between router connectionId, the vhost, the user, 
> and the remote host?
> These details are available via _qdmanage_.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to