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

Average Network throughput for a VM with PowerCLI

I would like to get the average network throughput for a VM with PowerCLI including all virtual NICs the VM has for the last week (not including NFS or storage-related traffic).How should I best add...

View Article


Get-VM VMNAME not working on PowerCli 6.5 with VCSA 6.5

Hi Guys, I am getting this strange error where I have  a VM with snapshot but it's VM name is not showing up on PowerCli command: Get-VM VMName | Get-Snapshot Output doesn't have the VM name..... This...

View Article


New-TagAssignment with tags in multiple categories

We have some tags that are in multiple categories. For example a tag with the name 'Test' might be in the 'Owner' category and the 'Creator' category. When I try to assign one of these tags that exist...

View Article

Weird Get-TagAssignment bug

I've got two VCSAs at 6.5 build 5705665. When I run the following, I get the error noted below: Commads:Connect-VIServer vcsa1.blah.localConnect-VIServer vcsa2.blah.local$VCTags = Get-TagAssignment...

View Article

Image may be NSFW.
Clik here to view.

Modifying PowerCLI script for Get-Stat2 ?

Hi All, I wonder if anyone here can assist me in using the script created by LucD  http://www.lucd.info/download/Get-Stat2.ps1 to get the VM statistics: Get-VM | Where {$_.PowerState -eq "PoweredOn"} |...

View Article


start "vpxa" on esxi hosts _powercli

HI LUC.D, could you please check the following script.  this is to get all hosts in vcenters which are not responding and then start vpxa service by direcly login to esxi boxes.1:blue part will get...

View Article

Image may be NSFW.
Clik here to view.

PowerCLI backup of ESXi configuration no more working after upgrade ESXi to...

Hi,     this week we started upgrading our ESXi hosts from 6.5 to 6.5 update 1, using update manager.For many years we made the ESXi hosts configuration backup using the vSphere CLI, by the...

View Article

PowerOn VM with powercli when host is disconnected and DRS is activated

Hi guys, I've a short question regarding powerCLI in case of DR test. I try to automate the powerOn of some VMs based on priority to start applications in the right order.During DR test, some ESXi...

View Article


Power CLI commands for vmotion from one vcenter to new vcenter.

we have got new hyperconverged system. so we need to migrate VMs from existing storage to new Hyperconverged system vcenter. can you please help for VM migration vCenter to new vCenter using power cli....

View Article


Image may be NSFW.
Clik here to view.

plink vsphere 6.5

i am getting an error on this $esxhosts = get-cluster -Name "cluster" | Get-VMHost  foreach ($vmhost in $esxhosts) {  $esxcli = Get-EsxCli -VMHost $vmhost  plink 'c:\scripts\plink.exe' $vmhost 'root'...

View Article

OVFTool - Reduce I/O while importing/exporting Virtual Machines

I use ovftool to backup and deploy OVA files. I have found ovftool puts unnesscary load on my CPU because of requesting & writing a 512 byte buffers. I would suggest allowing a command line option...

View Article

PowerCLI script to create a clone with some conditions

Hello All, Can any one suggest me a script that should possible with below conditions. 1) Need create clone for every day 2 PM EST and that clone should be automatically deleted after 7 days. 2) Clone...

View Article

How to make this powercli Script that i created to run faster than now?

Hello VMware and Powershell Experts, I have created the below powercli script to collect inventory of our 5.5 and 6.0 VMware Hosts, VMs and Clusters. The problem with it is, it is terribly slow. It...

View Article


Image may be NSFW.
Clik here to view.

An error occurred while receiving the HTTP response to https://servername/sdk

I'm getting the following error seemingly randomly when I run the same script. Just anecdotally it seems to not happen on the first run but happens consistently there after at random points in the...

View Article

Get-VM Name- MyVM_000* Older Than 2 days

Need help identifying VM's older than 2 days, I'm only filtering from a about 10 VMs that all begin with "MyVM_000"

View Article


Modify Firewall rules

Hi, i want to edit my firewall rules with powercli. This code snippet only enable the rule. My goal is to add more ips to my existing rule.Maybe some has got an example, it could help....

View Article

How to deal with certificate errors when connecting to VI-Server

I recently upgraded to Powershell v.5.01 and now I am seeing something new when to connect to my vCenter server. $vCenter="my-cVenter-FQDN"$vCenterCredFile =...

View Article


Need help outputting VM and its datastore location to text

I need to export of a list of specific VMs with their respective datastore names. I have gotten as far as importing the list, but I cannot get the results to display both the vm name and datastore...

View Article

create /var/lock/subsys on multiple esxi's

Hello! I need some help. Basically I need to use powercli to create /var/lock/subsys directory on all esx's from a virtual center. Is it possible? Thanks in advance!

View Article

[POWERCLI] Get Imageprofile inside a powercli script with get-esxcli

Hi,I'm curently using a script to get many informations about my ESX (name, version, Bios version, ....).I'd like to add the Imageprofile version, but the field is always empty.Could anyone take a look...

View Article
Browsing all 9071 articles
Browse latest View live


Latest Images

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