» Publishers, Monetize your RSS feeds with FeedShow: More infos (Show/Hide Ads)
list with lots of hyperlinks to other scripts
New page
Because of that I've had little time to process the scripts that have been published.
But that doesn't mean I didn't keep a record of them :)
So until I get a bit more time, here's the list of scripts... (It will probably grow some more before it gets shorter again)
==== recent hyperlinks ====
[http://professionalvmware.com/2008/12/vmware-vix-changing-ips-of-a-guest-vm/ VMware VIX – Changing IP’s of a Guest VM]
[http://professionalvmware.com/2009/09/four-powercli-one-liners-that-saved-the-world/ Four PowerCLI One-Liners That Saved The World!]
[http://communities.vmware.com/docs/DOC-10878 Getting Started with the vMA (tips/tricks)]
[http://blogs.vmware.com/developer/2009/10/vsphere-apis-for-performance-monitoring-webinar-pdf-posted-.html vSphere APIs for Performance Monitoring - Webinar, PDF Posted !]
[http://www.jonathanmedd.net/2009/09/find-the-bios-version-of-an-esx-host.html Find the BIOS Version of an ESX Host ]
[http://get-admin.com/blog/?p=863 PowerCLI: VM displayName -ne Name]
[http://get-admin.com/blog/?p=879 PowerCLI: Speed boost, Find VM Snapshots by Name.]
[http://www.peetersonline.nl/index.php/vmware/add-vmx-path-to-vi-client-using-powershell/ Add Vmx Path to VI Client using Powershell]
[http://communities.vmware.com/docs/DOC-10641 Service status and email if down (as well as try to start it)]
[http://ict-freak.nl/2009/10/06/powercli-set-dvswitch/ PowerCLI: Set-dvSwitch]
[http://communities.vmware.com/docs/DOC-10859 Creating vSphere Client Plug In - Tech Ex Developer Day Session]
[http://communities.vmware.com/docs/DOC-10883 useVIFastpassOnvMAToRunPerlScriptWithoutClearTextPassword.pl]
[http://www.virtu-al.net/2009/10/12/powercli-more-hal-information/ PowerCLI: More HAL Information]
[http://www.virtu-al.net/2009/10/14/powercli-host-network-config/ PowerCLI: Host Network Config]
[http://ict-freak.nl/2009/10/05/powercli-enabledisable-the-vm-hot-add-features/ PowerCLI: Enable/Disable the VM Hot Add features]
[http://ict-freak.nl/2009/10/05/powercli-check-cpumemory-hot-add/ PowerCLI: Check CPU/Memory Hot Add]
[http://www.virtu-al.net/2009/09/21/powercli-one-liners-checking-host-network-information/ PowerCLI: One-Liners Checking Host Network Information]
[http://poshcode.org/1337 Get-SerialNumber]
[http://www.virtu-al.net/2009/09/23/powercli-how-many-vms-on-your-datastores/ PowerCLI: How many VMs on your Datastores ?]
[http://communities.vmware.com/docs/DOC-10807 getVMsPerDatastore.pl]
[http://communities.vmware.com/docs/DOC-10809 generateVMRemoteConsoleURL.pl]
[http://communities.vmware.com/docs/DOC-10777 getVMThinProvisionedSavings.pl]
[http://blogs.vmware.com/vipowershell/2009/08/how-to-list-datastores-that-are-on-shared-storage.html How to list datastores and VMs that are on shared storage.]
[http://communities.vmware.com/docs/DOC-10552 getShareableAndNonSharDatastore.pl]
[http://www.virtu-al.net/2009/08/17/powercli-reading-host-log-files/ PowerCLI: Reading host log files]
[http://www.ntpro.nl/blog/archives/1228-Visual-Basic-Samples-for-VMware-vSphere-Webservices-SDK.html Visual Basic Samples for VMware vSphere™ Webservices SDK]
[http://communities.vmware.com/docs/DOC-10003 Create File system]
[http://communities.vmware.com/docs/DOC-9925 Performance Statistics]
[http://communities.vmware.com/thread/221619?tstart=0 Remote Console URL]
[http://www.jonathanmedd.net/2009/09/average-cpu-and-memory-use-per-host-per-cluster.html Average CPU and Memory Use Per Host Per Cluster]
[http://www.ntpro.nl/blog/archives/1296-Ruby-sample-code-and-library-for-VI-SDK.html Ruby sample code and library for VI SDK]
[http://communities.vmware.com/docs/DOC-10885 getVMDiskInfo.pl]
[http://ict-freak.nl/2009/10/09/powercli-virtual-machine-disk-vmdk-info/ PowerCLI: Virtual Machine Disk (VMDK) info]
[http://day2dayadmin.blogspot.com/2009/10/configuring-network-with-powercli-and.html Configuring Network with PowerCLI and .CSV File]
[http://poshcode.org/1384 Get-Hostname]
[http://communities.vmware.com/docs/DOC-10866 setUserDatastorePermission.pl]
[http://blogs.vmware.com/vipowershell/2009/10/when-was-the-last-time-that-vm-was-powered-on.html When was the last time that VM was powered on?]
[http://communities.vmware.com/docs/DOC-10847 pluginExtensionManager.pl]
[http://halr9000.com/article/828 Adding Port Groups with PowerCLI]
[[Category: ToDo]]
added page with external scripts for my todo list
| ← Older revision | Revision as of 07:45, 24 October 2009 | ||
| Line 97: | Line 97: | ||
==== Javascript ==== | ==== Javascript ==== | ||
[[Ghetto vCenter 4.0 Unattended Installer]] | [[Ghetto vCenter 4.0 Unattended Installer]] | ||
| + | |||
| + | ==== In the pipeline ==== | ||
| + | [[External scripts that are not processed yet]] | ||
added page with external scripts for my todo list
| ← Older revision | Revision as of 07:45, 24 October 2009 | ||
| Line 97: | Line 97: | ||
==== Javascript ==== | ==== Javascript ==== | ||
[[Ghetto vCenter 4.0 Unattended Installer]] | [[Ghetto vCenter 4.0 Unattended Installer]] | ||
| + | |||
| + | ==== In the pipeline ==== | ||
| + | [[External scripts that are not processed yet]] | ||
Added link to interactive powershell tutorial
| ← Older revision | Revision as of 13:10, 17 October 2009 | ||
| Line 130: | Line 130: | ||
* [http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/09/07/parsing-powershell-scripts.aspx parsing PowerShell scripts] | * [http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/09/07/parsing-powershell-scripts.aspx parsing PowerShell scripts] | ||
| + | |||
| + | * [http://dougfinke.com/blog/index.php/2009/09/28/try-powershell-an-interactive-tutorial/ Try PowerShell – An Interactive Tutorial] | ||
==== Powershell tools ==== | ==== Powershell tools ==== | ||
Added link to interactive powershell tutorial
| ← Older revision | Revision as of 13:10, 17 October 2009 | ||
| Line 130: | Line 130: | ||
* [http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/09/07/parsing-powershell-scripts.aspx parsing PowerShell scripts] | * [http://blogs.microsoft.co.il/blogs/scriptfanatic/archive/2009/09/07/parsing-powershell-scripts.aspx parsing PowerShell scripts] | ||
| + | |||
| + | * [http://dougfinke.com/blog/index.php/2009/09/28/try-powershell-an-interactive-tutorial/ Try PowerShell – An Interactive Tutorial] | ||
==== Powershell tools ==== | ==== Powershell tools ==== | ||
Jason Boche just pointed out how to use vmware-configcheck, very very nice Jason, thanks!
New page
You can use this command to check your vmx files.
For example run it as:
vmware-configcheck | grep -v PASS
will show all the lines from the output that did NOT pass the configcheck.
==== example output ====
# vmware-configcheck
PASS /vmfs/volumes/78141e02-84ea5898-92c1-0001b3a0924a/Vista/vista.vmx
PASS /vmfs/volumes/78141e1a-046271b8-0a48-0001b3a0924a/CentOS/CentOS.vmx
PASS /vmfs/volumes/78141dd7-7b370470-6a0d-0001b3a0924a/Solaris/Solaris.vmx
Added link to William Lam's Getting started doc on VMTN
| ← Older revision | Revision as of 09:46, 6 October 2009 | ||
| Line 1: | Line 1: | ||
| + | ==== Learning more about Perl and the SDK ==== | ||
| + | [http://communities.vmware.com/docs/DOC-10837 Getting Started with the vSphere SDK for Perl] | ||
| + | |||
| + | [http://www.perl.org/docs.html Perl.org Online Documentation] | ||
| + | |||
| + | |||
| + | ==== Scripts ==== | ||
[[Esx scripts]] | [[Esx scripts]] | ||
Added link to VMTN PowerCLI Poster
| ← Older revision | Revision as of 09:40, 6 October 2009 | ||
| Line 22: | Line 22: | ||
* [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions] | * [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions] | ||
| + | |||
| + | * [http://communities.vmware.com/message/1381785 PowerCLI Poster with all the available cmdlets] | ||
==== PowerCLI Oneliners ==== | ==== PowerCLI Oneliners ==== | ||
added link to PowerCLI blog on how-to run scripts from vCenter alarms
| ← Older revision | Revision as of 13:01, 25 September 2009 | ||
| Line 33: | Line 33: | ||
| - | ==== | + | ==== PowerCLI scripts (not categorized) ==== |
* [http://virtualfuture.info/2008/07/powershell-remove-connected-iso/ Remove connected iso's] | * [http://virtualfuture.info/2008/07/powershell-remove-connected-iso/ Remove connected iso's] | ||
| Line 56: | Line 56: | ||
* [[PowerCLI: Oneliners]] | * [[PowerCLI: Oneliners]] | ||
| + | |||
| + | * [http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html How to run PowerCLI scripts from vCenter alarms] | ||
===== VM Configuration ===== | ===== VM Configuration ===== | ||
formatting
| ← Older revision | Revision as of 19:07, 23 September 2009 | ||
| (One intermediate revision not shown) | |||
| Line 1: | Line 1: | ||
==== vimsh vmsvc/device.diskadd ==== | ==== vimsh vmsvc/device.diskadd ==== | ||
| - | Usage: device.diskadd vmid size controller number unit number datastore | + | Usage: device.diskadd vmid size controller-number unit-number datastore |
| - | Add a disk to | + | Add a disk to the virtual machine with id vmid. |
| + | Size is the new disk size in kilobytes. | ||
| + | Controller number is the controller number as is specified in the vmx configuration file. | ||
| + | |||
| + | |||
| + | ==== Example ==== | ||
| + | |||
| + | vim-cmd vmsvc/device.diskadd 16 5242880 scsi0 2 datastore1 | ||
| + | |||
| + | See also: | ||
| + | * [http://communities.vmware.com/thread/233019 VMTN: vim-cmd vmsvc/device.diskadd syntax headaches] | ||
[[Category: Vimsh]] | [[Category: Vimsh]] | ||
added tip from birdie on creating an alias for vmware-config.pl on newer VMware workstation setups
| ← Older revision | Revision as of 10:16, 23 September 2009 | ||
| Line 51: | Line 51: | ||
-rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | -rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | ||
-rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | -rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | ||
| + | |||
| + | ====Alternative solution==== | ||
| + | Of course there is still a vmware application available that you can use for this as well. | ||
| + | [http://communities.vmware.com/people/birdie Birdie] came up with a smart alternative so you can keep things like they used to be by creating an alias for the modconfig with the correct parameters to run it in the console. | ||
| + | alias vmware-config.pl='vmware-modconfig --console --install-all' | ||
[[Category: CLI]] [[Category: Bash]] | [[Category: CLI]] [[Category: Bash]] | ||
added tip from birdie on creating an alias for vmware-config.pl on newer VMware workstation setups
| ← Older revision | Revision as of 10:16, 23 September 2009 | ||
| Line 51: | Line 51: | ||
-rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | -rw-r--r-- 1 root root 79897 2008-12-07 01:07 vmnet.ko | ||
-rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | -rw-r--r-- 1 root root 34834 2008-12-07 01:07 vsock.ko | ||
| + | |||
| + | ====Alternative solution==== | ||
| + | Of course there is still a vmware application available that you can use for this as well. | ||
| + | [http://communities.vmware.com/people/birdie Birdie] came up with a smart alternative so you can keep things like they used to be by creating an alias for the modconfig with the correct parameters to run it in the console. | ||
| + | alias vmware-config.pl='vmware-modconfig --console --install-all' | ||
[[Category: CLI]] [[Category: Bash]] | [[Category: CLI]] [[Category: Bash]] | ||
Added link to PSOD KB article
| ← Older revision | Revision as of 07:00, 23 September 2009 | ||
| Line 258: | Line 258: | ||
* [http://kb.vmware.com/kb/1004250 VMware KB: Decoding Purple Screen errors] | * [http://kb.vmware.com/kb/1004250 VMware KB: Decoding Purple Screen errors] | ||
| + | * [http://kb.vmware.com/kb/1005184 VMware KB: Decoding Machine Check Exception (MCE) output after a purple screen (PSOD) error] | ||
| + | |||
[[Category: ESX]] [[Category: CLI]] | [[Category: ESX]] [[Category: CLI]] | ||
Added link to PSOD KB article
| ← Older revision | Revision as of 07:00, 23 September 2009 | ||
| Line 258: | Line 258: | ||
* [http://kb.vmware.com/kb/1004250 VMware KB: Decoding Purple Screen errors] | * [http://kb.vmware.com/kb/1004250 VMware KB: Decoding Purple Screen errors] | ||
| + | * [http://kb.vmware.com/kb/1005184 VMware KB: Decoding Machine Check Exception (MCE) output after a purple screen (PSOD) error] | ||
| + | |||
[[Category: ESX]] [[Category: CLI]] | [[Category: ESX]] [[Category: CLI]] | ||
Added link to PSOD KB article
| ← Older revision | Revision as of 06:58, 23 September 2009 | ||
| Line 30: | Line 30: | ||
dump file has been read off the dump partition. When this option is specified, the compressed | dump file has been read off the dump partition. When this option is specified, the compressed | ||
dump will only be read off the dump partition if the read count is zero. | dump will only be read off the dump partition if the read count is zero. | ||
| - | + | ||
-z, --zdumpname compressedFileName | -z, --zdumpname compressedFileName | ||
When reading from the dump partition, this option specifies the name of the file to create with | When reading from the dump partition, this option specifies the name of the file to create with | ||
the compressed dump. By default the name is vmkernel-zdump.#, where # is a unique number. | the compressed dump. By default the name is vmkernel-zdump.#, where # is a unique number. | ||
| - | + | ||
-s, --slot slotnum | -s, --slot slotnum | ||
On dump partitions that reside on shared storage, multiple machines can share the dump partition. | On dump partitions that reside on shared storage, multiple machines can share the dump partition. | ||
| Line 64: | Line 64: | ||
created file vmkernel-zdump.1 | created file vmkernel-zdump.1 | ||
| + | |||
| + | ==== Links ==== | ||
| + | [http://kb.vmware.com/kb/1005184 Decoding Machine Check Exception (MCE) output after a purple screen (PSOD) error] | ||
[[Category: CLI]] | [[Category: CLI]] | ||
Added link to PSOD KB article
| ← Older revision | Revision as of 06:58, 23 September 2009 | ||
| Line 30: | Line 30: | ||
dump file has been read off the dump partition. When this option is specified, the compressed | dump file has been read off the dump partition. When this option is specified, the compressed | ||
dump will only be read off the dump partition if the read count is zero. | dump will only be read off the dump partition if the read count is zero. | ||
| - | + | ||
-z, --zdumpname compressedFileName | -z, --zdumpname compressedFileName | ||
When reading from the dump partition, this option specifies the name of the file to create with | When reading from the dump partition, this option specifies the name of the file to create with | ||
the compressed dump. By default the name is vmkernel-zdump.#, where # is a unique number. | the compressed dump. By default the name is vmkernel-zdump.#, where # is a unique number. | ||
| - | + | ||
-s, --slot slotnum | -s, --slot slotnum | ||
On dump partitions that reside on shared storage, multiple machines can share the dump partition. | On dump partitions that reside on shared storage, multiple machines can share the dump partition. | ||
| Line 64: | Line 64: | ||
created file vmkernel-zdump.1 | created file vmkernel-zdump.1 | ||
| + | |||
| + | ==== Links ==== | ||
| + | [http://kb.vmware.com/kb/1005184 Decoding Machine Check Exception (MCE) output after a purple screen (PSOD) error] | ||
[[Category: CLI]] | [[Category: CLI]] | ||
Added link to Daily Report in Tiddlywiki
| ← Older revision | Revision as of 08:47, 21 September 2009 | ||
| Line 21: | Line 21: | ||
[http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/ Virtu-al.net: Daily Report Version 2] | [http://www.virtu-al.net/2009/08/18/powercli-daily-report-v2/ Virtu-al.net: Daily Report Version 2] | ||
| + | |||
| + | [http://blog.unclephil.net/post/2009/09/20/Quick-win-combination Daily Report and Healthcheck embedded in Tiddlywiki] | ||
[[Category: PowerCLI]] | [[Category: PowerCLI]] | ||








