I think my question has been already answered under:
https://community.cisco.com/t5/cisco-catalyst-center/ama-cisco-catalyst-center-software-image-management-swim/td-p/5133391
When performing SWIM on a device, Catalyst Center performs initial readiness checks using a built-in script. However, users have the option to include additional custom checks if needed. On the software update page, you can click to add a new custom check.

This action will prompt you to input the commands for the check, specify the device type, and choose when during operations the check should occur. You have the flexibility to apply the check to both distribution and activation tasks, either before or after each operation.
