Other TMSH Commands


The script namespace defines well-known entry points that are Tcl procedures. The tmsh namespace defines Tcl variables and commands that can be used to access the system configuration, status, and statistics.

Command List

  • script::init - Called before script::run, script::help and script::tabc.
  • script::run - invokes the procedure script::run when you issue the tmsh shell command run cli script “”name””
  • tmsh::argc - Contains the number of arguments including the name of the script.
  • tmsh::argv - Contains the list of argument values, of which the script name is always the first list item.


For the full traffic management shell reference, see F5 TMSH Reference

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.