SRX Services Gateway
SRX Services Gateway


‎07-15-2019 04:02 PM

Hi all,

How to check about when junos upgrade and what previous version etc... Are there cli command to check this historical upgrade check?

SRX Services Gateway

Re: upgrade

‎07-15-2019 04:47 PM

On SRX, try "show system software backup".  And on EX, "show system snapshot media internal".  Hope that answers your query.



root> run show version                                                                                                                                                         
Model: srx3400                                                                                                                                                                 
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                                                                                                                                          
Hostname: EX3200-24T-r001-S1                                                                                                                                                   
Model: ex3200-24t                                                                                                                                                              
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 ?                                                                                                                      
Possible completions:                                                                                                                                                          
  <[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)                                                                                                                                         
Partitions information:                                                                                                                                                        
  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:                                                                                                                                                     
  jdocs-ex: 14.1X53-D40.8                                                                                                                                                      
  jweb-ex: 14.1X53-D40.8                                                                                                                                                       
  fips-mode-powerpc: 14.1X53-D40.8                                                                                                                                             
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                                                                                                                                                        
  jkernel-ex: 12.3R12.4                                                                                                                                                        
  jcrypto-ex: 12.3R12.4                                                                                                                                                        
  jdocs-ex: 12.3R12.4                                                                                                                                                          
  jswitch-ex: 12.3R12.4                                                                                                                                                        
  jpfe-ex42x: 12.3R12.4                                                                                                                                                        
  jroute-ex: 12.3R12.4                                                                                                                                                         
  jweb-ex: 12.3R12.4                                                                                                                                                           
  fips-mode-powerpc: 12.3R12.4 


Hope this helps.




If this solves your problem, please mark this post as "Accepted Solution."
Kudos are always appreciated :).


SRX Services Gateway

Re: upgrade

‎07-15-2019 06:05 PM

Thanks reply....

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?


SRX Services Gateway

Re: upgrade

‎07-15-2019 06:49 PM
Hi Arix,

One way to check the release history is to check the inventory file as shown below

show log inventory | match release
Dec 14 16:43:28 CHASSISD release 16.1R3-S1.3 built by builder on 2016-12-14 21:09:49 UTC
Dec 7 04:45:35 CHASSISD release 18.4R1.2 built by builder on 2018-11-24 09:54:56 UTC

To check who did the software upgrade or downgrade, you need to check the interactive-logs history .

SRX Services Gateway
Accepted by topic author Arix
‎07-18-2019 06:08 AM

Re: upgrade

‎07-15-2019 08:37 PM



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...





SRX Services Gateway

Re: upgrade

[ Edited ]
‎07-16-2019 07:59 PM

Hi Arix,


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.

Please, Mark My Solution Accepted if it Helped, Kudos are Appreciated too!!!