tmsh::get_name¶
Description¶
Returns the object identifier associated with the object. The $obj argument must be an object that was returned by either of the following Tcl commands:
Examples¶
proc script::run {} {
if { $tmsh::argc < 2 } {
puts "Requires one argument: <Poolname beginning string>"
} else {
set poolstring [lindex $tmsh::argv 1]
set len [expr { [string length $poolstring] - 1 }]
}
foreach {pool} [tmsh::get_config \ltm pool] {
if { [string range [tmsh::get_name $pool] 0 $len] equals $poolstring } {
tmsh::delete ltm pool [tmsh::get_name $pool]
}
}
}