Forum Discussion

Nick_T_68319's avatar
Nick_T_68319
Icon for Nimbostratus rankNimbostratus
Mar 18, 2014

Config to tmsh commands

Is there anyway to take an existing config and output it all to tmsh commands? For example, if I wanted to delete everything, then re-run a script to re-add it?

 

4 Replies

  • uni's avatar
    uni
    Icon for Altostratus rankAltostratus

    tmsh save sys config file
    and the corresponding
    tmsh load sys config file
    commands can be used for this. You can edit a copy of the saved file and reload it.

    Another option worth exploring is taking output from the list commands, such as

    tmsh list ltm
    , editing it, and merging it back in with
    tmsh load sys config merge
    .

  • Perfect, thanks! I used tmsh load sys config merge and it worked perfectly.

     

  • What version is this working in "tmsh load sys config merge". Also this is for LTM or GTM. I know it works for LTM.

     

    • Andrew_Husking's avatar
      Andrew_Husking
      Icon for Cirrus rankCirrus
      This should work in anything from 10.x i believe, if not definitely 11.x. This should work for any F5 module.