OK so I’m just starting to use tmsh and I see I can create nodes like this:
create ltm node
However doing this creates a node with no name in the GUI. Is there a way to also give a node a name from the tmsh shell?
OK so I’m just starting to use tmsh and I see I can create nodes like this:
create ltm node
However doing this creates a node with no name in the GUI. Is there a way to also give a node a name from the tmsh shell?
This should work:
create node 10.10.10.1 { screen test }
Yields via “list node 10.10.10.1”
ltm node 10.10.10.1 {
screen test
}
The question from myself is: Can all of that be pasted in multiline format like we could do with bp shell, similarly to how it actually shows up in the show running-config output and my list output above?
Thanks, but that gives an error when I try it:
root@myltm(Active)(tmos) create node 10.10.10.1 { screen test }
Syntax Error: “node” unexpected argument
Also shouldn’t it be “create ltm node …” ?
My example was assuming you were already in tmos.ltm. Here are both examples:
[root@BIGIP-LAB:Active] config tmsh
root@BIGIP-LAB(Active)(tmos) ltm
root@BIGIP-LAB(Active)(tmos.ltm) create node 10.10.10.1 { screen test }
root@BIGIP-LAB(Active)(tmos.ltm) list node 10.10.10.1
ltm node 10.10.10.1 {
screen test
}
root@BIGIP-LAB(Active)(tmos.ltm)
root@BIGIP-LAB(Active)(tmos.ltm) ex
root@BIGIP-LAB(Active)(tmos) create ltm node 10.10.10.2 { screen test2 }
root@BIGIP-LAB(Active)(tmos) list ltm node 10.10.10.2
ltm node 10.10.10.2 {
screen test2
}
root@BIGIP-LAB(Active)(tmos)
My original question remains, although it looks more likely F5 gave up that functionality in their transition to tmsh from bp shell. It is a shame all their documentation is incorrect. http://support.f5.com/content/kb/en…_Guide.pdf
OK that works - thanks for your help!
I have the same issue as dshinnick.
Can an F5 veteran chime in? Not being able to do it in a multiline format like below is a feature that us bigpipe aficionados want/need
create ltm virtual foobarVIP '{
destination 1.2.3.4:http
ip-protocol tcp
mask 255.255.255.255
pool myservers
profiles {
http { }
tcp { }
}
rules {
myrules
}
snat automap
}’
i think tmsh cannot support multiple lines format. for your case, you can try using single line like this:
create ltm virtual foobar { destination 1.2.3.4:80 ip-protocol tcp mask 255.255.255.255 pool myservers profiles add { http {} tcp {} } snat automap }
in v11 you can ‘load sys config from-terminal merge’, paste in your config, and ^D to escape out.
Now if only there was a non-tcl way to see summarized pool status, similar to ‘b pool foo show’…‘show ltm pool foo members’ yields too much output with all the stats and isnt very grep’able
*grumble*
This did not work for me. Is this solution specific to the 10.x versions of F5 load balancers. I tried this with the nodes eg. from the tmsh prompt
create ltm node 2.2.2.2 {TESTNODE2}
this gave me an error
(/Common)(tmos) create ltm node /Common/2.2.2.2 TEST2NODE
01020059:3: IP Address :: is invalid, must not be all zeros.
It works fine from the web config utility
how to create a node using tmsh, the solution given in the site is not working and giving an error.
"tmsh create ltm node { } " does not work either from the command mode or tmsh mode
(/Common)(tmos) create ltm node 2.2.2.2 { testnode }
Syntax Error: “testnode” unknown property
(/Common)(tmos) create ltm node 2.2.2.2 { testnode }
Syntax Error: “testnode” unknown property
If you’re running v11.x, the key (name) of nodes does not have to be its IP address, but if you do that, then you have to specify the “address” property for it. For example, the following two examples will both work:
ltm create node foo address 1.1.1.1
ltm creaate node 1.1.1.1
The first one will be named “foo” though, whereas the second will use “1.1.1.1” for the name. Both will have an address of “1.1.1.1” however.
Hi, In that case i am getting “Syntax Error: “address” invalid IP address” Which is a bit funny.