def run_parallel_cmd()

in tools/torset-tool/torset-tool.py [0:0]


def run_parallel_cmd(hosts, private_key, cmd):
    try:
        client = ParallelSSHClient(hosts,pkey=f'{private_key}')
        output = client.run_command(cmd)
        client.join(output)
        return output
    except Exception as e:
        raise Exception(f"Error running command: {cmd}: {str(e)}")