Forum Discussion
fcocquyt_104704
Nimbostratus
May 07, 2013see 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 show...
p_massini_69738
Nimbostratus
Nov 14, 2013Hi,
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
done
Regards,
Peter
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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