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

Need help gathering CPU and RAM info

Hi All, I have the following, working, script that outputs VM names and the full folder hierarchy they're in.  I need to add detail for vCPU count and Memory.  Can you help? $report = @()Get-VM |...

View Article


Image may be NSFW.
Clik here to view.

Esxi Host Cannot complete login due to an incorrect user name or password.

Hi  I need to supply User  name and password while reconnecting Esxi host but with below lines I can't  succeed. Please help. Set-VMHost -State Connected -VMHost...

View Article


Help with begginer's script for datastore and harddisks

Hello there,I'm quite new to writing scripts and recently I created a monstrosity below.The problem is with the results. I have no idea why in the results I get the VM name and it's datastore over and...

View Article

How do i get powered Off date for all virtual system from PowerCLI?

Hi, we are using vSphere 5.1 with more that 500+ vm's. it is very difficult to get powered off date for each virtual system can any one help me out with automated script to get last powered off date...

View Article

How to calculate CPU contention via Powercli in vsphere 5.5?

Hello everyone! I installed Vmware Vrealize trial version in my infrastructure. Vrealize show CPU Contention metric, I want to calculate it via Powercli. Do you know how to do it? Which Vsphere metrics...

View Article


Browse datastores using PowerCLI

We have a large VMware 5.0 installation across many data centers, clusters and hosts.  If we remove a VM from inventory without noticing the datastore it was residing on and need to add it back to...

View Article

Get-View to replace Get-VM

I have a script this forum helped me run, much of it using Get-VM.  This works well, however, doing some research the script takes a very long time to run (about 75 VC's with around 25,000 total VM's)....

View Article

I am looking for a Script which can list all VMS with E1000 NIC type through...

Hi gurrus and LucDI am looking for a Script which can list all VMS with E1000 NIC type through CSV file output. The script must search information in a multiple Vcenter servers plus multiple clusters...

View Article


Image may be NSFW.
Clik here to view.

Gateway IP sub-allocation --can I list these contents?

All,Just getting into powercli for vcloud...wondering if there is a command that will list the IP range of all the gateways.  The field I want in the gui is under manage and monitor, cloud resources,...

View Article


Cannot see Intel® Ethernet Server Adapter I340-T4 on ESXI 5.5 installed driver

We are using ESXI 5.5. I installed driver for this NIC: Intel® Ethernet Server Adapter I340-T4. (we used vSphere PowerCLI to install these driver files: igb-3.2.10-504656.zip, igb-4.2.16.8-1242301.zip,...

View Article

Image may be NSFW.
Clik here to view.

[Help] CPU type script

Hi Guys, I am stucket with a script that can  display usage of CPU by processor type and % of host using AMD for all host attached to a vcenter. Is their my little script... $TotalCpu = (Get-VMhost |...

View Article

How to calculate CPU Ready on DRS Cluster via Powercli?

Hello everyone!  I Have a Vsphere DRS cluster. I want to know what value of CPU Ready I have in my cluster.  For example, I get value 20% from powercli, It's normal for cluster, but if  I have 100% or...

View Article

Image may be NSFW.
Clik here to view.

Migration to another host fails

Hi Community, i wrote a script to shutdown, enable memory and cpu hotplug, migrate to another host and start the vm after all tasks done. I use the following command to migrate the vm to another...

View Article


Image may be NSFW.
Clik here to view.

backup script

Hi all, i'm looking for script that will create weekly clone for virtual and monthly clone. the script will delete old clone after the new one will create, also will send email in the end. does someone...

View Article

how to get the specific hardware and sofware info of Datacenter

how to get the specific hardware and sofware info of Datacenter with powercli....

View Article


fill up excel sheet

I got a little script to count vm in a vcenter. data is pulled into an xls file "report.xls" evrything is working fine but when i ran the script it overwrite the old one ( and the data ) t want to know...

View Article

pwercli Vs Powershell

I have not used HyperV as much, how many % of powercli script will work for hyperv  as it is or how many cmdlets are same ? I am sure they do not have HA or DRS but something else for the same feature...

View Article


Vmware tools

When i decide to use RHEL based repo style for vmwrae tools, i take a step back, reason is it does not allow me to do, Update-Tools –NoReboot   -RunAsync, pls correct me if wrong I belive that works...

View Article

Problem with Upgrade Tools Policy with PowerCLI script

Hello, I have the below script: $vCname = Read-Host “Enter the vCenter or ESXi host name to connect”Connect-viserver $vcname$VirtualMachines = Get-Content "VMList.txt"if (-not (Get-PSSnapin...

View Article

script intermitantly fails unless I refresh the datastore capacity properties...

I have a script that performs a space check prior to cloning some VM's onto a datastore.  Sometimes it appears to fail (well it exits by design) and behaves as if there was insufficient space.  If...

View Article
Browsing all 9071 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>