Forum Discussion

bsb's avatar
bsb
Icon for Nimbostratus rankNimbostratus
Jul 05, 2018

tmsh command to fetch SNAT pool and pool with back end server and port

Hi, Unable to get backend pool details with below command as SNAT pool is also configured.

 

tmsh list ltm virtual one-line |awk '{for(i=0;i<=NF;i++)if($i=="pool"){p=$(i+1);break}; print $3,$6,p}' |awk '{cmd="tmsh list ltm pool " $3 " one-line"; cmd|getline r; print $1,$2,$3,r}' |awk '{printf "%s,%s,%s",$1,$2,$3} {for(j=3;j<=NF;j++)if($j~/:/){printf ",%s",$j} {print ""}}' >> $HOSTNAME

 

can someone share some light to fetch all the details including snat pool and actual pool, if not its even fine to ignore snat pool

 

No RepliesBe the first to reply