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

VM Snapshot Deletion

Hi, I am after a script which deletes the snapshots which are x number of days old and excludes those which starts with a certain letterany help will be appreciated 

View Article


vMA 6.0 Active Directory user login

I've successfully joined vMA to AD domain, however AD users can login to appliance only using local console (login: class\Administrator) but not using ssh.Here is example:login as:...

View Article


VM SMBIOS UUID

Hi guys, I'm trying to automate our CMDB with automatic updates so we get an accurate billing based on the CMDB instead of various CSV file exports from various VC's.Since VMs don't really have a...

View Article

Image may be NSFW.
Clik here to view.

Find VMs in an IP range and output Name,IP, and Cluster

Hello, I am trying to create a script to output all VMs that fall into an IP range and output the VM Name, IP address, and Cluster the VM is hosted in. I have gotten so far as to get the output of the...

View Article

Powercli to Change vm and its file names

Hi all,For 100 vms, I need to change vm inventory name and its file names ( vmx,vmdk, etc) to another name.Could you please help in creating a script that fetches input from a file(existing name and...

View Article


Export Update Manager Settings

Hi, I haven't seen much on exporting the UM settings. Does anyone happen to have some code handy that will export the settings including the advanced settings? I'm especially interested in the download...

View Article

Setting advanced options on a Distributed vSwitch

Is there an equivalent of Set-NicTeamingPolicy that can be used on a Distributed vSwitch.  I am looking to be able to set the fail-over options on the up-links, but so far I cant see anything that will...

View Article

VVOL datastores

I have installed vsphere powercli 6.0 release 3. I want to use it to create VVOL datastores, but I do not find any option under "New-Datastore" command. I only see options to create NFS/VMFS datastores...

View Article


Image may be NSFW.
Clik here to view.

Export-EsxImageProfile : Underlying file object does not support seek.

I would like to build an ISO from the software depot but i get the error below. What am i doing wrong ? 

View Article


Removing Unwanted Hardware from VM, while powered on. -issues

So while trying to work/modify scripts that already exist; to identify and "remediate if possible" unwanted hardware (Serial, USB, etc...) If found some gotcha type issues. *Previous scripts also based...

View Article

Configuring vSphere 6.0 hosts with a dump collector script failing... Not...

So I enabled the dump collector service on our vCenter server appliance, and then I found the following script which I assumed I could run to configure the entire estate with the dump collector...

View Article

Get-VIPermission for each VM in vCenter

Hi,  I am looking for a way to display the VIPermissions of each VM listed in vCenter without entering a command for each VM (as there are hundreds). Here is what I would like to automate.... Connect...

View Article

need some help with an IOPs report PowerCLI script

I found the following script that gives me the data I want, but not in the end result I need. Right now it puts it into the PowerCLI window, but I need to get it into a csv file so it can be easily...

View Article


Image may be NSFW.
Clik here to view.

Max vms on host to power on

I can't seem to find any documentation or best practice that would give any metrics to how many vm's on a single host can initiate a power on. I am planning to script this process so I want to make...

View Article

Need help to dedicate the vMotion TCP /Ip Stack for vmotion Kernel ports...

Hi All ,  I have created the below script to create the vmkernel port group for vmotion using powercli . I am running into an issue where i cannot map this portgroup to the dedicated vmotion tcp/ip...

View Article


This operation is restricted by the administrator Error when running...

I have a script which use to gather performance report for monthly -but after the upgrade of VC The script fails with below error   Get-Stat        This operation is restricted by the administrator -...

View Article

View VM Status Script - How to Increase Performance?

Hello, I have been researching how to grab VM View Status (connected, available, startup, deleting, etc.). I have a script that leverages several capabilities to collect the proper information for...

View Article


Repair-DeployRuleSetComplaince error on 6.x not on 5.1

Hi We're using Autodeploy for our ESXi environment and after building a new image for a host, you always run a Test-DeployRuleSetCompliance  followed by Repair-DeployRuleSetCompliance. Strange this is...

View Article

how to find vcenter details

i would like to get all vcenter info like below NameVersionReleaseBuildInstallerVersion vCenter Server 5.5 Update 3a5.5 U3a2015-10-2231421963154313  I did google but did not find powercli which can...

View Article

Image may be NSFW.
Clik here to view.

Script to Deploy VM with IP Address

Tried editing a script  for learning and to automate some things.  Does not seem to connect to vCenter.  See any other issues?   #This script is used to deploy a vm and apply customizations#import...

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>