CDP CLI commands to manage On Premises Clusters
After creating and registering an On Premises Cluster, you can complete different operations based on the available CDP CLI commands.
Deleting On Premises Clusters
To delete the partial or completely registered On Premises Cluster, you can use the
following
commands:
cdp onpremises delete-partially-registered-cluster --no-verify-tls --cli-input-json '{
"clusterCrn": "crn:cdp:classicclusters:us-west-1:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58:cluster:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58"
}'
cdp onpremises delete-cluster --no-verify-tls --cli-input-json '{
"dcName": "data-center-1",
"name": "Cluster 1"
}'Describing On Premises Clusters
To obtain detailed information about the registered On Premises Cluster, you can use
the following
command:
cdp onpremises describe-cluster --no-verify-tls --cli-input-json '{
"clusterCrn": "crn:cdp:classicclusters:us-west-1:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58:cluster:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58"
}'The command returns a similar response as shown in the following
example:{
"cluster": {
"clusterCrn": "crn:cdp:classicclusters:us-west-1:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58:cluster:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58",
"name": "Cluster 1",
"datacenterName": "test-data-center-1",
"id": 283149,
"ipAddress": "testcloud-1.testuser.root.comops.site",
"clusterType": "CDPDC",
"state": "SYNCED",
"description": "test-data-center",
"lastCreateTime": "2026-11-04T12:33:13.873000+00:00",
"lastUpdatedTime": "2026-11-04T12:34:55.923000+00:00",
"data": {
"name": "Cluster 1",
"version": "7.2.18",
"displayName": "Cluster 1",
"secured": false,
"clusterDetails": {
"name": "Cluster 1",
"displayName": "Cluster 1",
"fullVersion": "7.2.18",
"clusterUrl": "http://testcloud-1.testuser.root.comops.site:7180/cmf/clusterRedirect/Cluster+1",
"hostsUrl": "http://testcloud-1.testuser.root.comops.site:7180/cmf/clusterRedirect/Cluster+1/hosts",
"entityStatus": "GOOD_HEALTH",
"uuid": "9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58",
"clouderaManagerClusterType": "BASE_CLUSTER"
},
"stats": "{\"cluster:hosts:health\":{\"TOTAL\":3,\"GOOD\":3},\"service:hdfs-datanode:health\":{\"TOTAL\":2,\"GOOD\":2},\"service:yarn-resourcemanager:uptime\":1390189.8342449188,\"service:yarn-nodemanager:health\":{\"TOTAL\":2,\"GOOD\":2},\"service:kafka:active-controller\":1,\"service:kafka-broker:health\":{\"TOTAL\":3,\"GOOD\":3},\"service:hdfs-namenode:heap-size\":{\"HEAP_USED\":234.14646,\"HEAP_SIZE\":4062.75},\"service:hdfs-namenode:capacity\":{\"CAPACITY_SIZE\":5.19259168768E11,\"CAPACITY_USED\":1.49746223156E10},\"service:yarn-nodemanager:heap-size\":{\"HEAP_USED\":125.43349450000001,\"HEAP_SIZE\":2014.75},\"service:kafka:metrics\":{\"total_kafka_leader_replicas_across_kafka_brokers\":324.0,\"total_kafka_bytes_fetched_rate_across_kafka_brokers\":461.0778707048254,\"total_kafka_messages_received_rate_across_kafka_brokers\":44.01076224877281,\"total_kafka_under_replicated_partitions_across_kafka_brokers\":0.0,\"total_kafka_partitions_across_kafka_brokers\":966.0,\"total_kafka_max_replication_lag_across_kafka_brokers\":0.0,\"total_kafka_bytes_received_rate_across_kafka_brokers\":773.6426382328424},\"cluster:services:count\":27}"
},
"username": "admin",
"password": "thunderhead-remotecluster/thunderhead-remotecluster/shared/9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58/registrations/9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58/manager:password",
"allowUntrusted": true,
"managerType": "CLOUDERA_MANAGER",
"managerUri": "http://testcloud-1.testuser.root.comops.site:7180",
"createdBy": "crn:altus:iam:us-west-1:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58:user:9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58",
"location": {
"id": 2901,
"city": "Panaji",
"province": "Goa",
"country": "India",
"latitude": "15.491997",
"longitude": "73.818001"
},
"properties": "{\"tags\":[]}",
"cmClusterUuid": "9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58"
},
"hosts": [
{
"hostname": "testcloud-1.testuser.root.comops.site",
"ipAddress": "10.140.104.135",
"status": "COMMISSIONED",
"hostId": "9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58",
"distribution": {
"distributionType": "RHEL8",
"name": "redhat",
"version": "8.4"
}
},
{
"hostname": "testcloud-2.testuser.root.comops.site",
"ipAddress": "10.140.192.198",
"status": "COMMISSIONED",
"hostId": "9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58",
"distribution": {
"distributionType": "RHEL8",
"name": "redhat",
"version": "8.4"
}
},
{
"hostname": "testcloud-3.testuser.root.comops.site",
"ipAddress": "10.140.133.143",
"status": "GOOD",
"hostId": "9cf0acd8-73fa-4c8a-b4fa-9ec2fc46eb58"
}
]
}Obtaining certificate refresh script
To extract the certificate refresh script for updating certificates, you can use the
following
command:
cdp onpremises extract-certificate-refresh-scriptListing registered On Premises Clusters
To list all of the registered On Premises Clusters, you can use the following
command:
cdp onpremises list-clustersListing partially registered On Premises Clusters
To list partially registered On Premises Clusters, you can use the following
command:
cdp onpremises list-partially-registered-clustersListing locations
To list the locations and details, where the On Premises clusters are registered,
you can use the following
command:
cdp onpremises list-locationsUpdating On Premises Cluster
To update the details of a registered On Premises Cluster, you can use the following
command:
cdp onpremises update-clusterValidating On Premises Cluster for Data Lake
To validate if an On Premises Cluster can be used as a Data Lake, you can use the
following
command:
cdp onpremises validate-cluster-for-datalake For more information for the On Premises CLI commands, see the beta CDP CLI beta documentation.
