Forum Discussion
jpolivy_46872
Nimbostratus
Sep 30, 2010Network Map on a Virtual Server
The only attempt at this I have seen is the award winning Pool_Member_Status iRule. That ones does not cover my needs, mainly what Node is up behind a particular Virtual Server, just like the LTN 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:
(Please don't laugh, I suck at coding and only even attempted this out of necessity)
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
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.
3 Replies
Sort By
- jpolivy_46872
Nimbostratus
You will need to download the attachment (right click - save as) and change the extension to .txt to view the code.
- cweeklund_18634
Nimbostratus
This is exactly what I was looking for! However, I must be missing something because it's not quite working for me. Forgive me, I'm very new to all of this. - The_Bhattman
Nimbostratus
Hi Jpolivy,
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects