FreeKB - RabbitMQ Listing channels using the rabbitmqctl command
RabbitMQ - Listing channels using the rabbitmqctl command

The rabbitmqctl command with the list_channels option can be used to list all of the channels.

rabbitmqctl list_channels

 

Something like this should be returned.

[root@tladist003 rabbitmq]# rabbitmqctl list_channels
Listing channels
<rabbit@server001.3.2404.0>    channel001   0       0
<rabbit@server001.3.2408.0>    channel002   0       0
<rabbit@server001.3.7738.0>    channel003   1       0

 

The name and user options are commonly used to display the source and target IP address and the user associated with the channel.

rabbitmqctl list_channels name user

 

Which should return something like this. Notice a unique source port for each channel.

10.12.211.15:11525 -> 10.16.11.105:5672 (1)    john.doe
10.12.211.15:17551 -> 10.16.11.105:5672 (2)    jane.doe
10.12.211.15:21155 -> 10.16.11.105:5672 (1)    jack.doe

 

The --formatter json option can be used to return the output in JSON.

rabbitmqctl list_channels --formatter json


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter f1578 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |