a new york city based group for IT professionals

Copying from a SFTP Server

In this quick post, I wanted to give the syntax used to copy files to an Arista switch.

Normally we’re used to copying using a FTP or SFTP server off a file share in our corp env. Playing with an Arista switch we have a few other options other than SFTP or FTP.

 

boot-extensions Copy boot extensions configuration
certificate: Source file path
clean-config Copy from clean, default, configuration
extension: Source file path
file: Source file path
flash: Source file path
ftp: Source file path
http: Source file path
https: Source file path
installed-extensions Copy installed extensions status
running-config Copy from current system configuration
scp: Source file path
sftp: Source file path
startup-config Copy from startup configuration
system: Source file path
terminal: Source file path
tftp: Source file path

 

HTTP/HTTPS and SCP stands out from this list being other options I haven’t seen before.  However, copying from a SFTP server the ? mark here isnt too helpful.

copy sftp: flash:
% Error copying sftp: to flash: (A username is required to use sftp)

Here’s a quick syntax to do this. Once again, knowing Linux comes in helpful here.

copy sftp://william:password@192.168.1.1/folder/somefiles.txt flash:

william is my username, password is my password :) and the IP address is my SFTP server.

Depending where your final folder is sitting, you may need to specify some folder(s) until you finally drill down to the actual file.

 

 

William Zambrano

William Zambrano

NYC networkers is run by William Zambrano, a passionate network engineer who has been in the IT industry for eight years who posts up blog articles, YouTube videos, and holds meetup.com events in the NYC area. He lives in Queens, New York and has consulted in various different companies in the NY area. Previously William worked as a Cisco Certified Systems Instructor (CCSI) but now currently works for Arista Networks serving as a Systems Engineer. William can be reached by email at willzambrano@gmail.com

More Posts - Website

Submit a Comment

Your email address will not be published. Required fields are marked *


3 − two =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>