Closed ajwillo closed 6 years ago
Hello!
Yes, it's possible! In your example may be a problem in an interactive command copy ftp
. Do you have file prompt quiet
applied? Can you post the output of this command from ssh?
Without file prompt quiet
it seems to be like that:
TEST#copy ftp://user:password@10.10.10.10/test.txt flash:
Destination filename [test.txt]? <---- Ask you for filename
Accessing ftp://*****:*****@10.10.10.10/test.txt...
So you need to use interactive command like that:
out = await ios.send_command(copy_cmd, pattern=r'Destination filename', strip_command=False)
out += await ios.send_command(filename, strip_command=False)
Or more simple solution - enable file prompt quiet
before copying any files :)
Thanks that works!
Is it possible to download an IOS for example from an ftp server using netdev? ive tried with the below
debugging gives the below output
im guessing at this stage its not possible? Thanks