Last active
April 25, 2022 08:15
-
-
Save sebastian-philipp/8e18f4815e90dc0f51fe3fbff8c8aae5 to your computer and use it in GitHub Desktop.
cephadm_status.sh to properly write the status of cephadm avoiding asking for the same kind of information again and again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CEPHADM="sudo cephadm" | |
| echo '# `ceph -s`' | |
| echo '```' | |
| $CEPHADM shell -- ceph -s | |
| echo '```' | |
| echo '# `ceph health detail`' | |
| echo '```' | |
| $CEPHADM shell -- ceph health detail | |
| echo '```' | |
| echo | |
| echo '# `ceph orch ls`' | |
| echo '```' | |
| $CEPHADM shell -- ceph orch ls --format yaml | |
| echo '```' | |
| echo | |
| echo '# `ceph orch ps`' | |
| echo '```' | |
| $CEPHADM shell -- ceph orch ps --format yaml | |
| echo '```' | |
| echo | |
| echo '# `ceph orch host ls`' | |
| echo '```' | |
| $CEPHADM shell -- ceph orch host ls --format yaml | |
| echo '```' | |
| echo | |
| echo '# `ceph orch device ls`' | |
| echo '```' | |
| $CEPHADM shell -- ceph orch device ls --format yaml | |
| echo '```' | |
| echo | |
| echo '# `ceph orch upgrade status`' | |
| echo '```' | |
| $CEPHADM shell -- ceph orch upgrade status --format yaml | |
| echo '```' | |
| echo | |
| echo '# `ceph log last cephadm`' | |
| echo '```' | |
| $CEPHADM shell -- ceph log last cephadm | |
| echo '```' | |
| echo '# `cephadm ls`' | |
| echo '```' | |
| $CEPHADM ls | |
| echo '```' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment