Junos OS

Expand all | Collapse all

JUNOS UPGRADE: Use of request system software add

Jump to Best Answer
  • 1.  JUNOS UPGRADE: Use of request system software add

    Posted 07-03-2017 20:00

    Hi everybody.

     

    I am fairly new to Juniper,  apprecaite the help.

     

    Please consider the following command

     

    user@Merlot> request system software add jbundle-5.3R2.4-domestic-signed.tgz

     

    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 ?

     

    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?

     

    Much appreaited!!

     

     

     

     

     

     



  • 2.  RE: JUNOS UPGRADE: Use of request system software add
    Best Answer

     
    Posted 07-03-2017 20:10

    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.



  • 3.  RE: JUNOS UPGRADE: Use of request system software add

    Posted 07-03-2017 20:39

    Thanks



  • 4.  RE: JUNOS UPGRADE: Use of request system software add

    Posted 07-03-2017 22:29

    Hi,

     

    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 above command will find the bundle and load it from where you copied. This is usually downloaded  before the maintenace to the juniper recommended location  /var/tmp/

     

    If you face any issue you can optionally specify the location of the bundle with the command :

    request system software add /var/tmp/ < JUNOS_install_file>

     

    Below is from Juniper document:

    Note: We recommend that you always download the software image to /var/tmp only.

     

     

     

     

    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?

     

    Copy the bundle from server to /var/tmp using the below scp command from juniper cli:

     

    scp <Server_path>/bundle-5.3R2.4-domestic-signed.tgz  user@<IP_address_lo0>:/var/tmp/

     

     

     

    Regards

    Rahul

     

    Please mark my solution as accepted if it helped.



  • 5.  RE: JUNOS UPGRADE: Use of request system software add

    Posted 07-04-2017 20:11

    Hi Rahul,

     

    Just thought about it a little deeper:

     

    The above command will find the bundle and load it from where you copied. This is usually downloaded  before the maintenace to the juniper recommended location  /var/tmp/

     

    If you face any issue you can optionally specify the location of the bundle with the command :

    request system software add /var/tmp/ < JUNOS_install_file>

     

     

    So when we use the command " request sytem software add  THE PATH TO JUNOS IMAGE, Router simply copies the image into flash.  Does it not delete the image after it gets copied into flash? If not ,  we can have multiple JUNOS images eating all the memory on the hard disk.

     

    Thoughts?

     

    Thanks and have a nice day!!

     

     

     

     



  • 6.  RE: JUNOS UPGRADE: Use of request system software add

    Posted 07-04-2017 20:41

    Hi,

     

    The Junos image copied on hard disk will not be automatically deleted. We need to delete the unused files either manually or using command " request system storage cleanup". To see what all files this command will delete use "show system storage cleanup dry-run".

     

    Here is the document :

     

    https://www.juniper.net/documentation/en_US/junos/topics/reference/command-summary/request-system-storage-cleanup.html

     

     

    Regards,

    Rahul

     

    Please mark my solution as accepted if it helped.



  • 7.  RE: JUNOS UPGRADE: Use of request system software add

    Posted 07-07-2017 13:59

    Great!!