Exemplo n.º 1
0
def get_core_dumps(_input, path):
    ret = False
    for server in _input.servers:
        print("Grabbing core dumps files from %s" % server.ip)
        path = path or "."
        try:
            if Getcoredumps(server, path).run():
                ret = True
        except Exception as e:
            print("Failed to grab CORE DUMPS from %s: %s" % (server.ip, e))
    return ret
Exemplo n.º 2
0
def get_core_dumps(_input, path):
    ret = False
    for server in _input.servers:
        print(("grabbing core dumps files from {0}".format(server.ip)))
        path = path or "."
        try:
            if Getcoredumps(server, path).run():
                ret = True
        except Exception as e:
            log.error("NOT POSSIBLE TO GRAB CORE DUMPS FROM {0} : {1}".\
                format(server.ip, e))
    return ret