VMware Cloud Community
RWY33Right
Contributor
Contributor

Active/Unused vmnics

I am working on a shell script to create my networking requirements, but I am stuck on configuring the Active/Unused vmnics for my iSCSI port groups. Is anyone familair with configuring these settings using the command line?

Thanks.

Bart

0 Kudos
4 Replies
lamw
Community Manager
Community Manager

Take a look at this modified version of esxcfg-vswitch - (this assumes you're using the vCLI)

If you're looking for a command to use within the classic ESX Service Console, then this is the wrong forum to post in as it's referring to vCLI toolkit. However, you still can using the CLI tools within ESX, you'll want to look at vimsh (vmware-vim-cmd) to set your active and standby nic configuration. Here is an example of setting this - http://blog.scottlowe.org/2008/12/16/using-vmware-vim-cmd-to-modify-a-portgroup/

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

RWY33Right
Contributor
Contributor

thanks for the direction as well as the heads up on the community. that particular command has active and standby but not unused. while both of my vmnics are part of the portgroup, only one is active and the other is placed in unused.

What community would be more appropriate for a shell question?

Thanks again -- I am chopping away at automating the whole configuration.

0 Kudos
lamw
Community Manager
Community Manager

Is the question trying to set a nic in an active state and the remainder in unused? or you trying to reconfigure so that you can set unused nic into an active state? If it's the latter, then the command will work.

=========================================================================

William Lam

VMware vExpert 2009,2010

VMware scripts and resources at:

Twitter: @lamw

Getting Started with the vMA (tips/tricks)

Getting Started with the vSphere SDK for Perl

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Community

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
RWY33Right
Contributor
Contributor

Unfortunately, this is for the former -- I'm putting this together for

my builds.

Of course, if I could add them as unused, I could set my active

accordingly, but I have not seen that option either.

Of all of the configuration from a baremetal install to testing before

adding to production, this is the last setting I am unable to script...

Thanks again.

0 Kudos