Solved

Script for configuring Ip address

Posted on 2013-10-30
2
320 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 121
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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

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 threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…

631 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