Aug 18, 2017
Piotr, when you get that message (N/A in versions prior to 11.3), are you running that on TMOS 12.1?
I can't reproduce the issue.
If you replace this section:
if([int]$MajorVersion -gt 11 -or ([int]$MajorVersion -eq 11 -and [int]$Minorversion -gt 3)){
$objTempVirtualServer.sourcexlatetype = [string]$virtualserversourceaddresstranlationtypelist[$i]
$objTempVirtualServer.sourcexlatepool = [string]$virtualserversourceaddresssnatpool[$i]
} else {
$objTempVirtualServer.sourcexlatetype = "OLDVERSION"
$objTempVirtualServer.sourcexlatepool = "OLDVERSION"
}
With this:
if([int]$MajorVersion -gt 11 -or ([int]$MajorVersion -eq 11 -and [int]$Minorversion -gt 3)){
$objTempVirtualServer.sourcexlatetype = [string]$virtualserversourceaddresstranlationtypelist[$i]
$objTempVirtualServer.sourcexlatepool = [string]$virtualserversourceaddresssnatpool[$i]
} else {
Write-Host -ForegroundColor "Major: $MajorVersion, Minor: $Minorversion"
$objTempVirtualServer.sourcexlatetype = "OLDVERSION"
$objTempVirtualServer.sourcexlatepool = "OLDVERSION"
}
What's the output you get for the major and minor versions?
/Patrik