[rabbitmq-discuss] Auto-disconnecting a deleted user
Simon MacMullen
simon at rabbitmq.com
Wed Aug 17 12:38:34 BST 2011
On 17/08/11 12:34, Matthias Radestock wrote:
> After removing the user, simply use rabbitmqctl / the management API /
> the management UI to list the connections, filter them by the removed
> user, and then use 'rabbitmqctl close_connection <connection_pid>' (or
> the equivalent management API/UI action) to close these connections.
rabbitmqctl example for user "test":
rabbitmqctl list_connections user pid | grep -P '^test\t' | cut -f 2 |
while read pid ; do rabbitmqctl close_connection $pid "You no longer
exist, go away." ; done
Cheers, Simon
--
Simon MacMullen
RabbitMQ, VMware
More information about the rabbitmq-discuss
mailing list