Hi, I'm bigginer.
How do I get rid of the old OS after updating Junos?
Isn't that normal?
If you mean the Junos package you uploaded to the firewall for performing the upgrade, you can use the following command:
If you are refering to the backup Junos that is kept after a software upgrade, then you can use:
"request system software delete-backup"
Please tell me one more thing.I want to save the old OS to the PC by FTP.How can I do that?
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
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
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.
Thank you. I'll try.
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?
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.
QUE:- The old Junos package (.tgz) wasn't under /var/tmp/ directory...:’-(
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?
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.