使用paramiko模块登录远程主机,对日志进行统计分析. import paramiko def batch_count(days, hours, ips, user, passwd, source_path, dest_path, port=22): for ip in ips: count(days, hours, ip, user, passwd, source_path, dest_path, port=22) def count(days, hours, ip, username,…