Forum Discussion
Can I run TMSH commands inside an iRule?
Hello Mahanth.
I think you are mixing concepts. Take into account this:
- TMSH are management plane scripts
- iRule are dataplane scripts.
So, you cannot access a F5 config using iRule commands.
One idea that you could use is to resolv your server hostname using your DNS.
[lindex [RESOLV::lookup $hostname] 0]
REF - https://clouddocs.f5.com/api/irules/resolv__lookup.html
Regards,
Dario.
- Rene_C_Aug 18, 2020Nimbostratus
Please note that with v15 RESOLV::lookup is deprecated and no longer supported!
- Aug 18, 2020
https://clouddocs.f5.com/api/irules/RESOLVER__name_lookup.html
https://clouddocs.f5.com/api/irules/DNSMSG__record.html
- Rene_C_Aug 18, 2020Nimbostratus
which just includes that it can no longer be written nicely on one line...or 2...or 3... :)
- JRahmAug 20, 2020Admin
deprecated just means it is marked for removal in a future version. As long as it's still available it will be supported.
Recent Discussions
Related Content
* 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