August 15, 20178 yr So we have a Develop F5 LTM and close to 2000 Virtual Servers. Are they all active? Probably not. How do you tell? My goal was to export all virtual servers Partition,VirtualServer,VIP Development,vip.ci.api-svc.thezah.com.https,172.47.32.160:7110 Next create a spreadsheet that CONCATES the netcat command and the IP address to validate the IP and port are open. Something like Command to use: nc -zv 172.47.32.160 7110 &> /dev/null; echo $? Excel: =CONCATENATE("nc -zv ",[@VIP]," ",[@Port]) This will echo a 0 if its open and 1 if its closed. (maybe I'll do some scripting and if 1 then echo whatever I am testing to a vserror.txt) Again, this is just me throwing ideas to try. I'll hope to have a working script eventually for you in this thread somewhere. If anyone has ideas, please feel free to share.
August 15, 20178 yr Author Not sure about everybody's environment but I use a 301 redirect iRule that redirects port 80 traffic to its secure port (typically 443). So I don't really want to test against they redirected Virtual Servers so I created a new list by running the following command tmsh list ltm virtual /Development/* | egrep '301|^ltm|destination' | grep -v 301 > /var/tmp/vsdevNOTredirects.txt This outputs just the live servers (without the 301 redirects).. at least that was the plan but its not working. I know there is a solution somewhere
Create an account or sign in to comment