Guv's Posts

thanks a lot that worked.
I am having issues running the SRM environment variables such as : VMware_RecoveryMode and VMware_VC_Host. I want to know how to apply these to scripts like in a if and else statements.... See more...
I am having issues running the SRM environment variables such as : VMware_RecoveryMode and VMware_VC_Host. I want to know how to apply these to scripts like in a if and else statements. So if i pass the variable via echo and run it in a step in a recovery plan it works so the script is called testrun : echo %VMware_RecoveryMode% >> D:\scripts\MES\logs\logfile.log and so when i add a step in the recovery step to the location of this script like : C:\Windows\System32\cmd.exe /c d:\scripts\MES\Testrun.bat It runs fine when i run a test as it outputs test in the log fils. But now when i run this variable in a script with the if and else statements when doing a test recovery it does not work.  So an example of the script is : If "%VMware_RecoveryMode%==test" echo %VMware_RecoveryMode% >> D:\scripts\MES\logs\logfile.log This fails in a recovery plan.   I have tried various combinations of if syntax with quotation marks, brackets, and then commands, but it keeps failing. Has anyone used these variables in scripts and made it to work, can anyone send a sample of a working script. Thanks
I am having issues running the SRM environment variables such as : VMware_RecoveryMode and VMware_VC_Host. I want to know how to apply these to scripts like in a if and else statements.... See more...
I am having issues running the SRM environment variables such as : VMware_RecoveryMode and VMware_VC_Host. I want to know how to apply these to scripts like in a if and else statements. So if i pass the variable via echo and run it in a step in a recovery plan it works so the script is called testrun : echo %VMware_RecoveryMode% >> D:\scripts\MES\logs\logfile.log  and so when i add a step in the recovery step to the location of this script like : C:\Windows\System32\cmd.exe /c d:\scripts\MES\Testrun.bat It runs fine when i run a test as it outputs test in the log fils. But now when i run this variable in a script with the if and else statements when doing a test recovery it does not work.  So an example of the script is : If "%VMware_RecoveryMode%==test" echo %VMware_RecoveryMode% >> D:\scripts\MES\logs\logfile.log This fails in a recovery plan.   I have tried various combinations of if syntax with quotation marks, brackets, and then commands, but it keeps failing. Has anyone used these variables in scripts and made it to work, can anyone send a sample of a working script. Thanks
Thanks for the replies. Is there anyway we can list out only the VM's with windows XP OS, as the above scripts lists out all VM's
Is it possible to get a script which will list all VM's in a virtual centre which is running windows XP OS.  And also which vmware datacentre they are in. That would be great to have in a csv fo... See more...
Is it possible to get a script which will list all VM's in a virtual centre which is running windows XP OS.  And also which vmware datacentre they are in. That would be great to have in a csv format
Is there a powershell script which we can tell us in a vmware cluster if there are VM's with RDM's, and displays the name of the VM at least.
Thanks for thr reply. I am using vmware vsphere powercli 5.5 release 1. Hop this helps
I tried that but it errors with that the get-datastore cannot have the pipeline values.  I dont think there are any cluster switches with the get-datastore command.  anymore ideas on this. Thank... See more...
I tried that but it errors with that the get-datastore cannot have the pipeline values.  I dont think there are any cluster switches with the get-datastore command.  anymore ideas on this. Thanks
I want to run a powershell script on a vmware cluster to list all the VM's which are on vmfs datastores.  We have a vmware cluster which has a mix of vmfs and nfs datastores, and want to move all... See more...
I want to run a powershell script on a vmware cluster to list all the VM's which are on vmfs datastores.  We have a vmware cluster which has a mix of vmfs and nfs datastores, and want to move all the VM's off the vmfs datastores onto the nfs datastores, but first we need a list of the VM's which are on the vmfs datastore in a specific cluster. Is this possible to run in a vmware powershell script. Thanks
Is there a script i can get which will give me a list of VM's in a cluster which have RAW Luns.  I tried various but cannot get the right list. Thanks
I am using the vcentre 5.5, and have started to use the vpshere web client.   But in the web client in administration/solutions, I cannot see the plugin management to enable plugins.   I have sto... See more...
I am using the vcentre 5.5, and have started to use the vpshere web client.   But in the web client in administration/solutions, I cannot see the plugin management to enable plugins.   I have stopped the firewall on my vpshere server but still no luck. I have administration rights to the virtual centre as well.   In the desktop vsphere client I can see in the plugins ok.   I have setup VSC6.2, but it can only be used in the web client. Is there something you have to do to get the plugin management appear in the web client. Thanks
Can i get help please, I need to get all a list of all thin provisioned disks which are over 500gb only.  The report needs to show the VM name, vmdk file, and size of the virtual disk.   I have t... See more...
Can i get help please, I need to get all a list of all thin provisioned disks which are over 500gb only.  The report needs to show the VM name, vmdk file, and size of the virtual disk.   I have tried using powershell commands but cannot get the list. Can anyone advise Thanks
I want to write a powershell script to get a list of all VM's in a virtual centre and list out their C drive size and how much space they have left in GB.   But i want to filter out the VM's by j... See more...
I want to write a powershell script to get a list of all VM's in a virtual centre and list out their C drive size and how much space they have left in GB.   But i want to filter out the VM's by just displaying the domain controllers VM's.   All our domain controllers VM's have the letters 'dc' in them so can the VM's  be filtered with this in anyway. Thanks
I need some advice on best practices for setting up datastores, and in particular nfs data stores.   Things I am looking for is that is it best to setup datastores for different types of data or ... See more...
I need some advice on best practices for setting up datastores, and in particular nfs data stores.   Things I am looking for is that is it best to setup datastores for different types of data or one universal datastore type.  Such as we have VM's which we have virtual disks fo the os and then addtitional virtual disks for there data.  So would it be best to setup a a datastore for OS virtual disks, and then other datastores for the data virtual disks, or would it be best just to create many datastores which can include  all the OS and data virtual disks. Also whats the best practice for the maximum size for datastores and how many virtual machine disks should be on one datastore. Is there any best practices for setting up datastores.
i am trying to understand the usefulness of profile ( or policy) driven storage.  In our situation we use vsphere 5, and we have virtual machines, whereby the OS is installed on hard disk 1, pa... See more...
i am trying to understand the usefulness of profile ( or policy) driven storage.  In our situation we use vsphere 5, and we have virtual machines, whereby the OS is installed on hard disk 1, page file on harddisk 2 and data on hard disk 3, 4 , 5 etc and so on.  We have a separate datastores for the OS of the VM's, page files and data.  Thats how we try to setup our VM's.  Occasionally this gets missed out whereby the OS and page file disk end up on the same datastores like the OS datastore.  So could we use profile driven storage to make sure hard disk 1 (OS) is on certain datastores and hard disk 2 (page file) is on certain datastores and hard disk 3, 4 (data) etc are on rest of the other datastores.  If they are not then you get a  noncompliant alert appear on the summary of the VM. Can profile driven storage be used in this way, or is there another method of doing this of making sure
I am using virtual centre 5.0 with build number 455964, and am in the process renaming a virtual machine name.  The display name is done but i want this reflected in vmdk, vmx files etc as well. ... See more...
I am using virtual centre 5.0 with build number 455964, and am in the process renaming a virtual machine name.  The display name is done but i want this reflected in vmdk, vmx files etc as well.  I have tried the various solutions where you do a storage vmotion to a new datastore but it only renames the folder not the files.  I have tried powering off and doing a cold migrate to another datastore but still it does not rename the files. I read about an advanced setting in vcentre where you add provisioning.relocate.enablerename setting but i think thats for vcentre5 u2, and we are running vcentre5.0 only.  I did try this setting but no difference even after restarting the VC service. The virtual machines have 3 vmdk files, and I have moved all to the same different datastore. Any ideas on how I can rename the virtual machine files as well in vcentre5.0
In creating a vmware view pool on 4.6, i am creating customization spec, for the pool, and in the run once, step i want to add a script which will add this virtual desktop to our domain based on ... See more...
In creating a vmware view pool on 4.6, i am creating customization spec, for the pool, and in the run once, step i want to add a script which will add this virtual desktop to our domain based on a template which is already on the domain, Is there any scripts i can use which will add the computer account to the domain and add it in a specific OU.   Possibly based on powershell. Has anyone done a script which works, can anyone provide me one. Thanks
Can you advise please.  I have a vcentre4.1 and also we have vmware view 4.6.  I am trying to setup a new pool, so I have setup a new VM called goldTemplate and will set this up as a template. W... See more...
Can you advise please.  I have a vcentre4.1 and also we have vmware view 4.6.  I am trying to setup a new pool, so I have setup a new VM called goldTemplate and will set this up as a template. We have know a new vcentre 5.0 which has its own datastores, and are different datastores to the vcentre 4.1 has. I want to move the VM called goldtemplate from vcentre 4.1 to the vcentre5.0.  Then on vcentre 5.0 want  on the moved VM want to upgrade the virtual hardware and the vmware tools on this VM and then turn into a template and then provision the VDI pool.  The new vcentre 5.0 is already setup on vmware view 4.6. My first question is what is the best way to move the VM from vcentre4.1 to vcente5.0, where both have their own datastores.  I can turn the VM into template before the move if that helps. Also once moved to Vcentre 5.0, it should be ok to upgrade the virtual hardware and vmware tools and then provision the pool, any issues with this, with the versions of view and vcentres we have. Any advise
In ESXi5.0, what logs do we need to look for to see any issues on the ESXi server such as for any crashes, errors and warnings.  And do these logs disappear when you reboot the server , or is the... See more...
In ESXi5.0, what logs do we need to look for to see any issues on the ESXi server such as for any crashes, errors and warnings.  And do these logs disappear when you reboot the server , or is there a persistent place setup or do you have to set one up manually. Any advise on ESXi5.0 logs.
I am using virtual centre 4.0.0, 385281 and have esx 4.0.0, 208167, and have an issue with storage vmotion which is failing on one VM.  The VM have about 8 disks, where 5 of them are RDM , and 3 ... See more...
I am using virtual centre 4.0.0, 385281 and have esx 4.0.0, 208167, and have an issue with storage vmotion which is failing on one VM.  The VM have about 8 disks, where 5 of them are RDM , and 3 are virtual disks, and I am just trying to move one of the virtual disks to another datastore.  It starts off and then it fails with an error message The operation is not allowed in the current state.   I have deleted all snapshots on this VM as well but still the same error message. I have tried other VM's and their storage vmotion works fine. Any ideas.