Forum Discussion
TMSH Command in iRules
Hello,
I'm trying to figure out a way to run a tmsh show command from an iRule. Have tried learning about iCall and iControl, but getting lost on those as to the process to incorporate into an iRule, if even possible. The purpose is to pull some stats for an HTML page (see https://devcentral.f5.com/codeshare/pool-member-status-html5-page-1035).
Example of commands:
- show ltm virtual | grep -e 'Ltm|Availability|State|Reason|Destination|Traffic|Bits|Packets|Connections|Conn|CPU|Last'
- show ltm pool | grep -e 'Ltm|Availability|State|Reason|Current Active|Traffic|Bits|Packets|Connections'
Can anyone provide guidance on a solution to this?
2 Replies
- Samir_Jha_52506
Noctilucent
There is not provision to call tmsh command from irule in v11.x. Other option is to run command via iCall and iControl.
- LoyalSoldier
Altostratus
Have tried figuring out how to do that with iCall or iControl, but lost on how to implement it. Can you advise on the process?
Thanks
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