change irule editor

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

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? DevCentral - An F5 Technical Community

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

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.