Forum Discussion

Helen_Wan's avatar
Helen_Wan
Icon for Nimbostratus rankNimbostratus
Apr 12, 2014

change irule editor

How do I change the iRule editor from GNU nano to VI.

 

3 Replies

  • David_Holmes_12's avatar
    David_Holmes_12
    Historic F5 Account

    Hi Helen, if you are talking about the built-in editor for the tmsh command, you can switch between vi and nano with this tmsh command:

    (tmos) modify cli preference editor vi
    (tmos) save sys config
    

    Or are you talking about the Windows iRule Editor? https://devcentral.f5.com/d/irule-editor-msi

    If so, I don't think there's a way to change the editing mechanics of that.

    • Helen_Wan's avatar
      Helen_Wan
      Icon for Nimbostratus rankNimbostratus
      Oh great! I was referring to the built-in editor for the tmsh command. I wanted to be able to use a script to create and edit iRules and vi seems more amenable for this since I could combine my bsh/perl scripting with expect. I will definitely give it a try. Thank you very much.
  • Hi can I add to this question please? I am using tmsh with remote-role authentication, and I seem to get nano every time I edit something within the tmsh prompt, despite 'list cli preference editor' listing vi. Any ideas why?

     

    Many thanks!

     

    Dave.