3. Junos software upgrade via FTP using wget

3. Junos software upgrade via FTP using wget

I have had some challenges when I wanted to copy Junos from ftp server directly to my Juniper router (ACX7100) when the ftp server asked me to provide username and password.

So I write here a useful and also simple command which could be used in FreeBSD (shell) in order to copy a file from ftp server to Juniper router.

wget -r -np -nd --user=[username] --password=[password] ftp://[FtpServer.address]/FirstFolder/SecondFolder/...../[DestinationFile] -P /var/tmp/



-r

????--recursive

??????Turn on recursive retrieving.??The default maximum depth is 5.



-nv

????--no-verbose

??????Turn off verbose without being completely quiet (use -q for that),

??? which means that error messages and basic information still get

??????printed.


-nd

????--no-directories

??????Do not create a hierarchy of directories when retrieving

??????recursively.?With this option turned on, all files will get saved

??????to the current directory, without clobbering (if a name shows up

??????more than once, the filenames will get extensions .n).


-P prefix

????--directory-prefix=prefix

??????Set directory prefix to prefix.?The directory prefix is the

??????directory where all other files and subdirectories will be saved

??????to, i.e. the top of the retrieval tree.?The default is . (the

??????current directory).


#Juniper #Junos #Junos_upgrade #ACX7100_48L

要查看或添加评论,请登录

Mohsen Jamshidi的更多文章

  • 2.Juniper Training for free.

    2.Juniper Training for free.

    One of the biggest disadvantages of migrating from Cisco to Juniper is that you have to learn all the new and different…

    1 条评论
  • 1. Learning Network in German, for free!

    1. Learning Network in German, for free!

    You are a German native speaker and want to learn "computer networking"? Or do you want to work as a network…

    3 条评论
  • How to Copy a file from Cisco Router to FTP server.

    How to Copy a file from Cisco Router to FTP server.

    How to copy from Cisco Router/Switch/etc to ftp server with only one command when it requires providing username and…

社区洞察

其他会员也浏览了