This feature is available after 1.4.1. Also note that this is not ready for production use and still under development/testing.

>># ambari_shell --host localhost --port 8080 --user admin --password admin
Welcome to the Ambari Shell
type help to show all commands.
ambari> help

Commands
=========================
stop_component  restart_component  start_component
start_cluster   stop_cluster       restart_cluster
stop_service    restart_service    start_service
create_service  create_component   create_config    create_cluster
stack_info      blueprints
version status  show  components

Other Commands
==============
help

ambari> help show

Usage:
     > show clusters
     > show hosts
     > show services
     > show components
     > show configs
     > show blueprints

ambari> show clusters
+---------------------+
|    CLUSTER NAME     |
+---------------------+
| cluster1 - HDP-1.2.1|
+---------------------+

ambari> show hosts
+---------------+-----------+--------+
| NODES         |     IP    |RACK-INFO |
+---------------+-----------+--------+
| node1.hadoop | 172.24.1.1 | /rack01 |
| node2.hadoop | 172.24.1.2 | /rack01 |
| node3.hadoop | 172.24.1.3 | /rack01 |
| node4.hadoop | 172.24.1.4 | /rack01 |
| node5.hadoop | 172.24.1.5 | /rack01 |
| node6.hadoop | 172.24.1.6 | /rack01 |
| node7.hadoop | 172.24.1.7 | /rack01 |
| node8.hadoop | 172.24.1.8 | /rack01 |
| node9.hadoop | 172.24.1.9 | /rack01 |
+---------------+-----------+--------+

ambari> show services
  • No labels