cdp-doctor scm list-commands

Scope

The cdp-doctor scm list-commands command lists the recent commands executed by the Cloudera Manager (SCM) Server, including their IDs and exit codes. It provides a quick way to review the history and execution status of Cloudera Manager operations, such as service startups, role initializations, directory creations, and plugin setups. This command is used primarily for diagnostics and validation of recent SCM-level activities, helping administrators confirm if all initialization and configuration tasks have been completed successfully.

Use Case

  • Verifying whether recent service deployment or initialization commands completed successfully.
  • Troubleshooting failed or incomplete SCM operations.
  • Auditing cluster bootstrap activities such as directory creation, Ranger setup, Hive table creation, or Atlas configuration.

Sample Output

Running the cdp-doctor scm list-commands command displays the following output

+---------------------------------------------------------+------------+-----------+
|                          Name                           |     ID     | Exit Code |
+---------------------------------------------------------+------------+-----------+
|                   atlas-ATLAS_SERVER                    | 1546363055 |     0     |
|                      hbase-export                       | 1546363045 |     1     |
|              ranger-tear-down-plugin-repo               | 1546350791 |     0     |
|              cloudera-mgmt-SERVICEMONITOR               | 1546336984 |     0     |
|                   hive-HIVEMETASTORE                    | 1546336904 |     0     |
|                    solr-SOLR_SERVER                     | 1546336889 |     0     |
|                   kafka-KAFKA_BROKER                    | 1546336887 |     0     |
|                  ranger-RANGER_ADMIN                    | 1546336815 |     0     |
|                      hdfs-NAMENODE                      | 1546336813 |     0     |
|                    zookeeper-server                     | 1546336801 |     0     |
+---------------------------------------------------------+------------+-----------+

Each row in the output represents a command that was executed by the Cloudera Manager.

Column Description
Name The name or type of the command executed (e.g., hdfs-NAMENODE-format, ranger-RANGER_ADMIN).
ID Unique command ID assigned by the Cloudera Manager. This ID can be used with the cdp-doctor scm describe-command --name for detailed logs.
Exit Code Status of the command execution:
  • 0: Success

    Command executed successfully.

  • 1: Failed or Incomplete

    Check the logs of the service in question.

    Use the following command for more details: cdp-doctor scm describe-command --name <CommandName>