How to get Server Status of an Action/Deployment

How do I get server status of an action whose action is Open Or Expired or anything

If the Action status is open–> I see the computer status column of that action as “Status”

If the Action status is Expired–> I see the computer status column of that action as “last Reported Status”

I would like to get the status of an server for a particular action.

(id of computer of it, name of computer of it, status of it) of results of bes actions whose (id of it = <%id%>) – This is not working all the time [It works for open status alone]

It’ll help if you give examples of the results you do get when it works and when it doesn’t.