The only attempt at this I have seen is the Pool_Member_Status iRule. That one does not cover my needs, mainly what Node is up behind a particular Virtual Server, just like the LTM Network Map.
I would like anyone to be able to view a Network Map like interface without having to actually log into the device.
I spent some time beating on the original Pool_Member_Status and came up with this:
Rehash from the Pool_Member_Status deployment guide with necessary modifications:
1. Create a file in the following path on the LTM
/etc/cron.daily/virtual_status_list.cron
which contains:
!/bin/bash
b db bigpipe.displayservicenames false
bp virtual | egrep -e “POOL|VIRTUAL” | awk ‘{print “\”“$1”:“$2”:“$3”:“$4”:“$5”:“$6”:\“,”}’ > /var/class/virtual_status.class
b load
exit 0
2. Change the permissions by entering:
chmod +755 /etc/cron.daily/virtual_status_list.cron
(Run the job before attempting to execute the iRule)
/etc/cron.daily/virtual_status_list.cron
3. Create a external datagroup
Main >> Local Traffic >> iRules
Select Data Group List
Click create
enter name: virtual_status
enter Type: External
Path / Filename: /var/class/virtual_status.class
File Content: String
4. Code is attached along with screen shots of sample output
Apply to a Virtual Server and hit the URL with “/status”
Any help cleaning this up would be greatly appreciated. Could probably be about half the size.
Right click save as and change the extension of the VIRTUAL_STATUS file to .txt to view code.