cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2109
Views
2
Helpful
17
Replies

Upgrading C9200 with .bin INSTALL mode, space questions.

danielrattee
Level 1
Level 1

Hello,

XXXXSW-030#show install summary
[ Switch 1 2 ] Installed Package(s) Information:
State (St): I - Inactive, U - Activated & Uncommitted,
C - Activated & Committed, D - Deactivated & Uncommitted
--------------------------------------------------------------------------------
Type St Filename/Version
--------------------------------------------------------------------------------
IMG C 16.12.08.0.7211

--------------------------------------------------------------------------------
Auto abort timer: inactive
--------------------------------------------------------------------------------

133 466436833 Nov 24 2022 09:52:32.0000000000 +00:00 cat9k_lite_iosxe.16.12.08.SPA.bin
134 470661439 Sep 22 2023 12:18:16.0000000000 +00:00 cat9k_lite_iosxe.17.09.04.SPA.bin
135 392905752 Nov 24 2022 09:58:20.0000000000 +00:00 cat9k_lite-rpbase.16.12.08.SPA.pkg
136 1456 Jul 06 2023 02:27:08.0000000000 +00:00 stby-vlan.dat
137 40586949 Nov 24 2022 09:59:15.0000000000 +00:00 cat9k_lite-rpboot.16.12.08.SPA.pkg
138 387843092 Nov 15 2020 16:10:02.0000000000 +00:00 cat9k_lite-rpbase.16.12.04.SPA.pkg
139 40637261 Nov 15 2020 16:10:47.0000000000 +00:00 cat9k_lite-rpboot.16.12.04.SPA.pkg
140 4576276 Nov 15 2020 16:10:02.0000000000 +00:00 cat9k_lite-srdriver.16.12.04.SPA.pkg
141 10171408 Nov 15 2020 16:10:02.0000000000 +00:00 cat9k_lite-webui.16.12.04.SPA.pkg
142 23053336 Nov 24 2022 09:58:20.0000000000 +00:00 cat9k_lite-srdriver.16.12.08.SPA.pkg
143 10195988 Nov 24 2022 09:58:20.0000000000 +00:00 cat9k_lite-webui.16.12.08.SPA.pkg
144 4885 Nov 24 2022 09:59:15.0000000000 +00:00 cat9k_lite_iosxe.16.12.08.SPA.conf
0 bytes available (1862979584 bytes used)

Following the upgrade guide I am able to put cat9k_lite_iosxe.17.09.04.SPA.bin onto the flash of both switches, however, when I go to do the install add command it fails. I know why it fails, because there isn't any space available to expand the .bin into its applicable .pkg files.

My question is: can I remove cat9k_lite_iosxe.16.12.08.SPA.bin from flash without affecting the 16.12.08 .pkgs so that I can install the 17 .bin and then proceed with the upgrade? After that completes I would run install remove inactive to remove the old 13 .pkgs

 more flash:packages.conf returns # pkginfo: Build: 16.12.08 currently.

My thought process is that I can delete cat9k_lite_iosxe.16.12.08.SPA.bin because its essentially a zip file that has already been unpacked to its. .pkgs, but I want to be absolutely sure before I go deleting things from a production device.

 

1 Accepted Solution

Accepted Solutions

Go ahead and use the command "install remove inactive" to clean up the flash.

View solution in original post

17 Replies 17

balaji.bandi
Hall of Fame
Hall of Fame

You can remove .bin files and not used files with the command you mentioned remove and try copy and install

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help



You can remove .bin files and not used files with the command you mentioned remove and try copy and install


To confirm: install remove inactive will delete cat9k_lite_iosxe.16.12.08.SPA.bin, cat9k_lite_iosxe.17.09.04.SPA.bin, and all XX*.16.12.04.SPA.pkg(s) even if show install summary indicates IMG C 16.12.08.0.7211 as active and committed? (I say this because I am assuming any 16.12.08.SPA.pkg is in use)

The only thing that will remain is the 16.12.08.SPA.pkg(s) ?

I understand that show install summary shows what version is installed/inactive/active, but I'd like confirmation that I am not removing any 16.12.08.SPA.pkg(s) that may be in use if I have to roll back after the upgrade.

I want to be absolutely sure that I am not deleting something from flash that would prevent me from rolling back if the upgrade fails.

I could also use delete [/force] [/recursive] [filesystem:]/file-url , but that leaves me with not wanting to delete the individual 16.12.08.SPA.pkg(s).

Post the complete output to the following commands: 

dir 
sh version

@balaji.bandi  @Leo Laohoo 

 

------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-essentials Smart License network-essentials
dna-essentials Subscription Smart License dna-essentials


Smart Licensing Status: REGISTERED/AUTHORIZED

cisco C9200-48P (ARM64) processor with 649001K/3071K bytes of memory.
Processor board ID JAD23190J8X
2 Virtual Ethernet interfaces
104 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4060304K bytes of physical memory.
819200K bytes of Crash Files at crashinfo:.
819200K bytes of Crash Files at crashinfo-2:.
1941504K bytes of Flash at flash:.
1941504K bytes of Flash at flash-2:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address : 78:bc:1a:ee:ec:80
Motherboard Assembly Number : 73-18791-04
Motherboard Serial Number : JAD23190J8X
Model Revision Number : A1
Motherboard Revision Number : A0
Model Number : C9200-48P
System Serial Number : JAD23190J8X


Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 56 C9200-48P 16.12.08 CAT9K_LITE_IOSXE INSTALL
2 56 C9200-48P 16.12.08 CAT9K_LITE_IOSXE INSTALL


Switch 02
---------
Switch uptime : 11 weeks, 5 days, 5 hours, 9 minutes

Base Ethernet MAC Address : 5c:5a:c7:1c:24:80
Motherboard Assembly Number : 73-18791-04
Motherboard Serial Number : JAD23190JMH
Model Revision Number : A1
Motherboard Revision Number : A0
Model Number : C9200-48P
System Serial Number : JAD23190JMH
Last reload reason : Power Failure or Unknown

Configuration register is 0x102

XXXXSW-030#dir
Directory of flash:/

40482 -rw- 2130 Jul 6 2023 02:23:24 -04:00 boothelper.log
40499 -rw- 1456 Jul 6 2023 02:24:48 -04:00 vlan.dat
40483 drwx 4096 Sep 24 2023 14:59:45 -04:00 .installer
40485 -rw- 1702 Jul 6 2023 02:23:04 -04:00 bootloader_evt_handle.log
40486 drwx 4096 Sep 22 2023 12:19:08 -04:00 core
64769 drwx 4096 Nov 24 2022 10:12:25 -05:00 .prst_sync
80962 drwx 4096 Nov 24 2022 10:05:58 -05:00 .rollback_timer
64772 drwx 4096 Nov 15 2020 16:18:40 -05:00 tech_support
89057 drwx 4096 Jul 6 2023 02:23:22 -04:00 dc_profile_dir
40509 -rw- 0 Jul 6 2023 02:24:57 -04:00 dope_hist
40488 -rw- 132108 Jul 6 2023 02:23:39 -04:00 memleak.tcl
40490 drwx 4096 May 12 2019 09:57:50 -04:00 .dbpersist
40491 -rw- 862 Jul 6 2023 02:24:57 -04:00 rdope_out.txt
40492 drwx 4096 May 12 2019 09:56:51 -04:00 onep
97153 drwx 4096 Jul 6 2023 02:24:51 -04:00 license_evlog
40493 -rw- 89 Jul 6 2023 02:24:54 -04:00 rdope.log
40520 drwx 4096 Nov 15 2020 16:18:40 -05:00 gs_script
40496 -rw- 2097152 Sep 20 2023 14:47:10 -04:00 nvram_config
40497 -rw- 2097152 Sep 20 2023 14:47:10 -04:00 nvram_config_bkup
40487 -rw- 34 Jun 4 2019 06:26:27 -04:00 pnp-tech-time
40498 -rw- 74724 Jun 4 2019 06:26:31 -04:00 pnp-tech-discovery-summary
40484 -rw- 2130 Jul 3 2023 06:21:48 -04:00 boothelper.log.old
40524 -rw- 4885 Nov 24 2022 10:05:07 -05:00 packages.conf
40501 -rw- 2657 Sep 26 2023 07:24:36 -04:00 snoopdatabase
40505 -rw- 466436833 Nov 24 2022 09:52:32 -05:00 cat9k_lite_iosxe.16.12.08.SPA.bin
40510 -rw- 470661439 Sep 22 2023 12:18:16 -04:00 cat9k_lite_iosxe.17.09.04.SPA.bin
40515 -rw- 392905752 Nov 24 2022 09:58:20 -05:00 cat9k_lite-rpbase.16.12.08.SPA.pkg
40504 -rw- 1456 Jul 6 2023 02:27:08 -04:00 stby-vlan.dat
40523 -rw- 40586949 Nov 24 2022 09:59:15 -05:00 cat9k_lite-rpboot.16.12.08.SPA.pkg
89064 -rw- 387843092 Nov 15 2020 16:10:02 -05:00 cat9k_lite-rpbase.16.12.04.SPA.pkg
89067 -rw- 40637261 Nov 15 2020 16:10:47 -05:00 cat9k_lite-rpboot.16.12.04.SPA.pkg
89065 -rw- 4576276 Nov 15 2020 16:10:02 -05:00 cat9k_lite-srdriver.16.12.04.SPA.pkg
89066 -rw- 10171408 Nov 15 2020 16:10:02 -05:00 cat9k_lite-webui.16.12.04.SPA.pkg
40521 -rw- 23053336 Nov 24 2022 09:58:20 -05:00 cat9k_lite-srdriver.16.12.08.SPA.pkg
40522 -rw- 10195988 Nov 24 2022 09:58:20 -05:00 cat9k_lite-webui.16.12.08.SPA.pkg
40514 -rw- 4885 Nov 24 2022 09:59:15 -05:00 cat9k_lite_iosxe.16.12.08.SPA.conf

1956839424 bytes total (0 bytes free)

 

install remove inactive - only removes inactive one.

to guide correctly as Leo asked i will ask same quesiton

show version

dir

to guide correctly

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

paraina
Cisco Employee
Cisco Employee

You can remove the .bin file. As soon as the .bin file is extracted to the respective ".Conf" has been created you can set the Boot variable to .conf file and delete the .bin file.


From the provided outputs I can see the .conf file is already present. 

133 466436833 Nov 24 2022 09:52:32.0000000000 +00:00 cat9k_lite_iosxe.16.12.08.SPA.bin
144 4885 Nov 24 2022 09:59:15.0000000000 +00:00 cat9k_lite_iosxe.16.12.08.SPA.conf.  >>>>>>>> >CONF File is already present.

Make sure you check the same on both switches (Active and standby). Sometimes On standby switch the.Conf file name might show as Packages.conf. You can Validate the content of the .conf file by using the cli - more flash:<file name .conf>. For instance - 

more flash:cat9k_lite_iosxe.16.12.08.SPA.conf. OR 

more stby-flash:package.conf. 

more flash:cat9k_lite_iosxe.16.12.08.SPA.conf

boot rp 0 0 rp_boot cat9k_lite-rpboot.16.12.08.SPA.pkg
iso rp 0 0 rp_base cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_daemons cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_iosd cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_security cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_webui cat9k_lite-webui.16.12.08.SPA.pkg
iso rp 0 0 srdriver cat9k_lite-srdriver.16.12.08.SPA.pkg
iso fp 0 0 fp cat9k_lite-rpbase.16.12.08.SPA.pkg
iso cc 0 0 cc cat9k_lite-rpbase.16.12.08.SPA.pkg
iso cc 0 0 cc_srdriver cat9k_lite-srdriver.16.12.08.SPA.pkg

#
# -start- superpackage .pkginfo
#
# pkginfo: Name: rp_super
# pkginfo: BuildTime: 2022-09-15_07.20
# pkginfo: ReleaseDate: Thu-15-Sep-22-04:50
# pkginfo: .BuildArch: arm32
# pkginfo: BootArchitecture: arm32
# pkginfo: .BootArch: arm32
# pkginfo: RouteProcessor: quake
# pkginfo: Platform: CAT9K_LITE
# pkginfo: User: mcpre
# pkginfo: PackageName: universalk9
# pkginfo: Build: 16.12.08
# pkginfo: .SupportedBoards: quake
# pkginfo: .InstallModel:
# pkginfo: .PackageRole: rp_super
# pkginfo: .RestartRole: rp_super
# pkginfo: .UnifiedPlatformList: quake1,quake2
# pkginfo: CardTypes:
# pkginfo: .CardTypes:
# pkginfo: .BuildPath: /nobackup/mcpre/release/BLD-V16_12_08_FC1/binos/linkfarm/stage-quake/hard/rp_super_universalk9.arm32
# pkginfo: .Version: 16.12.08.0.7211.1663251601..Gibraltar
# pkginfo: .InstallVersion: 1.0.0
# pkginfo: .InstallCapCommitSupport: yes
#
# -end- superpackage .pkginfo

 

more stby-flash:package.conf.

XXXXSW-030#more stby-flash:package.conf.
%Error opening flash-2:package.conf. (No such file or directory)
XXXXSW-030#more stby-flash:package.conf
%Error opening flash-2:package.conf (No such file or directory)

 

@parainathat output leads me to believe that there is no package.conf on switch 2 (per sh ver switch 1 is active).

the more flash output does show that the .pkg(s) are there, but I do not see if it is on switch 1 or 2. When I run dir flash-2: I do see the .bin(s) and the .pkg(s) (which I should because I was able to run the command to move the 17.09.04.PSA.bin over to switch 2.

XXXXSW-030#dir flash-2:
Directory of flash-2:/

80964 -rw- 2130 Jul 5 2023 18:22:07 -04:00 boothelper.log
80995 -rw- 1456 Jul 6 2023 02:27:37 -04:00 vlan.dat
80963 drwx 4096 Sep 24 2023 14:59:42 -04:00 .installer
80965 -rw- 1665 Jul 5 2023 18:21:46 -04:00 bootloader_evt_handle.log
80966 drwx 4096 Sep 24 2023 15:01:30 -04:00 core
105249 drwx 4096 Nov 24 2022 10:15:00 -05:00 .prst_sync
11 drwx 4096 Nov 24 2022 10:06:00 -05:00 .rollback_timer
105252 drwx 4096 Nov 15 2020 16:18:41 -05:00 tech_support
16193 drwx 4096 Jul 5 2023 18:22:04 -04:00 dc_profile_dir
81086 -rw- 0 Jul 5 2023 18:23:39 -04:00 dope_hist
80968 -rw- 132108 Jul 5 2023 18:22:21 -04:00 memleak.tcl
80970 drwx 4096 May 12 2019 09:57:40 -04:00 .dbpersist
80971 -rw- 862 Jul 5 2023 18:23:39 -04:00 rdope_out.txt
80972 drwx 8192 Jul 6 2023 02:27:31 -04:00 license_evlog
80973 -rw- 89 Jul 5 2023 18:23:36 -04:00 rdope.log
80974 drwx 4096 May 12 2019 09:56:41 -04:00 onep
32392 drwx 4096 Nov 15 2020 16:18:41 -05:00 gs_script
80994 -rw- 2097152 Sep 20 2023 14:47:12 -04:00 nvram_config
80979 -rw- 2097152 Sep 20 2023 14:47:12 -04:00 nvram_config_bkup
80980 -rw- 34 Jun 4 2019 07:07:36 -04:00 pnp-tech-time
80981 -rw- 74165 Jun 4 2019 07:07:43 -04:00 pnp-tech-discovery-summary
80962 -rw- 2130 Jul 3 2023 02:20:44 -04:00 boothelper.log.old
81095 -rw- 4885 Nov 24 2022 10:05:08 -05:00 packages.conf
81085 -rw- 466436833 Nov 24 2022 09:52:32 -05:00 cat9k_lite_iosxe.16.12.08.SPA.bin
81091 -rw- 392905752 Nov 24 2022 09:58:21 -05:00 cat9k_lite-rpbase.16.12.08.SPA.pkg
81094 -rw- 40586949 Nov 24 2022 09:59:15 -05:00 cat9k_lite-rpboot.16.12.08.SPA.pkg
8102 -rw- 387843092 Nov 15 2020 16:10:03 -05:00 cat9k_lite-rpbase.16.12.04.SPA.pkg
81092 -rw- 23053336 Nov 24 2022 09:58:21 -05:00 cat9k_lite-srdriver.16.12.08.SPA.pkg
32386 -rw- 40637261 Nov 15 2020 16:10:48 -05:00 cat9k_lite-rpboot.16.12.04.SPA.pkg
8103 -rw- 4576276 Nov 15 2020 16:10:03 -05:00 cat9k_lite-srdriver.16.12.04.SPA.pkg
32385 -rw- 10171408 Nov 15 2020 16:10:03 -05:00 cat9k_lite-webui.16.12.04.SPA.pkg
81093 -rw- 10195988 Nov 24 2022 09:58:21 -05:00 cat9k_lite-webui.16.12.08.SPA.pkg
81090 -rw- 4885 Nov 24 2022 09:59:15 -05:00 cat9k_lite_iosxe.16.12.08.SPA.conf
81088 -rw- 470661439 Sep 22 2023 12:18:16 -04:00 cat9k_lite_iosxe.17.09.04.SPA.bin

1957167104 bytes total (0 bytes free)

Post the complete output to the following commands:

sh boot
more flash-1:packages.conf | begin rp_boot

sh boot

XXXXSW-030#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable does not exist

Boot Variables on next reload:
BOOT variable = flash:packages.conf;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
XXXXSW-030#more flash-1:packages.conf | begin rp_boot

*note: there was nothing output after Switch 1 in the sh boot command.*

more flash-1:packages.conf | begin rp_boot

XXXXSW-030#more flash-1:packages.conf | begin rp_boot
boot rp 0 0 rp_boot cat9k_lite-rpboot.16.12.08.SPA.pkg
iso rp 0 0 rp_base cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_daemons cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_iosd cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_security cat9k_lite-rpbase.16.12.08.SPA.pkg
iso rp 0 0 rp_webui cat9k_lite-webui.16.12.08.SPA.pkg
iso rp 0 0 srdriver cat9k_lite-srdriver.16.12.08.SPA.pkg
iso fp 0 0 fp cat9k_lite-rpbase.16.12.08.SPA.pkg
iso cc 0 0 cc cat9k_lite-rpbase.16.12.08.SPA.pkg
iso cc 0 0 cc_srdriver cat9k_lite-srdriver.16.12.08.SPA.pkg

 

#
# -start- superpackage .pkginfo
#
# pkginfo: Name: rp_super
# pkginfo: BuildTime: 2022-09-15_07.20
# pkginfo: ReleaseDate: Thu-15-Sep-22-04:50
# pkginfo: .BuildArch: arm32
# pkginfo: BootArchitecture: arm32
# pkginfo: .BootArch: arm32
# pkginfo: RouteProcessor: quake
# pkginfo: Platform: CAT9K_LITE
# pkginfo: User: mcpre
# pkginfo: PackageName: universalk9
# pkginfo: Build: 16.12.08
# pkginfo: .SupportedBoards: quake
# pkginfo: .InstallModel:
# pkginfo: .PackageRole: rp_super
# pkginfo: .RestartRole: rp_super
# pkginfo: .UnifiedPlatformList: quake1,quake2
# pkginfo: CardTypes:
# pkginfo: .CardTypes:
# pkginfo: .BuildPath: /nobackup/mcpre/release/BLD-V16_12_08_FC1/binos/linkfarm/stage-quake/hard/rp_super_universalk9.arm32
# pkginfo: .Version: 16.12.08.0.7211.1663251601..Gibraltar
# pkginfo: .InstallVersion: 1.0.0
# pkginfo: .InstallCapCommitSupport: yes
#
# -end- superpackage .pkginfo
#

You version is 16.12.08

so you are safe to remove inactive and also any old version of .bin files to create space (include conf file)

since packages.conf have right informaton

Once that is done try upgrade again.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Post the complete output to the command "dir flash:core".  

Let us see if we can free up some more space.

XXXXSW-030#dir flash:core
Directory of flash:/core/

40495 -rw- 1 Sep 27 2023 07:16:23 -04:00 .callhome

1956839424 bytes total (0 bytes free)
XXXXSW-030#

not much files in core folder - have you tried the option i have provided before ? what is the outcome ?

1956839424 bytes total (0 bytes free)  < have you cleard the files ?

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Go ahead and use the command "install remove inactive" to clean up the flash.

Review Cisco Networking for a $25 gift card