10-30-2020 03:25 AM - edited 11-02-2020 01:16 AM
Okay I'm beat.
I have been trying to work on a set of commands in order to execute out of hours upgrade to 9200.
I have been able to achieve this with a process that prepositioning the software using the WEBUI and then scheduling a reload in CLI; but have not been able to come up with the correct order of CLI commands to achieve same.
Anyone done this?
Andy
10-30-2020 03:38 AM - edited 10-30-2020 03:39 AM
1. Before you start, make sure to clean up the flash with the following command:
request platform software package clean switch all
2. Use the following command to unpack the firmware with the following command:
request platform software package install switch all file flash:IOS_filename.bin on-reboot new auto-copy verbose
3. After the firmware has unpacked the files, use the following command to verify the package.conf contains the correct files:
more flash-X:packages.conf | begin CAT9
NOTE: Make sure to run this command on every member of the stack.
4. Make sure the boot variable string is pointing to the packages.conf:
sh boot
5. Schedule a reboot:
reboot at <hour>:<minutes> <day> <month>
6. After the switch has successfully rebooted, do not forget to clean the flash:
request platform software package clean switch all
Good luck and hope this helps.
10-30-2020 03:47 AM
Hi
Thanks for the swift reply however the command does not seem to be supported on the 9300s?
SWTNAME#request platform software ?
cflow Request cflow code coverage actions
console Request console actions
dummy dummy
factory-license customer ordered license level and base apcount
iox-manager IOx Manager
license CSL Software license
process Request process actions
python Request a python interactive shell
shell Request shell actions
snapshot Request snapshot actions
system Request system actions
trace Request trace actions
vty Request vty actions
yang-management YANG management
SWTNAME#request platform software package
^
10-30-2020 04:05 AM
Please post the complete output to the following commands:
sh version dir
11-02-2020 01:15 AM
Firstly apologies its actually a 9200
but here you are none the less:
SWITCH#sh ver
Cisco IOS XE Software, Version 16.09.03
Cisco IOS Software [Fuji], Catalyst L3 Switch Software (CAT9K_LITE_IOSXE), Version 16.9.3, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2019 by Cisco Systems, Inc.
Compiled Wed 20-Mar-19 07:19 by mcpre
Cisco IOS-XE software, Copyright (c) 2005-2019 by cisco Systems, Inc.
All rights reserved. Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0. The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY. You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0. For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.
ROM: IOS-XE ROMMON
BOOTLDR: System Bootstrap, Version 16.10.1r [FC3], RELEASE SOFTWARE (P)
SWITCH uptime is 51 weeks, 6 days, 22 hours, 25 minutes
Uptime for this control processor is 51 weeks, 6 days, 22 hours, 27 minutes
System returned to ROM by Reload Command
System image file is "flash:packages.conf"
Last reload reason: Reload Command
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Technology Package License Information:
------------------------------------------------------------------------------
Technology-package Technology-package
Current Type Next reboot
------------------------------------------------------------------------------
network-essentials Smart License network-essentials
dna-essentials Subscription Smart License dna-essentials
Smart Licensing Status: UNREGISTERED/EVAL EXPIRED
cisco C9200L-48P-4X (ARM64) processor with 519464K/3071K bytes of memory.
Processor board ID JAE23200VJC
1 Virtual Ethernet interface
148 Gigabit Ethernet interfaces
8 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
1998932K bytes of physical memory.
819200K bytes of Crash Files at crashinfo:.
819200K bytes of Crash Files at crashinfo-2:.
819200K bytes of Crash Files at crashinfo-3:.
1941504K bytes of Flash at flash:.
1941504K bytes of Flash at flash-2:.
1941504K bytes of Flash at flash-3:.
0K bytes of WebUI ODM Files at webui:.
Base Ethernet MAC Address : **:**:**:**:**
Motherboard Assembly Number : 73-19245-05
Motherboard Serial Number : JAE********
Model Revision Number : E0
Motherboard Revision Number : A0
Model Number : C9200L-48P-4X
System Serial Number : JAE*******
Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 52 C9200L-48P-4X 16.9.3 CAT9K_LITE_IOSXE INSTALL
2 52 C9200L-48P-4X 16.9.3 CAT9K_LITE_IOSXE INSTALL
3 52 C9200L-48P-4G 16.9.3 CAT9K_LITE_IOSXE INSTALL
Switch 02
---------
Switch uptime : 51 weeks, 6 days, 22 hours, 34 minutes
Base Ethernet MAC Address : **:**:**:**:**
Motherboard Assembly Number : 73-19245-05
Motherboard Serial Number : JAE*******
Model Revision Number : E0
Motherboard Revision Number : A0
Model Number : C9200L-48P-4X
System Serial Number : JAE*******
Switch 03
---------
Switch uptime : 51 weeks, 6 days, 22 hours, 29 minutes
Base Ethernet MAC Address : **:**:**:**:**
Motherboard Assembly Number : 73-18365-06
Motherboard Serial Number : JAE******
Model Revision Number : D0
Motherboard Revision Number : A0
Model Number : C9200L-48P-4G
System Serial Number : JAE******
Configuration register is 0x102
11-02-2020 02:15 AM - edited 11-02-2020 02:19 AM
9200/9200L is a different story.
The process I have initially posted is not compatible with the 9200/9200L.
Using CLI alone, it is not possible to schedule a reboot with 9200/9200L because the command to unpack the firmware will reboot the switch/stack after the unpacking process is complete.
The only way to successfully schedule a reboot on a 9200/9200L is to use DNAC.
11-02-2020 02:28 AM
What is interesting & disappointing is you can do with a GUI/CLI combo.
Andy
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