How to check about when junos upgrade and what previous version etc... Are there cli command to check this historical upgrade check?
On SRX, try "show system software backup". And on EX, "show system snapshot media internal". Hope that answers your query.
root> run show version
JUNOS Software Release [12.3X48-D30.7]
root> show system software backup
Backup JUNOS package information:
File name: /cf/packages/junos-12.3X48-D75.4-domestic
File size: 278776304
root> request system software rollback
Restoring boot file package
junos-12.3X48-D75.4-domestic will become active at next reboot
WARNING: A reboot is required to load this software correctly
WARNING: Use the 'request system reboot' command
WARNING: when software installation is complete
root@EX3200-24T-r001-S1> show version
JUNOS Base OS boot [12.3R12.4]
JUNOS Base OS Software Suite [12.3R12.4]
JUNOS Kernel Software Suite [12.3R12.4]
JUNOS Crypto Software Suite [12.3R12.4]
JUNOS Online Documentation [12.3R12.4]
JUNOS Enterprise Software Suite [12.3R12.4]
JUNOS Packet Forwarding Engine Enterprise Software Suite [12.3R12.4]
JUNOS Routing Software Suite [12.3R12.4]
JUNOS Web Management [12.3R12.4]
JUNOS FIPS mode utilities [12.3R12.4]
root@EX3200-24T-r001-S1> show system storage partitions ?
<[Enter]> Execute this command
| Pipe through a command
root@EX3200-24T-r001-S1> show system storage partitions
Boot Media: internal (da0)
Active Partition: da0s2a
Backup Partition: da0s1a
Currently booted from: active (da0s2a)
Partition Size Mountpoint
s1a 183M altroot
s2a 184M /
s3d 369M /var/tmp
s3e 123M /var
s4d 62M /config
root@EX3200-24T-r001-S1> show system snapshot media internal
Information for snapshot on internal (/dev/da0s1a) (backup)
Creation date: Nov 8 21:59:37 2016
JUNOS version on snapshot:
WARNING: snapshot format is incompatible with the software currently running
Information for snapshot on internal (/dev/da0s2a) (primary)
Creation date: Jan 19 23:05:04 2016
JUNOS version on snapshot:
jbase : ex-12.3R12.4
Hope this helps.
If this solves your problem, please mark this post as "Accepted Solution."Kudos are always appreciated :).
With the command of show system snapshot media internal, we can see when snapshoot has been taken but it doesn't say when new version has been installed? Snapshot and upgrade should be different thing, isn't it?
What I want to see is to perform cli to see old/previosu one version of junos and when the update was done and who did?
There is a separate log to keep track of Junos installation, it will let you know at what time Junos upgrade was initialized and the type of Junos upgrade that was performed.
user@host> show log install
user@host> show log install.0.gz
Let me know if you've any further queries.
Here is another way to check the current and previous version, in case log files have got overwritten and software backup has been deleted.
root@srx% ls -l /var/sw/pkg/total 1381636-rw-r--r-- 1 root wheel 707195118 Jul 14 15:19 junos-srxmr-15.1X49-D130.6-domestic-signed.tgz << current version-rw-r--r-- 1 root wheel 40 Jul 14 15:16 rollback
root@srx% cat /var/sw/pkg/rollback JUNOS Software Release [15.1X49-D140.3] << rollback version
To check who did the upgrade we would need to rely on the interactive logs or external syslog provided they go that far back.
show log interactive | match "request system software"show log interactive.0.gz | match "request system software"and so on...