We follow Bogoyavlensky's approach to deal with Bianchi class B cosmological models. We characterize the analytic integrability of such systems.