when you SCCM patch deployment ,State of the patch status are sent back to SCCM .Below are the available LastStates for the patches when they are deployed.
Using Laststate/LastStateName from View v_GS_PatchStatusEx ,you can create variety of reports to know the status of the any patch package.
LastState | LastStateName |
0 | No Status |
101 | Failed |
102 | Reboot pending |
105 | Install Verified |
107 | Preliminary Success |
couple of Patch Compliance reports based on laststate/Laststatename are
SCCM Patch Compliance Progress report: http://eskonr.com/2009/10/patch-status-compliancesoftware-updates-report-in-sms-sccm/
Software Update Compliance Status on Specific Collection : http://eskonr.com/2009/09/report-for-software-update-report-for-software-update-compliance/
SCCM monthly Patch statistics report http://eskonr.com/2011/10/sccm-monthly-patch-statistics-reports-to-the-management-in-a-simplified-manner/