@CommandHelp('Displays All Cluster Level Assetions !!')
    def _do_default(self, line):
        service_stats = self.logger.infoStatistics(stanza="service")
        namespace_stats = self.logger.infoStatistics(stanza="namespace")
        asserts = {}

        NOT_OK = 0
        WARNING = 0
        CRITICAL = 0

        for timestamp in sorted(service_stats.keys()):
            asserts[timestamp] = {}
            tot_objects = 0
            tot_refs = 0
            for node, stats in service_stats[timestamp].iteritems():
                tot_objects += int(stats["objects"])
                tot_refs += int(stats["record_refs"])
            if tot_objects != tot_refs:
                asserts[timestamp]["Object Count"] = ": objects=" + \
                    str(tot_objects) + " != refs=" + str(tot_refs)
                WARNING += 1

        for timestamp in sorted(service_stats.keys()):
            print terminal.fg_blue() + "************************** Assertions for %s **************************" % (timestamp) + terminal.fg_clear()
            for node, string in asserts[timestamp].iteritems():
                print terminal.bold() + node + terminal.unbold() + terminal.fg_red() + string + terminal.fg_clear()
dataset/ETHPy150Open aerospike/aerospike-admin/lib/logcontroller.py/HealthClusterController._do_default/original