- Preface
- New and Changed Information
- Overview
- Configuring Switch Profiles
- Configuring Module Pre-Provisioning
- Using Cisco Fabric Services
- Configuring PTP
- Configuring User Accounts and RBAC
- Configuring Session Manager
- Configuring Online Diagnostics
- Configuring System Message Logging
- Configuring Smart Call Home
- Configuring Rollback
- Configuring DNS
- Configuring SNMP
- Configuring RMON
- Configuring SPAN
- Configuring ERSPAN
- Configuring NTP
- Configuring EEM
- Configuring OpenFlow
- Configuring NetFlow
- Configuring Secure Erase
- Soft Reload
- Configuring GIR (Cisco NX-OS Release 7.3(0)N1(1))
- Configuring GIR (Cisco NX-OS Release 7.1(0)N1(1))
- Class-based Quality-of-Service MIB
- Index
- Information About Maintenance Mode
- Guidelines and Limitations for Maintenance Mode
- Performing the Maintenance Mode Cycle
- Configuring the Normal Mode Profile File
- Creating a Snapshot
- Entering Maintenance Mode
- Returning to Normal Mode
- Configuring the Maintenance Mode Profile File
- Verifying Maintenance Mode
Configuring Maintenance Mode
This chapter contains the following sections:
- Information About Maintenance Mode
- Guidelines and Limitations for Maintenance Mode
- Performing the Maintenance Mode Cycle
- Configuring the Normal Mode Profile File
- Creating a Snapshot
- Entering Maintenance Mode
- Returning to Normal Mode
- Configuring the Maintenance Mode Profile File
- Verifying Maintenance Mode
Information About Maintenance Mode
You can use maintenance mode to isolate a switch from the network in order to perform debugging or an upgrade. When switch maintenance is complete, you can return the switch to normal mode.
When you place the switch in maintenance mode, all protocols are gracefully brought down and all physical ports are shut down. When normal mode is restored, all the protocols and ports are brought back up.
The following protocols are supported:
-
Border Gateway Protocol (BGP)
-
BGPv6
-
Enhanced Interior Gateway Routing Protocol (EIGRP)
-
EIGRPv6
-
Intermediate System-to-Intermediate System (ISIS)
-
Open Shortest Path First (OSPF)
-
OSPFv3
Also supported are:
You can create a maintenance mode profile file before you put the switch in maintenance mode or you can allow the system to create a maintenance mode profile file when you enter the [no] system mode maintenance command.
Use the snapshot command to capture the running states of selected features and to store them on the persistent storage media.
Snapshots are useful to compare the state of a switch before it went into maintenance mode and after it came back to normal mode. The snapshot process consists of three parts:
Guidelines and Limitations for Maintenance Mode
Maintenance mode has the following guidelines and limitations:
Performing the Maintenance Mode Cycle
Step 1 | (Optional) Create the maintenance mode profile file. |
Step 2 | (Optional)Create the normal mode profile file. |
Step 3 | Take a snapshot
before entering maintenance mode.
See Creating a Snapshot. |
Step 4 | Put the switch into maintenance mode. |
Step 5 | (Optional)Enter the copy running-config startup-config command. |
Step 6 | Return the switch to normal mode. |
Step 7 | Take a snapshot
after returning to normal mode.
See Creating a Snapshot. |
Configuring the Normal Mode Profile File
This example shows how to create a normal mode profile file:
switch# configure terminal switch(config)# configure profile normal-mode type admin switch(config-profile)# router ospf 100 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router eigrp 101 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router isis 102 switch(config-profile-router)# no shutdown switch(config-profile-router)# no set-overload-bit always switch(config-profile-router)# exit switch(config-profile)# router bgp 103 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# vpc domain 20 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# no system interface shutdown switch(config-profile)# end Exit configure profile mode. switch#
This example shows how to create a normal mode profile file for EIGRPv6:
switch# configure terminal switch(config)# configure profile normal-mode type admin switch(config-profile)# router bgp 65501 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router eigrp 100 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# address-family ipv6 unicast switch(config-profile)# no shutdown switch(config-profile)# router eigrp 600 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# address-family ipv6 unicast switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router ospf 100 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router ospfv3 ospf_ipv6 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# router isis isp switch(config-profile-router)# no set-overload-bit always switch(config-profile-router)# exit switch(config-profile)# vpc domain 2 switch(config-profile-router)# no shutdown switch(config-profile-router)# exit switch(config-profile)# no system interface shutdown switch(config-profile)# end Exit configure profile mode. switch#
Creating a Snapshot
Command or Action | Purpose |
---|
This example shows how to create a snapshot:
switch# snapshot create snap1 For documentation purposes. Executing show interface... Done Executing show bgp sessions vrf all... Done Executing show ip eigrp topology summary... Done Executing show ipv6 eigrp topology summary... Done Executing show vpc... Done Executing show ip ospf vrf all... Done Feature 'ospfv3' not enabled, skipping... Executing show isis vrf all... Done Snapshot 'snap1' created switch#
Entering Maintenance Mode
If you are going to create your own profile rather than let the system mode maintenance command do it for you, see Configuring the Maintenance Mode Profile File.
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | switch# configure terminal |
Enters global configuration mode. | ||
Step 2 | switch(config)# system mode maintenance [dont-generate-profile] |
Executes a previously created maintenance mode profile file or dynamically creates a maintenance mode profile file. The dont-generate-profile option suppresses the creation of the maintenance mode profile file.
|
The switch is now in maintenance mode.
![]() Note | It is not possible to perform an in-service software downgrade (ISSD) in maintenance mode. |
This example shows how to place the switch in maintenance mode by using a previously created maintenance mode profile file:
switch# configure terminal switch(config)# system mode maintenance dont-generate-profile Do you want to continue (y/n)? [n] y Progressing..............................................Done. System mode operation completed successfully switch(config)#
Returning to Normal Mode
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | switch# configure terminal |
Enters global configuration mode. | ||
Step 2 | switch(config)# no system mode maintenance [dont-generate-profile] |
Executes a previously created normal mode profile file or a dynamically created normal mode profile file. The dont-generate-profile option suppresses the creation of the normal mode profile file.
|
This example shows how to return to normal mode from maintenance mode:
switch# configure terminal switch(config)# no system mode maintenance dont-generate-profile Do you want to continue (y/n)? [n] y Progressing................Done. System mode operation completed successfully switch(config)#
Configuring the Maintenance Mode Profile File
Command or Action | Purpose | |||
---|---|---|---|---|
Step 1 | switch# configure terminal |
Enters global configuration mode. | ||
Step 2 | switch(config)# configure profile maintenance-mode type admin |
Enters a configuration session for the maintenance mode profile file.
| ||
Step 3 | switch# end |
Closes the maintenance mode profile file. |
This example shows how to create a maintenance mode profile file:
switch# configure terminal switch(config)# configure profile maintenance-mode type admin switch(config-profile)# router ospf 100 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router eigrp 101 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router isis 102 switch(config-profile-router)# shutdown switch(config-profile-router)# set-overload-bit always switch(config-profile-router)# exit switch(config-profile)# router bgp 103 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# vpc domain 20 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# system interface shutdown switch(config-profile)# end Exit configure profile mode. switch#
This example shows how to create a maintenance mode profile file for EIGRPv6:
switch# configure terminal switch(config)# configure profile maintenance-mode type admin switch(config-profile)# router bgp 65501 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# address-family ipv6 unicast switch(config-profile)# shutdown switch(config-profile)# router eigrp 600 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# address-family ipv6 unicast switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router ospf 100 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router ospfv3 ospf_ipv6 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router isis isp switch(config-profile-router)# set-overload-bit always switch(config-profile-router)# exit switch(config-profile)# vpc domain 2 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# system interface shutdown switch(config-profile)# end Exit configure profile mode. switch#
This example shows how to create a maintenance mode profile for IPv6 protocols:
switch# configure terminal switch(config)# configure profile maintenance-mode type admin switch(config-profile)# router ospfv3 ospf_ipv6 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)# router eigrp 660 switch(config-profile-router)# address-family ipv6 unicast switch(config-profile-router-af)# shutdown switch(config-profile-router-af)# exit switch(config-profile-router)# router isis isp switch(config-profile-router)# set-overload-bit always switch(config-profile-router)# exit switch(config-profile)# router bgp 655551 switch(config-profile-router)# shutdown switch(config-profile-router)# exit switch(config-profile)#
Verifying Maintenance Mode
Use one of the following commands to verify the configuration:
Command |
Purpose |
---|---|
show system mode |
Displays current system mode. |
show interface brief |
Displays abbreviated interface information. |
show snapshots before-maintenance-mode description |
Displays snapshots present on the switch. |
show config-profile name |
Displays the details of the config-profile files. |
show system mode Command
switch# show system mode System Mode : Maintenance
show interface brief Command
switch# show interface brief ----------------------------------------------------------------------------- Ehternet VLAN Type Mode Status Reason Speed Port Interface Ch # ----------------------------------------------------------------------------- Eth1/1 - - eth routed down sysIntfShut 10G(D) - - Eth1/2 - - eth routed down sysIntfShut 10G(D) - - Eth1/3 - - eth routed down sysIntfShut 10G(D) - - Eth1/4 - - eth routed down sysIntfShut 10G(D) - - Eth1/5 - - eth routed down sysIntfShut 10G(D) - - Eth1/6 - - eth routed down sysIntfShut 10G(D) - - Eth1/7 - - eth routed down SFP not inserted 10G(D) - - Eth1/8 - - eth routed down SFP not inserted 10G(D) - - Eth1/9 - - eth routed down SFP not inserted 10G(D) - - Eth1/10 - - eth routed down SFP not inserted 10G(D) - - Eth1/12 - - eth routed down SFP not inserted 10G(D) - - Eth1/13 - - eth routed down SFP not inserted 10G(D) - - Eth1/14 - - eth routed down SFP not inserted 10G(D) - - Eth1/15 - - eth routed down SFP not inserted 10G(D) - - Eth1/16 - - eth routed down SFP not inserted 10G(D) - - ------------------------------------------------------------------------------- Port-channel VLAN Type Mode Status Reason Speed Protocol Interface ------------------------------------------------------------------------------- Po1 1 eth access down No operational members auto(I) none Po100 1 eth access down No operational members auto(I) none ------------------------------------------------------------------------------- Port VRF Status IP Address Speed MTU ------------------------------------------------------------------------------- mgmt0 - - up 192.0.0.1 1000 1500 switch#
show snapshots Command
switch# show snapshots Snapshot Name --------------------------------------------------------------------------------------- snapshot_before_maintenance Wed Sep 10 20:19:31 2014 system-internal-snapshot snapshot_after_maintenance Wed Sep 10 20:29:54 2014 system-internal-snapshot snap1 Wed Sep 10 20:36:15 2014 For testing
show config-profile Command
switch# show config-profile config-profile maintenance-mode type admin router ospf 100 shutdown router eigrp 101 shutdown router isis 102 set-overload-bit always router bgp 103 shutdown vpc domain 20 shutdown system interface shutdown exclude fex-fabric config-profile normal-mode type admin router ospf 100 no shutdown router eigrp 101 no shutdown router isis 102 no set-overload-bit always router bgp 103 no shutdown vpc domain 20 no shutdown no system interface shutdown