I am trying to login to enable mode on a Cisco ASA with this script. I can’t 
seem to get the enable mode to work. Can anyone help. Does anyone know of a 
good doc for exscript lib.

Thank you 

Ed







from Exscript.util.start import quickstart
from Exscript.util.file  import get_hosts_from_file
from Exscript.protocols.drivers import ios


def do_something(job, host, conn):


     conn.send("enable\r")
     get_password_prompt(self)
     print conn.response


    #conn.execute('sh run | i  ipv6-address-pool')
    #print conn.response




hosts = get_hosts_from_file('myhosts.txt','ssh')
quickstart(hosts, do_something,max_threads = 4 )


-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to