Forum Discussion

Rob_74473's avatar
Rob_74473
Icon for Cirrus rankCirrus
Nov 09, 2018

How to crash a bigip

This isn't really a question, I just thought I share a handy way to crash a bigip through the python sdk. We opened a ticket, but f5 indicated they weren't interested, so I am curious I see if anyone else can crash their bigips. Specifically, I've tested against two separate HA pairs, both labs running the latest software version.

 

!/usr/bin/env python
from __future__ import print_function
from f5.bigip import ManagementRoot
from f5.utils.responses.handlers import Stats
import urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
tor = ManagementRoot('big_hostname', 'rest_api', 'password')
 the pool 'test' already exists, it doesn't matter how it's configured
tor_pool = tor.tm.ltm.pools.pool.load(partition='Common', name='test')
 I am explicitly passing a single space character
tor_pool.update(monitor=' ')

Now, obviously I'm not using this code in production, I just stumbled across this artifact during testing. And, there's no good reason to do this in a real application, but it is interesting how easy it is to crash a deamon and cause a failover.