VMware PowerCLI

The Best User Interface for your VMware Datacenter!

Custom TCP port on ESXI hosts

Hi Team,


I would like to automate custom tcp port creation on the ESXI hosts,using the Powercli option. In one host , by using below we can create the port

https://kb.vmware.com/s/article/2008226?lang=en_us


But I want to automate these task using powercli


  • Balaji Velaga
  • Aug 25 2021
  • Looking for Feedback
  • Attach files
  • Admin
    Kamen Nikolov commented
    August 30, 2021 11:53

    Thanks. We'll have to check if there is an API to make these changes, but from what I'm seeing such an API may be missing, which will not allow the implementation of this feature in PowerCLI. One way to do what you need through PowerShell is described in this community post: https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Adding-a-new-Firewall-Rule-in-each-ESX-hosts/td-p/2298275.

  • Balaji Velaga commented
    August 30, 2021 10:38

    I updated the correct URL.

  • Admin
    Kamen Nikolov commented
    August 30, 2021 07:24

    I think the KB is not the correct one. This one contains instructions on how to enable ESXi shell.