Programmatically get number of compliant endpoints

(imported topic written by SystemAdmin)

Can somebody please steer me in the right direction how to programmatically get number of compliant endpoints preferably using java or command line?

(imported comment written by SystemAdmin)

Actually percentage of compliant endpoints…

(imported comment written by PeterLoer)

Hi Joshua,

You probably want to issue a query using session relevance via the SOAP APIs:

My session relevance is a little rusty, but you might be looking for something like:

( (number of results whose (relevant flag of it) of fixlet 177 of bes site whose (name of it is 
"BES Support")) / (number of bes computers as floating point) )

This would give you the percentage of all of your endpoints which relevant (i.e., non-compliant) for a particular fixlet or baseline (in this example, the restart needed fixlet in BES Support, I think).

cheers,

peter