Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 182126

ComplianceManager.QueryComplianceStatus

$
0
0

Hey guys,

 

I am having issues using the QueryComplianceStatus method from ComplianceManager. I have tried to use it with both a profile and entity, but each time it continues to generate the error: "Cannot find an overload for "CheckCompliance" and the argument count: "1"

 

 

Here is the link to Compliance Manager and the methods.

http://www.vmware.com/support/developer/converter-sdk/conv50_apireference/vim.profile.ComplianceManager.html

 

Here is the exact error:

 

PowerCLI C:\> $compMgr.CheckCompliance($clustermoref)
Cannot find an overload for "CheckCompliance" and the argument count: "1".
At line:1 char:25
+ $compMgr.CheckCompliance <<<< ($clustermoref)
    + CategoryInfo          : NotSpecified: (:) [], MethodException
    + FullyQualifiedErrorId : MethodCountCouldNotFindBest

 

The object in $clustermoref is a managedobject and points back to a cluster object reference that I want to pull the compliance info for.

 

My end result is trying to pull the cluster profile compliance status for each host and cluster object, without having to generate a check compliance task to scan each object. I just want to know what the current cluster compliance status is for those objects. If there is a better way to execute this I am all ears.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 182126

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>