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
- hoolio
Cirrostratus
I don't think there is. This might be a good feature request to make through F5 support. - Joe_Hsy_45207
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
Hi Joe,when CLIENT_ACCEPTED { The command to test the version with set test_cmd virtual Execute the command, catching any error. If there isn't an error, save the output to $output if {[catch {$test_cmd} output]}{ catch returned true, so the command generated an error log local0. "test_cmd returned an error" track that the rule is 9.4 or higher set v9.4 1 } else { catch returned false, so the command was valid log local0. "\$output: $output" track that the rule is 9.4 or higher set v9.4 0 } }
- Joe_Hsy_45207
Nimbostratus
Hi Aaron, - hoolio
Cirrostratus
That's an even better option. Thanks for the tip. - Joe_Hsy_45207
Nimbostratus
Hi Aaron,
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