Skip to content

Instantly share code, notes, and snippets.

@sebastian-philipp
Last active April 25, 2022 08:15
Show Gist options
  • Select an option

  • Save sebastian-philipp/8e18f4815e90dc0f51fe3fbff8c8aae5 to your computer and use it in GitHub Desktop.

Select an option

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
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