Hi.
So, I've been really trying get my head around the MOB but am missing something, if someone could advise it would be appreciated. I've been reading the excellent information from Carter Shanklin but I'm obviously mis-understanding aspects of it.
I'm using this script to set my traffic shaping, it works brilliantly.
-
$esxhost = "esx401"
$pgName = "vmotion"
$VMHost = Get-VMHost $esxhost
$HS = $VMHost | Get-View
$nwSys = $HS.ConfigManager.NetworkSystem
$mor = Get-View $nwSys
$portgrp = New-Object VMware.Vim.HostPortGroupSpec
$portgrp.VlanId = 901
$portgrp.Name = $pgName
$portgrp.VswitchName = $vswitchName
$portgrp.policy = New-Object VMware.Vim.HostNetworkPolicy
$portgrp.policy.shapingPolicy = New-Object VMware.Vim.HostNetworkTrafficShapingPolicy
$portgrp.policy.shapingPolicy.enabled = $true
$portgrp.policy.shapingPolicy.averageBandwidth = 700000000
$portgrp.policy.shapingPolicy.peakBandwidth = 700000000
$portgrp.policy.shapingPolicy.burstSize = 1
$mor.UpdatePortGroup($pgName, $portgrp)
-
I'd like to Enable the Beacon Probing and Override vSwitch failover but I'm having trouble navigating the MOB hierarchy and the managed objects.
I'm trying to use:
$portgrp.failureCriteria = New-Object VMware.Vim.HostNicFailureCriteria
then set the CheckBeacon etc on the following lines.
PowerGUI suggests the values as you're typing them in but I can't see them for the checkBeacon. I can see these for the traffic shaping though.
Your thoughts and suggestions are appreciated.
Thanks,
Darren.
(@dawoo)
That thread points to my which contains some sample code which also shows you the beacon probing objects and properties.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That thread points to my which contains some sample code which also shows you the beacon probing objects and properties.
____________
Blog: LucD notes
Twitter: lucd22
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No I hadn't, although I have now.
I have a little more of a grasp for where I'm going wrong for this.
I'll get back on to the script now.
Many, many thanks Luc.
Cheers,
Darren.
(@dawoo)