VMware Cloud Community
vmmeup
Expert
Expert

vmware-vim-cmd

vmware-cim-cmd hostsvc/net/vswitch_setpolicy --failurecritera-check-beacon=bool Does anyone know what "bool" value is to be used for this? I have tried: true, enabled, & yes.

Sid Smith ----- VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08 [http://www.dailyhypervisor.com] - Don't forget to award points for correct and helpful answers. 😉
0 Kudos
9 Replies
vmroyale
Immortal
Immortal

Give "1" a try.

Brian Atkinson | vExpert | VMTN Moderator | Author of "VCP5-DCV VMware Certified Professional-Data Center Virtualization on vSphere 5.5 Study Guide: VCP-550" | @vmroyale | http://vmroyale.com
0 Kudos
vmmeup
Expert
Expert

Yeah I tried that right after I posted......didn't work.

Sid Smith ----- VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08 [http://www.dailyhypervisor.com] - Don't forget to award points for correct and helpful answers. 😉
0 Kudos
admin
Immortal
Immortal

"Enable" or "Desable"

For futur information, you can refer to xtravirt guides http://www.xtravirt.com/index.php?option=com_content&task=view&id=99&Itemid=124

vmmeup
Expert
Expert

I tried both enable and enabled.....neither work. below is the command I am using:

vmware-vim-cmd hostsvc/net/vswitch_setpolicy --failurecriteria-check-beacon=enable vSwitch0

Sid Smith ----- VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08 [http://www.dailyhypervisor.com] - Don't forget to award points for correct and helpful answers. 😉
0 Kudos
vmmeup
Expert
Expert

the funny thing is if I do a vimsh -n -e "hostsvc/net/vswitch_setpolicy --failurecritera-check-beacon=enable vSwitch0" it works, but not with vmware-vim-cmd

Sid Smith ----- VCP, VTSP, CCNA, CCA(Xen Server), MCTS Hyper-V & SCVMM08 [http://www.dailyhypervisor.com] - Don't forget to award points for correct and helpful answers. 😉
0 Kudos
lamw
Community Manager
Community Manager

I tried both commands and they work on my ESX 3.5 system, do you have 2 NICs teamed on your vSwitch0 that you're trying to enable beacon probing? This does not show up as an error via the commandline with either "vimsh" or "vmware-vim-cmd"

0 Kudos
admin
Immortal
Immortal

vimsh -n -e "hostsvc/net/vswitch_setpolicy --failurecritera-check-beacon=enable vSwitch0"

won't work for me any ideas why?

0 Kudos
EAIabach
Contributor
Contributor

This works....

vmware-vim-cmd /hostsvc/net/vswitch_setpolicy --failurecriteria-check-beacon 1 vSwitch0

ESX 3.5 U3

0 Kudos
wila
Immortal
Immortal

Thanks, I've added your example here for easier reference:

http://www.vi-toolkit.com/wiki/index.php/Hostsvc/net/vswitch_setpolicy



--

Wil

_____________________________________________________

Visit the new VMware developers wiki at http://www.vi-toolkit.com

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
0 Kudos