Forum Discussion

fcocquyt_104704's avatar
fcocquyt_104704
Icon for Nimbostratus rankNimbostratus
May 07, 2013

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

  • 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?
  • 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
    done
    

    Regards,

    Peter

  • 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.