![Dell EMC Vblock 240 Administration Manual Download Page 82](http://html1.mh-extra.com/html/dell-emc/vblock-240/vblock-240_administration-manual_2468384082.webp)
5
To configure the settings on each VMware vSphere ESXi host in the VMware vCenter using the
script:
a
Verify VMware vSphere PowerCLI is installed on a Microsoft Windows machine.
b
Verify you have network access to the VMware vCenter server.
c
Copy the script to a
.ps1
file on your hard drive.
d
Modify the
$vcenter
variable.
6
Execute the script in the VMware vSphere PowerCLI environment.
This script does NOT set jumbo frames on the vmknics. You must perform jumbo
frame settings manually or using another tool.
##########################################################
# Set NFS advanced settings for all servers in vCenter. If
# hosts were built using UIM, or built manually, this script can
# be run to assist with the configuration of NFS. It does NOT
# set jumbo frames on the vmknics: you must do this by using
# the command line or another tool.
##########################################################
$vcenter = Read-Host "What is the name/IP of the vCenter Server?"
##########################################################
connect-viserver $vcenter
$esxHosts = Get-VMHost | Sort Name
foreach($esx in $esxHosts){
Write-Host "Updating TCP and NFS advanced configuration Settings on $esx"
# Update TCP settings
if((Get-VMHostAdvancedConfiguration -VMHost $esx -Name Net.TcpipHeapSize).Values -ne
"30"){
Set-VMHostAdvancedConfiguration -VMHost $esx -Name Net.TcpipHeapSize -Value 30 -
Confirm:$false
}
if((Get-VMHostAdvancedConfiguration -VMHost $esx -Name Net.TcpipHeapMax).Values -ne
"128"){
####################################################################
Set-VMHostAdvancedConfiguration -VMHost $esx -Name Net.TcpipHeapMax –Value 512 –
Confirm:$false
# for vSphere 5.5 or 6.0
####################################################################
# Set-VMHostAdvancedConfiguration -VMHost $esx -Name Net.TcpipHeapMax -Value 128 -
Confirm:$false
# for vSphere 5.1
}
# Update NFS settings
if((Get-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.MaxVolumes).Values -ne
"256"){
Set-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.MaxVolumes -Value 256 -Confirm:
$false
}
if((Get-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.HeartbeatTimeout).Values -
ne "5"){
Set-VMHostAdvancedConfiguration -VMHost $esx -Name NFS.HeartbeatTimeout -Value 5 -
Confirm:$false
What to do next
Reboot the VMware vSphere ESXi host(s).
Managing VMware vSphere ESXi 6.x
|
82