Quantcast
Channel: VMware Communities : Discussion List - Automation Tools
Browsing all 9071 articles
Browse latest View live

Maximum, Minimum and Average CPU & Memory usage per cluster

Hi, I need to get Maximum, Minimum and Average CPU & Memory usage per cluster. For a specific amount of time. for example a week. Currently I am using this: foreach($vmHost in Get-VMHost){...

View Article


Rename Portgroup give error, "Unexpected error checking compliance: 'None...

Hello,I am using a script in my environment which renames PortGroupwhat I do is"$PortGroup | Set-VirtualPortGroup -Name $pgNameNew -VLanId $vlanID | out-null" the command goes fine, when I check the...

View Article


vMotion TCP/IP Stack- Created by Powercli

Hi all, Has anyone successfully automated the creation of the vMotion TCP/IP Stack on each host and then the creation of the vMotion VMK utilizing the newly created stack. RegardsCliff

View Article

Host Statistic - need the format in a particular format

So I am trying to  do it in this format so I can send the output to HTML. This is the items I found on the discussion board from LucD that I am trying to use Get-VMHost-NameMyEsx|SelectName,...

View Article

vNIC mapping - issues

Hello, All, I have been at this for hours and while I can pull each of these values indirectly, I have been unsuccessful in putting them together into a single spreadsheet.  The biggest issue is not...

View Article


runing script in guest OS

HelloI have powershell script to get the list of application installed on the servers through get-itemproperty,, now i want to run this on all virtual machine through powerCLI, can you please help me?...

View Article

PowerCLI error reporting is broken when working with vCloud Director

It seems that PowerCLI Cmdlets error reporting for vCloud Director cmdlets is broken. For example:When creating new vapp from template with New-CIVapp and it fails (due storage quota exceeded) powercli...

View Article

New to PowerCLI

Hi,How can I put all hosts under one variable or instance to run one command against all hosts.Thank you

View Article


Script to Audit Permissions. in Vcenter

I need to Audit the vCenter to see what user accounts have access to VMs/Folders/Datastores/etc etc etc Im not a script guy, and my searchs seem to be coming up short..  Im hoping someone that knows...

View Article


Image may be NSFW.
Clik here to view.

Script - Rules DRS

Good afternoon, with the PowerCLI is possible to activate and deactivate a DRS rule?  Example: I would like to disable a DRS rule on Wednesdays, Thursdays and Fridays.  Regards.

View Article

Get datastore folders with PowerCLI

Hi, I'm trying to search all the folders that exists on different datastores in my organization using PowerCLI.The thing is that I found some commands to get the VMs folders.But what about folders that...

View Article

Command to get license key information of a host

Hi, I would like to fetch the license key of a single host Am able to fetch list of license keys assigned in a vcenter, but unable to fetch host wise. My requirement is , i will be connecting to...

View Article

Power on vm's with Linux PowerCli

My goal is simply to power on other vm's from a Ubuntu server with the powercli. As documented here, vmware-cmd can be used to control vm's with the following...

View Article


Mail the powercli output

I'm little new to powercli. I have created a script to list all the ESXi hosts across our vCenters which are not in Connected state. I'm able to get the output as a text format and was able to schedule...

View Article

Image may be NSFW.
Clik here to view.

Open-VMConsoleWindow -- Having issues

Hello Community -  I am hoping someone here can point me in the right direction.  I had to rebuild my laptop recently and I haven't been able to figure this out.  Prior to the crash - I was able to run...

View Article


remove certain folders from datastore over 7 days old

I have a NFS datastore that has VM clones for backup purposes. These VM clones are not in the vCenter inventory. I would like to schedule something that only keeps 7 days worth of clones per VM. Also...

View Article

How to get SrmFolder from MoRef using PowerShell & SRM API

I'm trying to list my Protection Groups which are nested in folders. I can get the parent folder MoRef easily enough: $srmapi.Protection.ListProtectionGroups()[0].GetParentFolder().MoRef But how can I...

View Article


Image may be NSFW.
Clik here to view.

get-vm inventory with vmtag

How can I get vmname, vmtagcategory and vmtag value side by side with powercli  PS C:\Users\test> Get-Tag Name                                     Category                       Description...

View Article

vmware-vim-cmd on linux (centos, ubuntu)

Hello, I needed to create some scripts to use snapshot. And I found vmware-vim-cmd executable file.But, It always show me error messages'Failed to login: connection refused'  or'Failed to login: Server...

View Article

Image may be NSFW.
Clik here to view.

script to get vcenter, datacenter, cluster and dsc

I need a script that lists the datacenter by vCenter, in each data center list the DataStore cluster and the clusters and the port group.If possible list the hosts in each data center showing the...

View Article
Browsing all 9071 articles
Browse latest View live