SRX

last person joined: yesterday 

Ask questions and share experiences about the SRX Series, vSRX, and cSRX.
  • 1.  How do I get rid of the old OS after updating Junos?

    Posted 07-28-2019 20:55

    Hi, I'm bigginer.

    How do I get rid of the old OS after updating Junos?

    Isn't that normal?



  • 2.  RE: How do I get rid of the old OS after updating Junos?
    Best Answer

    Posted 07-28-2019 21:26

    Hi,

     

    If you mean the Junos package you uploaded to the firewall for performing the upgrade, you can use the following command:

     

    https://www.juniper.net/documentation/en_US/junos/topics/task/operational/file-creating.html

     

    If you are refering to the backup Junos that is kept after a software upgrade, then you can use:

     

    "request system software delete-backup"

     



  • 3.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-28-2019 22:30

    Thank you.

    Please tell me one more thing.
    I want to save the old OS to the PC by FTP.
    How can I do that?



  • 4.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-28-2019 22:40
    Hi Yamada,

    Enable FTP on the srx using the command below:
    #Set system service ftp
    #commit

    Once the ftp service is enabled, use any ftp client and connect to the device and download the old OS from the device.


    Regards,
    Guru Prasad





    Juniper Business Use Only


  • 5.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-28-2019 23:25

    Hi, again

     

    If you still have the old Junos package (.tgz), maybe under /var/tmp/ directory, then you could download it via FTP:

     

    1. Enable FTP service on the SRX:

     

    #set system service ftp

    #commit

     

    2. Make sure FTP is allowed as host-inbound-traffic on the security-zone of the interface you will be connecting to:

     

    #set security zones security-zone [Zone_Name] interface [Interface_Name] host-inbound-traffic system-services ftp

    #commit

     

    3. Connect from a FTP client, like Winscp, and dowload the file.

     

    However if you no longer have the .tgz file under a specific directory, then it is not possible to download the Junos that was previously installed.

     



  • 6.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-29-2019 05:17

    Thank you. I'll try.



  • 7.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-29-2019 20:08

    The old Junos package (.tgz) wasn't under /var/tmp/ directory...:’-(

     

    Do you usually delete old OS? or do you keep it as a backup?



  • 8.  RE: How do I get rid of the old OS after updating Junos?

     
    Posted 07-29-2019 20:21

    Assuming you are using a SRX Branch device use the following options for backup:

     

    user@host> request system snapshot media

    Following options are supported:

    internal— Copies the snapshot to internal media.

    usb— Copies the snapshot to the USB storage device. This is the default option for SRX300, SRX320, SRX340, SRX345, and SRX550M devices.

    external— Copies the snapshot to an external storage device. This option is available for the compact flash on the SRX650 Services Gateway only.

     

    Now coming to the .tgz image file. That file can be deleted. If you do not find it within /var/tmp/ it could be because you did not specify the path while copying. So please check under your user's home directory for the file.

     

    Anand



  • 9.  RE: How do I get rid of the old OS after updating Junos?

    Posted 07-29-2019 23:49

    Hi,

     

    QUE:- The old Junos package (.tgz) wasn't under /var/tmp/ directory...:’-(

    Juniper:-

    Use following in root directory to know where the file >10Mb are(look out for the old junos file):-

    sh -c 'find / -size +10485760c 2> /dev/null' | xargs du -h | sort -nr

     

    QUE:- Do you usually delete old OS? or do you keep it as a backup?

    Juniper:-

    SRX Branch devices are usually low in memory so the .tgz file if saved on the box should be removed and saved offline.

    Backup are usually kept if you would be rolling back to the older version for any reason (this is usually kept for few days after a new software installation.)

    Once the new software is stable, have thw new software snapshot and the old junos is no more required.