Forum Discussion

Thomas_D__90772's avatar
Thomas_D__90772
Icon for Nimbostratus rankNimbostratus
Feb 07, 2013

tmsh: from list to create

Hi

 

If i list a ltm object in tmsh the output is a (formated) syntax which is not usable (without modifying) in a create statement.

 

How can i get a 1 to 1 "creatable" one line output of a ltm object (vs, pool, mon, ...) to reuse it in tmsh?

 

 

Thanks

 

Thomas

 

 

 

4 Replies

  • I have been trying to work the same issue. I have created a Bash of one-liner Perls to modify it. Anyone have a better method?

     

  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    The best way to do this is

     

     

    load sys config from-terminal merge (after hitting enter you will be prompted to paste config into the terminal, note that "merge" is optional, but if not specified then whatever is cut/pasted replaces your entire config)

     

     

    or, paste the config into a text file and do

     

     

    load sys config file merge

     

     

     

  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    and of course my filename was stripped cause it was in html style braces :(

     

     

    load sys config file [filename] merge
  • Thank you.

     

    Seems thats only possible in version 11+

     

    In 10+ there are no more options after "load sys config".

     

    Will try it out again in 6 months :-)