Community Training Classes & Labs > F5 Programmability Training Index

Lab A.4: update_pool_member_state.py

One of the most common tasks asked for by customers is the ability to set a pool member’s state via a script. We have included an example of such a script in the lab that can be used to see how easy it is to automate specific operational tasks.

Task 1 – Run update_pool_member_state.py

  1. In the command prompt type python update_pool_member_state.py 10.1.1.4 test_pool 10.1.10.10:80 disabled and examine the output.
  2. Verify the pool member was disabled via TMUI
  3. Re-run the script with as python update_pool_member_state.py –-help to see additional options.
  4. Re-enable the pool member using the script