Accidently clicked on Install in PAN-OS upgrade.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Accidently clicked on Install in PAN-OS upgrade.

L0 Member

After downloading the PAN-OS version in the software tab in Panorama.

I accidentally clicked on install and the Pan-OS is installed on Panorama and it's asking for a restart to switch to the new version, I haven't restarted yet, is there a way I can cancel that install without restarting.

1 accepted solution

Accepted Solutions

Cyber Elite
Cyber Elite

TL;DR : debug swm cancel

 

 

yes there is

 

first a little background so you know what you're doing:

when you install a PAN-OS, the install takes place on a dormant root partition, PAN-OS uses an active and inactive partition to run it's OS.

after the install, the bootloader is switched to start using the dormant partition as the active partition after the next reboot so you can keep working in your current install untill you reboot and then you're on the new one

 

to recover from a accidental install, you can take the same steps as it would to do a full rollback, but this time without the reboot:

 

in CLI verify what status SWM (softwaremanager) is in:

 

reaper@PA-440> debug swm status

Partition         State             Version
--------------------------------------------------------------------------------
sysroot0          PENDING-CHANGE    11.2.4
sysroot1          RUNNING-ACTIVE    11.2.3
maint             READY             11.2.4

 

 

as you can see i am running 11.2.3 and 11.2.4 has been installed and pending a reboot (PENDING-CHANGE)

if i want to roll that back i can use debug swm cancel to cancel the upgrade, now the other partition becomes READY instead of pending change, and my MAINT partition is reverted to 11.2.3

 

 

reaper@PA-440> debug swm cancel 
Executing this command will cancel any pending changes to software. Do you want to continue? (y or n) 

Software cancel job enqueued with jobid 5242. Run 'show jobs id 5242' to monitor its status.
5242


reaper@PA-440> 
reaper@PA-440> debug swm status

Partition         State             Version
--------------------------------------------------------------------------------
sysroot0          READY             11.2.4
sysroot1          RUNNING-ACTIVE    11.2.3
maint             READY             11.2.3

 

 

hope this helps

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

View solution in original post

2 REPLIES 2

Cyber Elite
Cyber Elite

TL;DR : debug swm cancel

 

 

yes there is

 

first a little background so you know what you're doing:

when you install a PAN-OS, the install takes place on a dormant root partition, PAN-OS uses an active and inactive partition to run it's OS.

after the install, the bootloader is switched to start using the dormant partition as the active partition after the next reboot so you can keep working in your current install untill you reboot and then you're on the new one

 

to recover from a accidental install, you can take the same steps as it would to do a full rollback, but this time without the reboot:

 

in CLI verify what status SWM (softwaremanager) is in:

 

reaper@PA-440> debug swm status

Partition         State             Version
--------------------------------------------------------------------------------
sysroot0          PENDING-CHANGE    11.2.4
sysroot1          RUNNING-ACTIVE    11.2.3
maint             READY             11.2.4

 

 

as you can see i am running 11.2.3 and 11.2.4 has been installed and pending a reboot (PENDING-CHANGE)

if i want to roll that back i can use debug swm cancel to cancel the upgrade, now the other partition becomes READY instead of pending change, and my MAINT partition is reverted to 11.2.3

 

 

reaper@PA-440> debug swm cancel 
Executing this command will cancel any pending changes to software. Do you want to continue? (y or n) 

Software cancel job enqueued with jobid 5242. Run 'show jobs id 5242' to monitor its status.
5242


reaper@PA-440> 
reaper@PA-440> debug swm status

Partition         State             Version
--------------------------------------------------------------------------------
sysroot0          READY             11.2.4
sysroot1          RUNNING-ACTIVE    11.2.3
maint             READY             11.2.3

 

 

hope this helps

Tom Piens
PANgurus - Strata specialist; config reviews, policy optimization

L0 Member

Thank you @reaper It works perfectly. I tested in the lab.

 

 

  • 1 accepted solution
  • 208 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!