示例#1
0
    def get_all_connection(self, timerange):
        arg = []
        for lb_index in range(len(self.data)):
            for ssl_index in range(len(self.data[lb_index]['ssl'])):
                arg.append((lb_index, ssl_index, timerange))
        multithreadrun(self.get_connection, arg, 30)

        datafile = open(self.datafile + "." + timerange, "w")
        print >>datafile, self.data
        datafile.close()
def main():
    alllbsslstat = []
    arg = []
    for i in glob("/var/tmp/current/*.ns.conf") + glob("/var/tmp/current/*.bigip.conf"):
        lbsslstat = GetLBAndCertInfo()
        alllbsslstat.append(lbsslstat)
        arg.append((lbsslstat, i))

    # a  = GetLBAndCertInfo()
    multithreadrun(childthread, arg, 40)

    alldata = []
    for i in alllbsslstat:
        if i.data["ssl"] != []:
            alldata.append(i.data)
    file = open("/var/tmp/sslstat", "w")
    print >> file, alldata