Hi sarahr202,
Regarding your queries;
1)Above, after add , we just tell the file name "bundle-5.3R2.4-domestic-signed.tgz", what assumption does router make about the location of this file? How can we view the contents of the directory where the above file resides from CLI ?
>> The device would generally look for the file in the current location where it is pointing to.
You can check this via below steps;
>start shell
%pwd
This is generally /cf/root
If you change the directory to another location and then move to the operational mode , the particular command will look for the file in that location. for eg;
root> start shell
root@% pwd
/cf/root
root@% cd /var/log/
root@% cli
root> file list
/cf/var/log/:
JTAC
__jsrpd_commit_check__
appidd
authd_libstats
authd_profilelib
authd_sdb.log
authlib_jdhcpd_trace.log
autod
bin_messages
chassisd
cosd
dcd
dfwc
eccd
ext/
flowc/
fwauthd_chk_only
ggsn/
gres-tp
group_db.log
httpd.log
httpd.log.old
idpd
idpinfo_err
idpinfo_err.20110720
ifstraced
install
install.0.gz
install.1.gz
install.2.gz
install.3.gz
install.4.gz
interactive-commands
inventory
ipfd
jdhcpd_era_discover.log
jdhcpd_era_discover.log.0
jdhcpd_era_discover.log.1
jdhcpd_era_discover.log.2
jdhcpd_era_discover.log.3
jdhcpd_era_solicit.log
jdhcpd_era_solicit.log.0
jdhcpd_era_solicit.log.1
jdhcpd_era_solicit.log.2
---(more 44%)---[abort]
root> request system software add in
^
'in' is ambiguous.
Possible completions:
<package-name> URL or pathname of package
install Size: 831, Last changed: Nov 03 2016
install.0.gz Size: 911, Last changed: Nov 19 2011
install.1.gz Size: 610, Last changed: Jul 20 2011
install.2.gz Size: 625, Last changed: Mar 22 2011
install.3.gz Size: 622, Last changed: Dec 14 2010
install.4.gz Size: 630, Last changed: Dec 13 2010
interactive-commands Size: 0, Last changed: Mar 06 10:35:03
inventory Size: 108080, Last changed: Jun 24 02:20:07
root> request system software add in
You can check for the contents in that location by doing;
1. > file list
2. >start shell
%ls -l
For your second query;
2) Let say we have FTP server, a folder JUNUPGRADE contains " bundle-5.3R2.4-domestic-signed.tgz" on this FTP server. FTP server's IP is 199.199.199.1 and our Juniper router has IP of 199.199.199.2
What command can I use on Juniper CLI to copy the file bundle-5.3R2.4-domestic-signed.tgz onto Juniper router so that we can use the command request system software add jbundle-5.3R2.4-domestic-signed.tgz to upgrade JUNOS?
>> Please go through the method 2 in below kb;
https://kb.juniper.net/InfoCenter/index?page=content&id=KB16652&actp=METADATA#cli_tftp
HTH.