-
Notifications
You must be signed in to change notification settings - Fork 41
VMHostVssTeaming
SimeonGerginov edited this page Aug 28, 2019
·
2 revisions
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Server | Key | string | Name of the Server we are trying to connect to. The Server can be a vCenter or ESXi. | |
Name | Key | string | Name of the VMHost to configure. | |
Credential | Mandatory | PSCredential | Credentials needed for connection to the specified Server. | |
Ensure | Mandatory | Ensure | Value indicating if the VSS should be Present or Absent. | Present, Absent |
VssName | Key | string | The name of the VSS. | |
CheckBeacon | Optional | Boolean | The flag to indicate whether or not to enable beacon probing as a method to validate the link status of a physical network adapter. | |
ActiveNic | Optional | string[] | List of active network adapters used for load balancing. | |
StandbyNic | Optional | string[] | Standby network adapters used for failover. | |
NotifySwitches | Optional | Boolean | Flag to specify whether or not to notify the physical switch if a link fails. | |
Policy | Optional | NicTeamingPolicy | Network adapter teaming policy. | LoadBalance_IP, LoadBalance_SrcMAC, LoadBalance_SrcId, Failover_Explicit |
RollingOrder | Optional | Boolean | The flag to indicate whether or not to use a rolling policy when restoring links. |
The resource is used to configure the network adapter teaming policy of a Virtual Switch (VSS). The VSS needs to exist.
Configures the teaming settings of the specified Virtual Switch.
param(
[Parameter(Mandatory = $true)]
[string]
$Name,
[Parameter(Mandatory = $true)]
[string]
$Server,
[Parameter(Mandatory = $true)]
[string]
$User,
[Parameter(Mandatory = $true)]
[string]
$Password
)
$script:configurationData = @{
AllNodes = @(
@{
NodeName = 'localhost'
PSDscAllowPlainTextPassword = $true
}
)
}
Configuration VMHostVssTeaming_Config {
Import-DscResource -ModuleName VMware.vSphereDSC
Node localhost {
$Password = $Password | ConvertTo-SecureString -AsPlainText -Force
$Credential = New-Object System.Management.Automation.PSCredential($User, $Password)
VMHostVss vmHostVssSettings {
Name = $Name
Server = $Server
Credential = $vmHostCredential
VssName = 'VSS1'
Ensure = 'Present'
Mtu = 1500
}
VMHostVssTeaming vmHostVSSTeaming {
Name = $Name
Server = $Server
Credential = $Credential
VssName = 'VSS1'
CheckBeacon = $false
ActiveNic = @('vmnic0','vmnic1')
StandbyNic = @()
NotifySwitches = $true
Policy = [NicTeamingPolicy]::LoadBalance_SrcId
RollingOrder = $false
DependsOn = "[VMHostVss]vmHostVssSettings"
}
}
}
- Home
- Tips & Tricks
- Cluster
- DRSRule
- Datacenter
- DatacenterFolder
- DatastoreCluster
- DatastoreClusterAddDatastore
- DrsCluster
- Folder
- HACluster
- NfsDatastore
- NfsUser
- PowerCLISettings
- StandardPortGroup
- StandardSwitch
- VDPortGroup
- VDSwitch
- VDSwitchVMHost
- VMHostAcceptanceLevel
- VMHostAccount
- VMHostAdvancedSettings
- VMHostAgentVM
- VMHostAuthentication
- VMHostCache
- VMHostConfiguration
- VMHostDCUIKeyboard
- VMHostDnsSettings
- VMHostFirewallRuleset
- VMHostGraphics
- VMHostGraphicsDevice
- VMHostIPRoute
- VMHostIScsiHba
- VMHostIScsiHbaTarget
- VMHostIScsiHbaVMKernelNic
- VMHostNetworkCoreDump
- VMHostNtpSettings
- VMHostPciPassthrough
- VMHostPermission
- VMHostPhysicalNic
- VMHostPowerPolicy
- VMHostRole
- VMHostSNMPAgent
- VMHostSatpClaimRule
- VMHostScsiLun
- VMHostScsiLunPath
- VMHostService
- VMHostSettings
- VMHostSharedSwapSpace
- VMHostSoftwareDevice
- VMHostStorage
- VMHostSyslog
- VMHostTpsSettings
- VMHostVDSwitchMigration
- VMHostVMKernelActiveDumpFile
- VMHostVMKernelActiveDumpPartition
- VMHostVMKernelDumpFile
- VMHostVMKernelModule
- VMHostVdsNic
- VMHostVss
- VMHostVssBridge
- VMHostVssMigration
- VMHostVssNic
- VMHostVssPortGroup
- VMHostVssPortGroupSecurity
- VMHostVssPortGroupShaping
- VMHostVssPortGroupTeaming
- VMHostVssSecurity
- VMHostVssShaping
- VMHostVssTeaming
- VMHostvSANNetworkConfiguration
- VmfsDatastore
- vCenterSettings
- vCenterStatistics
- vCenterVMHost