on all osds, or provided osds, thus simplifying the process of having to
parse `osd dump` for the same information.
-* The `mgrmap` metadata included in the structured ``ceph status`` (``ceph -s``)
- output is now more concise.
\ No newline at end of file
+* The structured output of ``ceph status`` or ``ceph -s`` is now more
+ concise, particularly the `mgrmap` and `monmap` sections, and the
+ structure of the `osdmap` section has been cleaned up.
f->close_section();
}
+void MonMap::dump_summary(Formatter *f) const
+{
+ f->dump_unsigned("epoch", epoch);
+ f->dump_string("min_mon_release_name", ceph::to_string(min_mon_release));
+ f->dump_unsigned("num_mons", ranks.size());
+}
+
+
// an ambiguous mon addr may be legacy or may be msgr2--we aren' sure.
// when that happens we need to try them both (unless we can
// reasonably infer from the port number which it is).
void print(std::ostream& out) const;
void print_summary(std::ostream& out) const;
void dump(ceph::Formatter *f) const;
+ void dump_summary(ceph::Formatter *f) const;
static void generate_test_instances(std::list<MonMap*>& o);
protected:
mono_clock::now() - quorum_since).count());
}
f->open_object_section("monmap");
- monmap->dump(f);
+ monmap->dump_summary(f);
f->close_section();
f->open_object_section("osdmap");
osdmon()->osdmap.print_summary(f, cout, string(12, ' '));