VMware Cloud Community
MukeshSingh92
Contributor
Contributor

Disable firewall on multiple hosts

I got 100s of hosts, on which I need to disable firewall, so first I need to enable ssh.

this is quite a big manual task, can this be automated using powercli.

1) by providing list of esxi name via any CSV file.

and then run the script like  :--  for each host

esxi version 6.0

Reply
0 Kudos
4 Replies
daphnissov
Immortal
Immortal

Yes, this can be a PowerCLI task, so you may want to post or move your topic there.

Reply
0 Kudos
MukeshSingh92
Contributor
Contributor

I want a script to perform this. Do you have any script ready ?

Reply
0 Kudos
admin
Immortal
Immortal

Please see below link ......

Disable ESXi host firewall ports using PowerCLI » VCDX56

If you found my answers useful please consider marking them as Correct OR Helpful

Reply
0 Kudos
steve_waugh
Contributor
Contributor

that doesn't seems to work for me :-

Please if you can write one for disabling and enabling firewall on all host from a particular Cluster.

Its a daily manual task.

I had to do it manually last time, Now I in to Enable firewall manual on multiple host in a cluster.

So, kindly help me a script to "Enable" it

I am running esxi 6.0 and vcenter 6.0 update 2

LucD

Reply
0 Kudos