Forum Discussion
Joe_Hsy_45207
Nimbostratus
Jan 31, 2008Call to get the version of TMOS?
Hi,
I've looked on the iRule wiki, but could not find a function which would return the version of TMOS currently running. Is there a way to get this info?
Thanks!
...
Joe_Hsy_45207
Nimbostratus
Feb 05, 2008Hi Aaron,
Great suggestion! I actually found another way instead of using "catch" by using the tcl "info command". It seems to work and it only needs to execute once at rule_init:
set TMOS94command [info command AUTH::subscribe]
if { $TMOS94command != "" } {
set ::TMOS94 1
} else {
set ::TMOS94 0
}
Since AUTH::subscribe is introduced in 9.4, the command does not show up when calling info command below 9.4.
Thanks for your help as always!
//Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
