Script to identify the Pools using Node IP

I want to run a script which will take the input of the Node IP details and display the Pools associated with that Node

hi,

try this command line:

tmsh list ltm pool one-line | grep POOLIP | awk ‘{ print $3}’