[
https://issues.apache.org/jira/browse/DISPATCH-878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16273395#comment-16273395
]
Alan Conway commented on DISPATCH-878:
--------------------------------------
FYI, on Unix platforms you can find the port using standard UNIX tools like
lsof, ss or netstat - with no help from qdrouterd. These tricks work on any
server with a single listening port - it gets trickier if your router has
multiple listening ports:
{code}
[aconway@grommit ~]$ lsof -p $(pidof qdrouterd) | grep TCP
qdrouterd 19463 aconway 7u IPv4 7805194 0t0 TCP
localhost:42433 (LISTEN)
[aconway@grommit ~]$ ss -tlp | grep qdrouter
LISTEN 0 50 127.0.0.1:42433 *:*
users:(("qdrouterd",pid=19463,fd=7))
[aconway@grommit ~]$ netstat -tlp | grep qdrouter
tcp 0 0 localhost:42433 0.0.0.0:* LISTEN
19463/qdrouterd
{code}
> qdrouterd should log real port if port 0 was specified for the listener port
> property in qdrouterd.conf
> -------------------------------------------------------------------------------------------------------
>
> Key: DISPATCH-878
> URL: https://issues.apache.org/jira/browse/DISPATCH-878
> Project: Qpid Dispatch
> Issue Type: Improvement
> Components: Container
> Environment: OS: Red Hat Linux Server release 6.4
> Dispatch version: 0.7.0
> Reporter: Jeremy
>
> For such a qdrouterd.conf configuration:
> {noformat}
> router {
> mode: standalone
> id: Router.A
> }
> listener {
> host: 0.0.0.0
> *port: 5673*
> authenticatePeer: no
> saslMechanisms: ANONYMOUS
> }
> {noformat}
> qdrouterd logs the port as such:
> {noformat}
> CONN_MGR (info) Configured Listener: 0.0.0.0:5673 proto=any, role=normal
> {noformat}
> When specifying port 0, so that the dispatch router runs on a random
> available port, the log is as such:
> {noformat}
> CONN_MGR (info) Configured Listener: 0.0.0.0:0 proto=any, role=normal
> {noformat}
> qdrouterd process can log instead the real port that was randomly chosen.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]