Forum Discussion
see network map on cli (bigpipe)
Hi all,
- Is there a way to export the network map showing all the virtual servers and their pools / nodes statusses in a text file or pdf ?
- Is there a way to have network map shown via the cli (in tree structure) ?
Thanks,
Frederik
5 Replies
- What_Lies_Bene1
Cirrostratus
I dont' think so but you could probably create a script containing tmsh commands that would output VS and Pool Member status to a single file. Interested? - elemy528_26746
Nimbostratus
I'm very Interested in your script . Can you Write it?
- p_massini_69738
Nimbostratus
Hi,
this is a first start from me. Maybe it helps a bit.
!/bin/sh echo $(date) > vsnd this script relies on /etc/hosts or whatever. anyway the names must resolve to the correct addresses else everything is lost :-( ___________ V10 ___________ for i in DEVICE; do ssh USER@$i -C '/bin/netstat -rn' 2>&1 | sed -e "s/^.*only\.//" > $i echo " $i ">> vsnd ssh USER@$i -C 'virtual all show all' | grep -iE "VIRTUAL|POOL|RULE" 2>&1 >> vsnd echo "">> vsnd done ___________ V11 ___________ for j in DEVICE ; do ssh USER@$j -C '/bin/netstat -rn' 2>&1 | sed -e "s/^.*only\.//" > $j echo " $j ">> vsnd ssh USER@$j -C 'tmsh show /ltm virtual all-properties detail | grep -iE "Ltm|State|Reason|Destination"' 2>&1 >> vsnd echo "">> vsnd doneRegards,
Peter
- elemy528_26746
Nimbostratus
Peter-san,
Many thanks! I try it.
Regards, Katsuya
- Jer-O
Cirrus
Just posted this script. It does this and more. You can just "touch /path/file.txt" and add " | tee /path/file.txt" to the f5vs or f5vsd command.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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