def main():
    """
    Use processes and Netmiko to connect to each of the devices. Execute
    'show version' on each device. Record the amount of time required to do this.
    """
    start_time = datetime.now()

    procs = []
    for a_device in devices:
        my_proc = Process(target=show_version, args=(a_device,))
        my_proc.start()
        procs.append(my_proc)

    for a_proc in procs:
        print(a_proc)
        a_proc.join()

    print("\nElapsed time: " + str(datetime.now() - start_time))
def main ( ) : start_time = datetime . now ( ) procs = [ ] for a_device in devices : my_proc = Process ( target = show_version , args = ( a_device , ) ) my_proc . start ( ) procs . append ( my_proc ) for a_proc in procs : print ( a_proc ) a_proc . join ( ) print ( "\nElapsed time: " + str ( datetime . now ( ) - start_time ) )
Use processes and Netmiko to connect to each of the devices. Execute
    'show version' on each device. Record the amount of time required to do this.