发布时间:2013-09-13 15:11:56
#!/usr/bin/env python#coding=utf-8import paramikoimport time,datetime,threadingdef ssh(ip,user,passwd,command): ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy()) try: ssh.connect(ip,port=.........【阅读全文】
发布时间:2013-09-09 08:09:57
import optparse, os, socket, timedef parse_args(): usage = """ python test.py test""" parser = optparse.OptionParser(usage) help = "Iplist File" parser.add_option("-f","--file", dest='iplistfile',default='iplist.txt',h.........【阅读全文】
发布时间:2013-09-08 21:28:33
import multiprocessingimport time,datetimedef Ssh_Cmd(host,CmdFile): elog = open('error.log','a+') log = open('7z.log',"a+") for Cmd in open(CmdFile).readlines(): &n.........【阅读全文】