08-03-2016 06:26 AM - edited 03-08-2019 06:51 AM
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
08-03-2016 08:27 AM
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:
08-04-2016 12:45 AM
---------------------------
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 ?
08-04-2016 01:16 AM
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
08-05-2016 12:37 AM
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)
08-05-2016 02:43 PM
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.
08-08-2016 05:52 AM
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
#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide