https://github.com/broamski/f5iruleexporter
Exports F5 BigIP LTM and GTM iRules for easy access, versioning, etc.
https://github.com/broamski/f5iruleexporter
Last synced: 7 months ago
JSON representation
Exports F5 BigIP LTM and GTM iRules for easy access, versioning, etc.
- Host: GitHub
- URL: https://github.com/broamski/f5iruleexporter
- Owner: broamski
- Created: 2013-10-21T03:33:25.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-10-21T04:03:30.000Z (almost 12 years ago)
- Last Synced: 2024-05-07T18:23:27.187Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
F5iRuleExporter
===============F5iRuleExporter connects to a list of F5 Big-IP Local Traffic Manager (LTM) and Global Traffic Manager (GTM) devices, exporting all non system iRules to text files.
**Notes**
+ This application requires the iControl Java SDK, which can be obtained via F5 DevCentral.### Configuration
The **f5export.properties** properties file contains the following fields:
+ authserver - Specifies a single device to test initial authentication
+ *Example:* authserver=ltm01a.megacorp.ca
+ username - Username to connect to the F5 devices. Preferably read only, since this is human readable in the config file
+ *Example:* username=f5readonlyuser
+ password - Acount password
+ *Example:* password=sw33tpwBr0
+ ltm.list - Comma seperated list of LTM devices
+ *Example:* ltm.list=ltm01a.megacorp.ca,ltm01b.megacorp.ca,ltm02a.megacorp.ca,ltm02b.megacorp.ca
+ gtm.list - Comme seperated list of GTM devices
+ *example:* gtm.list=gtm01.megacorp.ca,gtm02.megacorp.ca
+ export.path
+ *Example:* export.path=/home/nuszkowski/F5iRuleExporter/rules
+ **Note:** iRules are exported in the following structure *exportpath*/*device name*/*irule name*.txt### Execution
java -jar /home/nuszkowski/F5iRuleExport/F5iRuleExport.jar -config /home/nuszkowski/F5iRuleExport/f5export.properties
**Note:** -Dlog4j.configuration="file:///home/nuszkowski/F5iRuleExport/log4j.properties" can be provided if you would like to externalize the log4j configuration
### Versioning
If you care to version your iRules (which is my primary purpose for this app), you can include the execution as well as
versioning commands inside of a shell script and perhaps schedule it via cron.