.. prompt:: bash #
- ceph orch host ls [--format yaml] [--host-pattern <name>] [--label <label>] [--host-status <status>]
+ ceph orch host ls [--format yaml] [--host-pattern <name>] [--label <label>] [--host-status <status>] [--detail]
- In commands of this form, the arguments "host-pattern", "label" and
+ In commands of this form, the arguments "host-pattern", "label", and
"host-status" are optional and are used for filtering.
-- "host-pattern" is a regex that will match against hostnames and will only
- return matching hosts.
+- "host-pattern" is a regex that matches against hostnames and returns only
+ matching hosts.
- "label" returns only hosts with the specified label.
- "host-status" returns only hosts with the specified status (currently
"offline" or "maintenance").
-- Any combination of these filtering flags is valid. You may filter against
- name, label and/or status simultaneously.
+- Any combination of these filtering flags is valid. It is possible to filter
+ against name, label and status simultaneously, or to filter against any
+ proper subset of name, label and status.
+ The "detail" parameter provides more host related information for cephadm based
+ clusters. For example:
+
+ .. prompt:: bash #
+
+ # ceph orch host ls --detail
+ HOSTNAME ADDRESS LABELS STATUS VENDOR/MODEL CPU HDD SSD NIC
+ ceph-master 192.168.122.73 _admin QEMU (Standard PC (Q35 + ICH9, 2009)) 4C/4T 4/1.6TB - 1
+ 1 hosts in cluster
+
.. _cephadm-adding-hosts:
Adding Hosts