Hi,
I have about 200 ESX 4 hosts, and I have to change the IPs of every hosts vswif0 Console Interface.
Has somebody any suggustion, best practice? (if available, I would welcome a gui based solution, or script sceleton).
I have more questions about scripting:
- It seems, I have to use Plink
- I have to accept every SSH key on connection.
Regards,
Akos
Are all the hosts in the same vCenter?
I would imagine this could easily be done using PowerCLI/Powershell script.
Yes, same vCenter.
Could you please give me sample?
(I tried with plink, but we had problmes with gateway, etc.)
Since they are all in the same vCenter you wont need to re-authenticate to each host I do not think to make changes, assuming your vCenter account logon has full admin rights.
I'm sorry I can't write the code for you I dont have the time but look at the following powershell/powerCLI cmdlet
I believe the cmdlet you'll want to look at is:
Set-VMHostNetwork
Set-VMHostNetworkAdapter
If you don't know powershell this could be a bit of a learning curve as powershell is not the most elegant language to try and learn.
Best of luck.