Update BIG-IP system syslog config with python and bigrest
Code is community submitted, community supported, and recognized as ‘Use At Your Own Risk’.
This script will allow you to update your BIG-IP system syslog configs, just add hosts to the host list variable and it will iterate through them.
How to use this Code Snippet
# No arguments, though can be customized to pass them
Code Snippet Meta Information
- Version: 0.1
- Coding Language: python 3.10.6 w/ bigrest module
Full Code Snippet
bigip_syslog.py (Gist on GitHub)
Note: username and password set as variables in this demo script. Would advise using environment variables or a credential vault for production use.