Forum Discussion
wilfred_pascasi
Nimbostratus
Jul 31, 2006send an email when failover occurs
I would like to know if there is a way to receive an email from the bigip when it failover from active to standby or vice versa. I am running version 4.5.7.
Jul 31, 2006
Actually, most likely the simplest way is to monitor the System Id (from the System::SystemInfo::get_system_id() method). This is a UUID that is based in the primary mac on the system. If a failover occurs and you are monitoring the system on the shared address, the value of the system id will change. You could alternately use one of the serial numbers from the System::SystemInfo::get_system_information() method as this identifier. Another option is the Networking::AdminIP::get_list() that will return a list of the admin ip addresses on the device.
Logic is as follows:
String id = get_unique_id();
while (1)
{
String id2 = get_unique_id();
if ( id2 != id )
{
send_email_to_someone();
id = id2;
}
// Don't flood the BIG-IP with calls. Sleep in between requests.
sleep_some_amount_of_time();
}Hope this helps...
-Joe
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
