Code Monkey home page Code Monkey logo

Comments (2)

lamw avatar lamw commented on July 19, 2024

Hm, I've not seen this before. Is the TLS certificate on your vCenter Server valid and not having any issues? Are you able to run the default vSAN cmdlets w/o issue or just using the function?

from vmware-scripts.

mmohr1 avatar mmohr1 commented on July 19, 2024

Yes, get-vsanview works just fine. I tried running the script example for getting the vsan version from your blog one command at a time.

PS C:> get-vsanview

VsanClient MoRef


VMware.Vsan65.Views.VsanClientImpl VsanVcClusterConfigSystem-vsan-cluster-config-system
VMware.Vsan65.Views.VsanClientImpl VimClusterVsanVcStretchedClusterSystem-vsan-stretched-cluster-system
VMware.Vsan65.Views.VsanClientImpl VimClusterVsanVcDiskManagementSystem-vsan-disk-management-system
VMware.Vsan65.Views.VsanClientImpl VsanVcClusterHealthSystem-vsan-cluster-health-system
VMware.Vsan65.Views.VsanClientImpl VsanUpgradeSystemEx-vsan-upgrade-systemex
VMware.Vsan65.Views.VsanClientImpl VsanSpaceReportSystem-vsan-cluster-space-report-system
VMware.Vsan65.Views.VsanClientImpl VsanIscsiTargetSystem-vsan-cluster-iscsi-target-system
VMware.Vsan65.Views.VsanClientImpl VsanObjectSystem-vsan-cluster-object-system
VMware.Vsan65.Views.VsanClientImpl VsanPerformanceManager-vsan-performance-manager

PS C:> $vchs = get-vsanview -Id "VsanVcClusterHealthSystem-vsan-cluster-health-system"
PS C:> $cluster_view = (Get-Cluster -name Management).ExtensionData.MoRef
PS C:> $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluster_view)
Exception calling "VsanVcClusterQueryVerifyHealthSystemVersions" with "1" argument(s): "Could not establish trust
relationship for the SSL/TLS secure channel with authority 'VC_Name'."
At line:1 char:1

  • $results = $vchs.VsanVcClusterQueryVerifyHealthSystemVersions($cluste ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : SecurityNegotiationException
    

from vmware-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.