question

berj275 avatar image
berj275 asked steve.lacerda answered

How can I get the list of currently connected users?

Hello Everyone!

I'm wondering how I can see a list of currently connected users to my DSE Cassandra v6.8 ring. Can someone tell me if there's a cqlsh command I can use, or a place where I can get user connection details from the OpsCenter tool?

Any information you can provide is greatly appreciated.

dsemonitoring
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered

In DSE 6.8 you can get information about connected clients by running:

$ nodetool clientstats

It lists detailed information such as client address, driver name + version, keyspace, encryption details and protocol version. I've explained them in more detail in questions #6113 and #10615.

For an example output and more info, see the Client statistics page. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

steve.lacerda avatar image
steve.lacerda answered

Alternatively, if you're using an older version, you can check with netstats and look for any clients connected to port 9042 (by default or whatever you have the native client port set to).

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.