Having a hard time figuring out how to write a regular expression in python/exscript so that the prompt matches the output when i run "copy run tftp"...
For example the prompt changes to...
"Address or name of remote host []?"
then to...
"Destination filename [lab-3560.confg]?"
I know I need to set the "set_prompt()" prior to executing the command conn.execute('copy run tftp') just no clue on the proper syntax(s)
There are so many ways to do this, here is an example:
So all you need to do is parse the returned prompt/text, here is a small example from this link: