Forum Discussion
tmsh create node with name
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?
14 Replies
- dshinnick_24822
Nimbostratus
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? - STTR_85331
Nimbostratus
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 ..." ? - dshinnick_24822
Nimbostratus
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
- STTR_85331
Nimbostratus
OK that works - thanks for your help! - goyogi
Nimbostratus
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
}' - hellhammer_3588
Nimbostratus
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 } - gregori_33925
Nimbostratus
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*
- prashanth_12571
Nimbostratus
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. - prashanth_12571
Nimbostratus
It works fine from the web config utility - prashanth_12571
Nimbostratus
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
Recent Discussions
Related Content
* 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
