Forum Discussion
nitass
Employee
if you can specify what configuration objects you want to display such as virtual server and pool (since showing everything might be too messy) , somebody here might be able to come up with script like the following:
e.g.
// virtual server + pool
[root@ve13a:Active:In Sync] config for v in `tmsh list ltm virtual one-line |awk '{print $3}'`; do p=$(tmsh list ltm virtual $v one-line |awk '{for(i=0;i<=NF;i++)if($i=="pool"){print $(i+1)}}'); p1=$(tmsh list ltm pool $p); p2=${p1/ltm pool/}; v1=$(tmsh list ltm virtual $v); echo "${v1/$p/$p2}"; done
ltm virtual bar {
destination 172.28.24.10:80
ip-protocol tcp
mask 255.255.255.255
pool foo {
members {
200.200.200.101:80 {
address 200.200.200.101
}
200.200.200.111:80 {
address 200.200.200.111
}
}
}
profiles {
http { }
tcp { }
}
source 0.0.0.0/0
source-address-translation {
type automap
}
translate-address enabled
translate-port enabled
vs-index 11
}
Srini_87152
Jan 05, 2018Cirrostratus
you guys rock!! :)