update
This commit is contained in:
+5
-3
@@ -139,8 +139,10 @@ $ParamsToAdd = @{
|
||||
switch ($VMHostDatacenter.Name) {
|
||||
'Primary Datacenter' { $ParamsToAdd.gateway = '10.2.170.1' }
|
||||
'Secondary Datacenter' { $ParamsToAdd.gateway = '10.2.170.1' }
|
||||
'DCN Datacenter' { $CoreDumpArgs.serveripv4 = '10.2.118.241' }
|
||||
'Grand Forks Vantis' { $CoreDumpArgs.serveripv4 = '' }
|
||||
'DCN Datacenter' { $ParamsToAdd.gateway = '10.2.118.241' }
|
||||
'Grand Forks Vantis' { $ParamsToAdd.gateway = '' }
|
||||
'Test Primary Datacenter' { $ParamsToAdd.gateway = '10.2.168.241'}
|
||||
'Test Secondary Datacenter' { $ParamsToAdd.gateway = '10.2.168.241'}
|
||||
}
|
||||
$EsxCli.network.ip.route.ipv4.add.Invoke($ParamsToAdd)
|
||||
|
||||
@@ -148,7 +150,7 @@ $EsxCli.network.ip.route.ipv4.add.Invoke($ParamsToAdd)
|
||||
network = '10.2.169.0/24' ## check subnet mask, should be /24 after collapsing the Cohesity subnets
|
||||
gateway = '10.2.170.1' ## General 10.2.170.1, VDI 10.2.15.1, TEST 10.2.168.241 # DCN 10.2.118.241
|
||||
} #>
|
||||
#$x = $esxcli.network.ip.route.ipv4.list.Invoke() | Where-Object {$_.Interface -eq 'vmk2' -and $_.Network -eq '10.2.169.128'}
|
||||
#$x = $esxcli.network.ip.route.ipv4.list.Invoke() | Where-Object {$_.Interface -eq 'vmk2' -and $_.Network -eq '10.2.169.0'}
|
||||
#$x | Add-Member -Name "Name" -MemberType NoteProperty -Value $VMHost.Name
|
||||
#$null = $result.Add($x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user