Symptom
If the configuration is not saved after the switch first bootup via POAP, "Maintenance mode profile" configuration is lost after reload or power cycle.
Conditions
Use PoAP feature and POAP config contains 'system mode maintenance on-reload reset-reason ...' config which causes it to enter 'unplanned maintenance'.
Workaround
Enter the 'copy running-config startup-config' command after the POAP config has been applied and the switch is back to normal mode.
Further Problem Description
The below configurations are in cfg file and startup-config.
configure maintenance profile normal-mode
router bgp 65021
template peer template-A
address-family ipv4 unicast
no prefix-list test out
configure maintenance profile maintenance-mode
router bgp 65021
template peer template-A
address-family ipv4 unicast
prefix-list test out
But if switches reload or power cycle, only below configuration can be seen from "show runing-config". But the configuration in startup-config is normal.
configure maintenance profile normal-mode
router bgp 65021
no isolate
configure maintenance profile maintenance-mode
router bgp 65021