Symptom
Configure Replace failed to restore "hardware profile latency monitor" configuration
Conditions
1) "hardware profile latency monitor" in candidate config file
2) configure replace
If "hardware profile latency monitor" was in running configuration, after CR it will be removed.
Workaround
Adding Key value to the parameters
Further Problem Description
N3K-C3548# sh run | i hard
hardware access-list lou resource threshold 1
hardware profile forwarding-mode warp
hardware profile buffer monitor unicast sampling 10 threshold 384
N3K-C3548# copy r bootflash:run_without_hard_12
Copy complete, now saving to disk (please wait)...
Copy complete.
N3K-C3548# conf t
Enter configuration commands, one per line. End with CNTL/Z.
N3K-C3548(config)# hardware profile latency monitor
N3K-C3548(config)# copy r bootflash:run_with_hard_12
Copy complete, now saving to disk (please wait)...
Copy complete.
N3K-C3548(config)# exit
N3K-C3548# configure replace bootflash:run_without_hard_12
Configure replace completed successfully. Please run 'show config-replace log exec' to see if there is any configuration that requires reload to take effect.
N3K-C3548# configure replace bootflash:run_with_hard_12
Configure replace failed. Use 'show config-replace log verify' or 'show config-replace log exec' to see reasons for failure
N3K-C3548# show config-replace log exec
Operation : Config-replace to user config
Checkpoint file name : .replace_tmp_20408
Scheme : tmp
Cfg-replace done By : admin
Cfg-replace mode : atomic
Verbose : disabled
Start Time : Mon, 00:04:57 01 Jan 2001
Start Time UTC : Mon, 00:04:57 01 Jan 2001
End Time : Mon, 00:05:12 01 Jan 2001
End Time UTC : Mon, 00:05:12 01 Jan 2001
Rollback Status : Failed
Restoring Previous Config : Success
Executing Patch:
----------------
`config t `
`hardware profile latency monitor threshold-max 2000000`
Latency monitor is not enabled
`exit`
Retrying Rollback Patch:
----------------
`config t `
`hardware profile latency monitor threshold-max 2000000`
Latency monitor is not enabled
`exit`
Undo Log
--------------------------------------------------------------------------------
Restoring previous config:
--------------------------
N3K-C3548#