Config Router

  • Google Sheets
  • CCNA Online training
    • CCNA
  • CISCO Lab Guides
    • CCNA Security Lab Manual With Solutions
    • CCNP Route Lab Manual with Solutions
    • CCNP Switch Lab Manual with Solutions
  • Juniper
  • Linux
  • DevOps Tutorials
  • Python Array
You are here: Home / Juniper / Best Practices for SRX Software Upgrade

Best Practices for SRX Software Upgrade

May 31, 2016 by Marques Brownlee

Best Practices for SRX Software Upgrade

Junos software provides “no-validate” option when the system administrator tries to upgrade the Junos software version to bypass the configuration compatibility check, but this option should be avoided if possible. This articles will show one of instance of a risk with “no-validate” option.

As of 12.1X44-D10, High-End SRX Series Services Gateways do not support the following IDP dedicated mode configuration statements. If one of them is configured before upgrading to 12.1X44-D10 and no-validate option is used when execute “request system software add” command, the mgd generates “error: commit failed: (statements constraint check failed)” and activates partial configuration, which allows a blank password for Telnet/J-Web/Console access and accept any random password for SSH connection before you collect the unsupported commands.

  • set security forwarding-process application-services maximize-idp-sessions weight firewall
  • set security forwarding-process application-services maximize-idp-sessions weight idp
  • set security forwarding-process application-services maximize-idp-sessions weight equal

For example, the system administrator used “no-validate” option to upgrade Junos software from 11.4R7 to 12.1X44-D11, and while the system reboot up, the ‘mgd’ detected a missing mandatory configuration and do not allow to commit the full configuration and activated partial configuration.

admin@SRX3600> request system software add no-copy no-validate junos-srx1k3k-12.1X44-D11.5-domestic.tgz reboot 
...
Loading configuration ...
[edit security forwarding-process application-services]
'maximize-idp-sessions'
inline-tap must be specified   <-- LOOK HERE, missing mandatory configuration
mgd: error: commit failed: (statements constraint check failed)
Warning: Commit failed, activating partial configuration.
Warning: Edit the router configuration to fix these errors.
...
SRX3600 (ttyu0)

login: admin
              <-- LOOK HERE, no password is required !!!
--- JUNOS 12.1X44-D11.5 built 2013-06-01 07:26:30 UTC
admin@SRX3600>

Whenever possible, please check the configuration compatibility before upgrading Junos software, then correct or change the configuration if ‘mgd’ generate error and warnding message. Below example shows a best way to upgrade SRX software.

1. Check the configuration compatibility between pre-12.1X44 and 12.1X44 using “request system software validate <12.1X44-intall-package>” command

admin@SRX3600> request system software validate junos-srx1k3k-12.1X44-D11.5-domestic.tgz 
Checking compatibility with configuration
Initializing...
Verified manifest signed by PackageProduction_11_4_0
Verified junos-11.4R7.5-domestic signed by PackageProduction_11_4_0
Using /var/home/admin/junos-srx1k3k-12.1X44-D11.5-domestic.tgz
Checking junos requirements on /
Available space: 618164 require: 273584
Saving boot file package in /var/sw/pkg/junos-boot-srx1k3k-12.1X44-D11.5.tgz
Verified manifest signed by PackageProduction_12_1_0
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
mgd: error: Could not disable auto-snapshot configuration
[edit security forwarding-process application-services]
'maximize-idp-sessions'
inline-tap must be specified
mgd: error: commit failed: (statements constraint check failed)
Validation failed
WARNING: Current configuration not compatible with /var/home/admin/junos-srx1k3k-12.1X44-D11.5-domestic.tgz

2. Remove the unsupported commands or change the IDP mode from “dedicated mode “ to “in-line tap mode”

// changing to "integrated mode"
delete security forwarding-process application-services maximize-idp-sessions
commit

or 

// changing to "inline-tap mode - firewall"
set security forwarding-process application-services maximize-idp-sessions inline-tap weight firewall
commit

or

// changing to "inline-tap mode - idp"
set security forwarding-process application-services maximize-idp-sessions inline-tap weight idp
commit

3. Upgrade to 12.1X44

request system software add no-copy junos-srx1k3k-12.1X44-D11.5-domestic.tgz reboot

 

Related

Filed Under: Juniper Tagged With: Junos, Junos upgrade, SRX

Recent Posts

  • How do I give user access to Jenkins?
  • What is docker volume command?
  • What is the date format in Unix?
  • What is the difference between ARG and ENV Docker?
  • What is rsync command Linux?
  • How to Add Music to Snapchat 2021 Android? | How to Search, Add, Share Songs on Snapchat Story?
  • How to Enable Snapchat Notifications for Android & iPhone? | Steps to Turn on Snapchat Bitmoji Notification
  • Easy Methods to Fix Snapchat Camera Not Working Black Screen Issue | Reasons & Troubleshooting Tips to Solve Snapchat Camera Problems
  • Detailed Procedure for How to Update Snapchat on iOS 14 for Free
  • What is Snapchat Spotlight Feature? How to Make a Spotlight on Snapchat?
  • Snapchat Hack Tutorial 2021: Can I hack a Snapchat Account without them knowing?

Copyright © 2025 · News Pro Theme on Genesis Framework · WordPress · Log in