Forum Discussion

jwhite18's avatar
jwhite18
Icon for Nimbostratus rankNimbostratus
May 23, 2016

New F5 Deployment - Deploying All Nodes

Hi guys,

 

Relatively a newbie here, I am looking for some of your wisdom :-)

 

I have a list of 40 IP addresses and names that I need to create nodes. I know there is a way to script this from the tmsh so that I don't have to go through this manually. Would someone please help an F5 brother out and give him some guidance?

 

Thanks!

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    jwhite18,

    There's a few ways of doing this, firstly you can create the list of tmsh commands in notepad and then copy them into an ssh window e.g.

    tmsh create ltm node test1 address x.x.x.1
    tmsh create ltm node test2 address x.x.x.2
    tmsh create ltm node test3 address x.x.x.3
    

    Or you can create a file on the command line and make it a shell file e.g. createnode.sh. Paste the above commands into it but have !/bin/bash at the top. Make it executable and run this e.g.

    !/bin/bash
    
    tmsh create ltm node test1 address x.x.x.1
    tmsh create ltm node test2 address x.x.x.2
    tmsh create ltm node test3 address x.x.x.3
    

    and then run ./createnode.sh

    Hope this helps,

    N