Solved

Script for configuring Ip address

Posted on 2013-10-30
2
319 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 120
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
Giving access to ESXi shell console is always an issue for IT departments to other Teams, or Projects. We need to find a way so that teams can use ESXTOP for their POCs, or tests without giving them the access to ESXi host shell console with a root …
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

739 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