VMware {code} Community
shaka
Enthusiast
Enthusiast
Jump to solution

Increase NIC ports on virtual switch using esxcfg-vswitch

How can I increase the number of NIC ports on a virtual switch using the remote CLI. I am guessing it would be using esxcfg-switch but what option?

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
stumpr
Virtuoso
Virtuoso
Jump to solution

I haven't done this personally, but the UpdateVirtualSwitch function all on HostNetworkSystem via the SDK should allow you to do what you want. Of course changing the number of ports will require a reboot.

Reuben Stump | http://www.virtuin.com | @ReubenStump

View solution in original post

0 Kudos
4 Replies
Texiwill
Leadership
Leadership
Jump to solution

Hello,

I would start with:

vmware-vim-cmd hostsvc/net/vswitch_setnumports


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
shaka
Enthusiast
Enthusiast
Jump to solution

Is there anyway I can do this remotely? I am writing a PERL script to add vswitches and I need to also be able to set the number of ports. I haven't been able to figure out how run vmware-vim-cmd remotely.

0 Kudos
stumpr
Virtuoso
Virtuoso
Jump to solution

I haven't done this personally, but the UpdateVirtualSwitch function all on HostNetworkSystem via the SDK should allow you to do what you want. Of course changing the number of ports will require a reboot.

Reuben Stump | http://www.virtuin.com | @ReubenStump
0 Kudos
shaka
Enthusiast
Enthusiast
Jump to solution

Thanks, I figured it out.

0 Kudos