Using the power of Python scripting combined with the NX-API CLI, it is possible to automate many time-consuming and error-prone tasks. In this use-case, we showed how automation can help operators minimize configuration errors that could potentially lead to service interruptions, and eliminate time it might take to troubleshoot vPC problems manually.