VMware Cloud Community
bug_juice
Contributor
Contributor
Jump to solution

VMware HA Advance Options

Can anyone tell me if you can set any of the VMware HA Advance Options via the command line with vmware-vim-cmd? I'm looking to set das.allowNetwork0=Service Console, but i'd rather do all my work from the commandline than the gui.

Thanks in advance.

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Take a look at this script as an alternative:

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

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

VMware Developer Comuunity

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

View solution in original post

0 Kudos
5 Replies
lamw
Community Manager
Community Manager
Jump to solution

You should be able to using:

vmware-vim-cmd hostsvc/advopt

You can also use the API's to do so with either vSphere SDK for Perl or PowerCLI if you don't want to do this on Service Console or Busybox console on each of your ESX(i) host

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

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

VMware Developer Comuunity

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

0 Kudos
bug_juice
Contributor
Contributor
Jump to solution

Could you give me an example of the syntax on how to use "vmware-vim-cmd hostsvc/advopt" to set "das.allownetwork0" to have a value of "Service Console"?

0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

I just realized that this advanced option can only be set at a HA Cluster level and is not exposed to each of the individual ESX(i) host. Using vimsh would not work, you would need to use say vSphere SDK for Perl or PowerCLI to configure this advanced option connecting directly to your vCenter.

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

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

VMware Developer Comuunity

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

lamw
Community Manager
Community Manager
Jump to solution

Take a look at this script as an alternative:

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

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

Twitter: @lamw

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

VMware Developer Comuunity

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

0 Kudos
bug_juice
Contributor
Contributor
Jump to solution

Thanks for writing the script!!!

0 Kudos