Forum Discussion
LyonsG_85618
Cirrostratus
Aug 25, 2011running BIGPIPE commands in an IRULE
Hi.
Does anyone know if it's possible to run BIGPIPE commands in an IRULE?
I would like to run 'b failover show' and then extract the response.
If the unit is in ACTIVE ...
hoolio
Cirrostratus
Aug 31, 2011Hi Graham,
The idea is that you'd run a bash or Perl script from cron on LTM which gets the failover status, writes the output to a file which is referenced in an external datagroup and then use iControl to force a reread of the datagroup contents. You could then access the datagroup from an iRule and check to see it returns active before calling HSL commands.
The external datagroup format is:
External Class Format:
class namevalue {
"name1" := "value",
}
As you don't need a value, you could use:
class active_status_class {
"active",
}
For 10.2.x you can use 'bigpipe failover' or 'tmsh run /util bigpipe failover' to get the failover status. For 11.0.x you can use 'tmsh show /sys failover'
Here's a Perl iControl example from Joe for updating the datagroup:
http://devcentral.f5.com/wiki/iControl.PingExternalClass.ashx
Aaron
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
