Forum Discussion

Justin_43469's avatar
Justin_43469
Icon for Nimbostratus rankNimbostratus
Feb 17, 2010

3Dns script in a GTm World?

so I have used this simple shell script on our 3dns box for ever.

 
 for varwip in `3dpipe wideip show | grep name | awk '{print $2}'`; do 
         echo $varwip 
         for varpool in `3dpipe wideip $varwip pool show | grep name | awk '{print $2 $3}'`; do 
                 echo "- $varpool" 
                 3dpipe wideip $varwip pool $varpool virtual show | grep vs | awk '{ print $4; }' 
         done 
         echo    
 done 
 

Basically it returns

WideIpname.com

- Poolname

ip of virtual

ip of virtual

ip of virtual

This simple little script made it insanely easy to simply view what wideips were going to respond with what Ips.

I want to do this on the GTM but can't seem to find anything even remotely in the same ballbark as the commands above. Any one have any pointers?

1 Reply

  • Hi Justin,

     

    In the Codeshare section of this site that has some scripts that might help you

     

     

    Here is a script using Python to grab the wide ip and pools:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl/pyControlGTMStatistics.html

     

     

    Here is the link to the iControls where you can view the entire share library. There are about handful specifically for the GTM:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iControl.CodeShare

     

     

    I hope this helps,

     

     

    Bhattman