VMware recently added a new section to their Developers Community Website. The new section is called VMware Sample Code, this new section contains a lot of Perl and Java examples like a script to create VmfsDatastore, a script to monitor the storage related events(Datastore related) on a Virtual Center and a script to Monitoring VM related events. You can sort the code by product or language.
Find and download the latest VMware sample code. You can find sample code by languages including Java, Perl & C#. Sample code is also available by product including VMware Virtual Center, VMware ESX, Guest SDK and many more.
You can also share your own code on VMwareβs Community Sample Code.