This solution is going to illustrate a Python script that checks both vPC pair switches for any inconsistencies related to vPC. In this particular example we are only covering MTU mismatch, but it could be extended to any other value.
If the the script detects any configuration issues, it will identify the mis-match and attempt a recovery by applying the correct configuration value. We are able to accomplish this solution by using the Python script and NX-API CLI.