VMware Sample Exchange
Browse and download code samples from VMware as well as code samples contributed by the VMware community. Log in to Sample Exchange using your MyVMware credentials to submit requests for new samples, contribute your own samples, as well as propose a sample as a solution for open requests.
Disclaimer: All sample content and code in Sample Exchange is licensed to you by the sample's author. VMware does not guarantee the samples; they are provided "AS IS". Use of this site is subject to the VMware Community Terms of Use.
Browse the list below for code samples from VMware and the community. You can filter the list of samples by selecting a platform or language, or enter other search keywords above.
Filters
Type
SDK / Platform / Tool
Contributor
Language
- PowerCLI Port of RVC commands vsan.health.cluster_proxy_configure and vsan.health.cluster_proxy_statusThis script contains 2 Functions that can get or set the vSAN Proxy Configuration. These align with the following RVC commands: vsan.health.cluster_proxy_configure vsan.health.cluster_proxy_statusVMware PowerCLI PowerShell
- PowerCLI Port of RVC commands vsan.apply_license_to_clusterThis script can be used to: Add a license to vCenter if it hasn't already been added Assign that license to a specified cluster The script includes a function which can be invoked using the followi ...VMware PowerCLI PowerShell
- PowerCLI Port of RVC command vsan.disks_infoThis PowerCLI script will return a list of local disks on a vSAN host as the vsan.disks_info RVC command does. Disk information includes the name, model, revision, whether an SSD or not, use by vSAN ...VMware PowerCLI PowerShell
- PowerCLI Port of RVC command vsan.stretchedcluster.witness_infoThis script includes a function that reports the vSAN Witness information for a 2 Node or Stretched vSAN Cluster. Information included is: Cluster Name Witness Host Name Witness Uuid Witness IP Addre ...VMware PowerCLI PowerShell
- PowerCLI Port of RVC command vsan.object_infoThis is the first of many RVC Style Functions that use PowerCLI 11 to mimic some of the tasks available in the Ruby vSphere Console for vSAN Requires William Lam's VSANUUIDtoVM Function, located here: ...VMware PowerCLI PowerShell