tmsh::argv

Description

Contains the list of argument values. The first item in tmsh::argv is always the name of the script. You can create an alias for the command run cli script “”name”” using the cli alias component.

Syntax

tmsh::argv

Examples

proc script::run {} {
{ for { set idx 1 } { $idx < $tmsh::argc } { incr idx } {
   lappend ::pool_ids [lindex $tmsh::argv $idx]
 }
}

Sample Code


Introduced: BIGIP-10.1

Note

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.