Solved

Script for configuring Ip address

Posted on 2013-10-30
2
317 Views
Last Modified: 2013-11-03
hello everyone,

I have a few machines that i have cloned/replicated that need their IPS to be changed. Is there a script in vmware to run in vsphere/vcenter or on the windows server to change the IP remotely or automatically?

I am looking to change only as follows in script

xx.xx.xx.10
255.555.555.0
xx.xx.xx.1

DNS
xx.xx.xx.xx
xx.xx.xx.xx


Thanks a million
0
Comment
Question by:Jimbo0215
2 Comments
 
LVL 119
ID: 39611269
When you CLONE the Virtual Machine from vCenter Server, you can APPLY, a Customization Specification, which will APPLY and IP Address, automatically as part of the procedure and deployment.

See the documentation here

http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.vm_admin.doc_50%2FGUID-7523239A-9BB8-4FAD-88F6-C8701933CA64.html
0
 
LVL 70

Accepted Solution

by:
KCTS earned 500 total points
ID: 39611300
ideally you should use the windows tools to clone a machine to avoid duplicate SIDs etc.
You can use Netsh to set IPs.

see http://www.windowsreference.com/networking/how-to-set-staticdhcp-ip-address-from-command-line/
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
The viewer will learn how to dynamically set the form action using jQuery.
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question