Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

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?

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

There is not provision to call tmsh command from irule in v11.x. Other option is to run command via iCall and iControl.

0
Comments on this Answer
Comment made 13-Apr-2017 by LoyalSoldier 106

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

0