The nodetool utility provides a simple command-line interface to the following exposed operations and attributes. Scylla’s nodetool is a fork of the Apache Cassandra nodetool with the same syntax and a subset of the operations.

Nodetool generic options

All options are supported:

( -h | --host ) <host name> | <ip address>
( -p | --port ) <port number>
( -pw | --password ) <password >
( -u | --username ) <user name>
( -pwf <passwordFilePath | --password-file <passwordFilePath> )

Supported Nodetool operations

Operations which are not listed below are currently not available.

  • cfhistograms - Provides statistics about a table, including number of SSTables, read/write latency, partition size and column count.
  • cfstats - Provides in-depth diagnostics regard table.
  • cleanup - Triggers the immediate cleanup of keys no longer belonging to a node.
  • clearsnapshot - This command removes snapshots.
  • compactionhistory - Provides the history of compactions
  • compactionstats - Print statistics on compactions
  • compact- Force a (major) compaction on one or more column families.
  • decommission - Decommission the node
  • describecluster - Print the name, snitch, partitioner and schema version of a cluster
  • describering <keyspace>- Shows the token ranges info of a given keyspace
  • disablebackup - Disable incremental backup
  • disablebinary - Disable native transport (binary protocol)
  • disablegossip - Disable gossip (effectively marking the node down)
  • drain - Drain the node (stop accepting writes and flush all column families)
  • enablebackup - Enable incremental backup
  • enablebinary - Reenable native transport (binary protocol)
  • enablegossip - Reenable gossip
  • flush - Flush one or more column families
  • getendpoints <keyspace> <table> <key>- Print the end points that owns the key
  • getlogginglevels - Get the runtime logging levels
  • gossipinfo - Shows the gossip information for the cluster
  • help - Display list of avilable nodetool commands.
  • info - Print node information
  • listsnapshots - Lists all the snapshots along with the size on disk and true size
  • move <new token>- Move node on the token ring to a new token
  • netstats - Print network information on provided host (connecting node by default)
  • proxyhistograms - Print statistic histograms for network operations
  • rebuild [<src-dc-name>]- Rebuild data by streaming from other nodes
  • refresh- Load newly placed SSTables to the system without restart
  • removenode <ID>- Remove node with the provided ID
  • repair <keyspace> <table> - Repair one or more tables
  • ring - The nodetool ring command display the token ring information.
  • setlogginglevel <class> <level>- Set the log level threshold
  • settraceprobability* -- <value> - Sets the probability for tracing a request. Value is trace probability between 0 and 1
  • snapshot [-t tag] [-cf column_family] <keyspace> - Take a snapshot of specified keyspaces or a snapshot of the specified table
  • statusbackup - Status of incremental backup
  • statusbinary - Status of native transport (binary protocol)
  • statusgossip - Status of gossip
  • status - Print cluster information
  • stop - Stop compaction.
  • version - Print the DB version