dragonflymr
Aug 17, 2017Cirrostratus
Hi,
Still the same results. Code is now like that:
if([int]$MajorVersion -gt 11 -or ([int]$MajorVersion -eq 11 -and [int]$Minorversion -gt 3)){
$virtualserversourceaddresstranlationtypelist = $f5.LocalLBVirtualServer.get_source_address_translation_type($virtualserverlist)
$virtualserversourceaddresssnatpool = $f5.LocalLBVirtualServer.get_source_address_translation_snat_pool($virtualserverlist)
}
and
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"
}
Result is N/A in Bigip versions prior to 11.3
BTW, is there any simple PS code to create report (from CLI) using json file containing listing of all unique values for given parameter, let's say list all unique IPs used by VSs or unique ports etc.?
Piotr