def is_command_successful(self, exclude=False, should_fail=False, should_increase=True, should_warn=False):
        """
        Verifying the command output indicates success. It's done by searching for keywords in the result
        :param exclude: If true, will verify the keywords do not exist in the command result
        :param should_fail: If true, will just return false and not run any further verification
        :param should_increase: If false, FAILED_TESTS_COUNT and NOT_RUN_TESTS_COUNT will not be increased
        :param should_warn: If True, self.is_successful value will be "Warn"
        :return: True if successful otherwise False.
        """
        global FAILED_TESTS_COUNT, NOT_RUN_TESTS_COUNT, WARNING_TESTS_COUNT
        if "not found" in str(self.command_result):
            self.is_successful = "Skip"
            if should_increase:
                NOT_RUN_TESTS_COUNT += 1
            return True

        value = self.calc_is_command_successful(exclude, should_fail)
        if value is True:
            self.is_successful = True
            return True
        else:
            if should_warn:
                self.is_successful = "Warn"
                if should_increase:
                    WARNING_TESTS_COUNT += 1
            else:
                self.is_successful = False
                if should_increase:
                    FAILED_TESTS_COUNT += 1

            return False

        Verifying the command output indicates success. It's done by searching for keywords in the result
        :param exclude: If true, will verify the keywords do not exist in the command result
        :param should_fail: If true, will just return false and not run any further verification
        :param should_increase: If false, FAILED_TESTS_COUNT and NOT_RUN_TESTS_COUNT will not be increased
        :param should_warn: If True, self.is_successful value will be "Warn"
        :return: True if successful otherwise False.
        
DataConnectors/Syslog/Sentinel_AMA_troubleshoot.py