I am looking for a way to get the number of user sessions on each ejabberd node in a cluster via ejabberdctl. I have been trying different commands but it seems each time I am getting the total number of user sessions on the cluster.
More specifically, I have two nodes that are running on two different servers, but joined in a cluster:
ppejabberd1@renton (master) ppejabberd2@rialto (slave)
When I run "ejabberdctl connected_users_info" I see all the connections on both nodes displayed. I can see there are 4 connections on "ppejabberd1@renton" and 10 connections on "ppejabberd2@rialto"
When I run "ejabberdctl connected_users_number", I get 14, which is the total number.
To get the per node number I tried running "ejabberdctl --node ppejabberd1@renton connected_users_number", I still get 14.
[ejabberd@renton xmpp]$ ejabberdctl --node ppejabberd1@renton connected_users_number 14 [ejabberd@renton xmpp]$ ejabberdctl --node ppejabberd2@rialto connected_users_number 14 [ejabberd@renton xmpp]$ ejabberdctl connected_users_number 14
This should be an easy enough command but I couldnt find one that works for me. Any ideas?
Thank you!