cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1563
Views
0
Helpful
6
Replies

Cisco 3850 - stop rollback after reboot

beejrteek
Level 1
Level 1

Hi all!

It is possible to stop software rollback after a reboot switches (I have 4 stack switches)

I accidentally hit "enter" key when I write software rollback, but I don't want it.

When switch finish this command, ask me if I want to reload but I hit "n"

But on the output I saw information that previous IOS XE will install after reboot.

How can I stop this proces ?

No software rollback doesn't work, software no rollback also doesn't work

6 Replies 6

Mark Malone
VIP Alumni
VIP Alumni

Hi

haven't tested this but check your show boot system see if its showing that new image then change the boot parameter with boot system flash: see if that changes it back to what you want

show boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:cat3k_caa-universalk9.SPA.03.06.02a.E.152-2a.E2.bin;

Boot Variables on next reload:
BOOT variable = flash:cat3k_caa-universalk9.SPA.03.06.02a.E.152-2a.E2.bin;
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
....................#conf t
Enter configuration commands, one per line.  End with CNTL/Z.

.....................(config)#boot system ?
  flash:      System image file
  switch      Set system image for switches in the stack
  tftp:       System image file
  usbflash0:  System image file
(config)#boot system flash:

---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
---------------------------
Switch 2
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
---------------------------
Switch 3
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
---------------------------
Switch 4
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
---------------------------
Switch 5
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no
---------------------------
Switch 6
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf
Allow Dev Key = yes
Manual Boot = no
Enable Break = no

IOS XE is on INSTALL mode..

It is possible that the file packages.conf was changed after software rollback ?

It is possible that the file packages.conf was changed after software rollback ?

It depends if there is multiple packages.conf files in flash check-- dir-- for flash see whats in it , if theres only 1 it cant roll back to anything else but what it was already on if it was to reboots , there needs to be multiple packages for it to do a rollback

you could also force the flash into bundle mode then load a .bin that its currently using so if was to reboot you would be sure your definitely on the current correct image

In flash I have got:


 7750  -rwx     2097152  Jul 28 2016 13:20:37 +02:00  nvram_config
 7748  drwx        4096  Mar 27 2015 19:03:40 +01:00  onep
 7747  -rw-   257651868  Aug 21 2015 18:50:40 +02:00  cat3k_caa-universalk9.SPA.03.03.05.SE.150-1.EZ5.bin
 7754  -rw-    79122052  Aug 21 2015 19:07:04 +02:00  cat3k_caa-base.SPA.03.03.05SE.pkg
 7756  -rw-     6521532  Aug 21 2015 19:07:04 +02:00  cat3k_caa-drivers.SPA.03.03.05SE.pkg
 7757  -rw-    34530288  Aug 21 2015 19:07:04 +02:00  cat3k_caa-infra.SPA.03.03.05SE.pkg
 7751  -rw-        1234  Mar 27 2015 17:35:17 +01:00  packages.conf
 7746  -rw-        1396   Jul 5 2016 12:54:56 +02:00  vlan.dat
 7755  -rw-       16913  Jul 28 2016 14:01:44 +02:00  wnweb.tgz
 7758  -rw-    34846028  Aug 21 2015 19:07:04 +02:00  cat3k_caa-iosd-universalk9.SPA.150-1.EZ5.pkg
 7760  -rw-    25170832  Aug 21 2015 19:07:04 +02:00  cat3k_caa-platform.SPA.03.03.05SE.pkg
 7761  -rw-    77456192  Aug 21 2015 19:07:05 +02:00  cat3k_caa-wcm.SPA.10.1.150.0.pkg
69697  drwx        4096  Mar 27 2015 18:27:57 +01:00  vman_fdb
61955  -rw-    82245716  Mar 27 2015 17:35:11 +01:00  cat3k_caa-base.SPA.03.07.00E.pkg
61956  -rw-     7019196  Mar 27 2015 17:35:11 +01:00  cat3k_caa-drivers.SPA.03.07.00E.pkg
61957  -rw-    36901896  Mar 27 2015 17:35:11 +01:00  cat3k_caa-infra.SPA.03.07.00E.pkg
61958  -rw-    45841724  Mar 27 2015 17:35:11 +01:00  cat3k_caa-iosd-universalk9.SPA.152-3.E.pkg
61959  -rw-    26858380  Mar 27 2015 17:35:12 +01:00  cat3k_caa-platform.SPA.03.07.00E.pkg
30978  -rw-   111475520  Mar 27 2015 17:35:12 +01:00  cat3k_caa-wcm.SPA.10.3.100.0.pkg
 7753  drwx        4096  Mar 27 2015 18:27:57 +01:00  virtual-instance
77441  drwx        4096  Mar 27 2015 18:30:37 +01:00  dc_profile_dir
77443  drwx        4096  Mar 27 2015 18:32:11 +01:00  wnweb_store

Now switch using 03.03.05 IOS XE, when I make a mistake that I hit enter after write software rollback command, switch give information that after reboot it restore 03.07.00

On next week I will process upgrade switch from 03.03.05 to suggested (3.6.5) so maybe when I write software install NEWIOSXE then switch overwrite earlier command (software rollback)

jdesanti
Cisco Employee
Cisco Employee

Hi,

Software rollback is functional only when at least one rollback package with the file name packages.conf.00- is present. 

I don't see any .conf.00 file on your flash, however to make sure, you can do "more flash:packages.conf" and verify which version is pointing your packages.conf file, that is the version your switch is going to run on the next reboot.

more flash-1:packages.conf
#! /usr/binos/bin/packages_conf.sh

iso   rp 0 0   rp_base       cat3k_caa-base.SPA.03.07.00E.pkg
iso   rp 0 0   rp_infra       cat3k_caa-infra.SPA.03.07.00E.pkg
iso   rp 0 0   rp_platform       cat3k_caa-platform.SPA.03.07.00E.pkg
iso   rp 0 0   rp_iosd       cat3k_caa-iosd-universalk9.SPA.152-3.E.pkg
iso   rp 0 0   rp_wcm       cat3k_caa-wcm.SPA.10.3.100.0.pkg
iso   rp 0 0   drivers       cat3k_caa-drivers.SPA.03.07.00E.pkg


#
# -start- superpackage .pkginfo
#
# pkginfo: Name: rp_super
# pkginfo: PackageFileType: iso
# pkginfo: BuildTime: Mon Dec 08 00:35:25 PST 2014
# pkginfo: ReleaseDate: Mon Dec 08 00:35:25 PST 2014
# pkginfo: .BuildArch: mips
# pkginfo: RouteProcessor: mips
# pkginfo: Platform: ng3k
# pkginfo: User: XXX
# pkginfo: PackageName: cat3k_caa-universalk9
# pkginfo: Build: 03.07.00.E
# pkginfo: Dependencies: PROVIDES:cat3k_caa-base,03.07.00E,mips;cat3k_caa-infra,03.07.00E,mips;cat3k_caa-platform,03.07.00E,mips;cat3k_caa-iosd-universalk9,152-3.E,mips;cat3k_caa-wcm,10.3.100.0,mips;cat3k_caa-drivers,03.07.00E,mips;
# pkginfo: .SupportedBoards: unknown
# pkginfo: .BuildPath: unknown
# pkginfo: BuildType: Production
#
# -end- superpackage .pkginfo
#

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card