def list(self, arg, opts):
        connectors = self.pb['smppcm'].perspective_connector_list()
        counter = 0

        if (len(connectors)) > 0:
            self.protocol.sendData("#%s %s %s %s %s" % (
                'Connector id'.ljust(35),
                'Service'.ljust(7),
                'Session'.ljust(16),
                'Starts'.ljust(6),
                'Stops'.ljust(5)), prompt=False)

            for connector in connectors:
                counter += 1
                self.protocol.sendData("#%s %s %s %s %s" % (
                    str(connector['id']).ljust(35),
                    str('started' if connector['service_status'] == 1 else 'stopped').ljust(7),
                    str(connector['session_state']).ljust(16),
                    str(connector['start_count']).ljust(6),
                    str(connector['stop_count']).ljust(5),
                    ), prompt=False)
                self.protocol.sendData(prompt=False)

        self.protocol.sendData('Total connectors: %s' % counter)
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/cli/smppccm.py/SmppCCManager.list/original