Forum Discussion

jspec21_47500's avatar
jspec21_47500
Icon for Nimbostratus rankNimbostratus
Sep 27, 2011

pasting config???

Hi,

 

 

I'm trying to create 50 nodes and instead of typing "create node MYPC ....." I was wondering if there was a way to just edit a basic config of a node so that I have my 50 nodes and then paste that into tmsh. Kind of like how b shell let us do it?

 

 

Thanks,

 

 

J

 

6 Replies

  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    load sys config from-terminal merge

     

     

    You can paste config at that point. Use ^D to submit what was pasted, ^C to cancel.
  • uni's avatar
    uni
    Icon for Altostratus rankAltostratus
    Brilliant! I was just going to post the same question. The "bigpipe merge" command is invaluable to me, and I just read bigpipe is removed from v11.
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    You can also do this to merge config from a file.

     

     

    tmsh load sys config file merge
  • Nice tips Mark. I added the load from-terminal and file options to the mappings page. Note these seem to have been added to LTM in v11.

     

     

    load /sys config file /path/to/file.txt merge

     

     

    load sys config from-terminal merge

     

    You can paste config at that point. Use ^D to submit what was pasted, ^C to cancel.

     

     

    Thanks, Aaron
  • Mark_Crosland_2's avatar
    Mark_Crosland_2
    Historic F5 Account
    My left-parent filename right parent was stripped by dc :(

     

     

    load sys config file [filename] merge
  • Hi guys,

     

    thanks for your tips! Is there any equivalent for this in V10? Background of my question: I'm currently rewriting some automation scripts to cover the missing bpsh issue in V11. Those scripts now produce lines of tmsh code like

     

     

     

    create ltm virtual xyz...

     

    modify ltm virtual xyz...

     

     

     

    Difficult about that: They need to be employed for both V10 and V11 LTMs. As for V11, the above mentioned commands might help to "inject" those lines of code, but not for V10. What would you suggest? I'm really trying to avoid using bpsh any more.

     

     

     

     

    Thanks in advance!

     

     

     

    Martin