Solved

Script for configuring Ip address

Posted on 2013-10-30
2
313 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 117
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now