Forum Discussion
gerald_wegener_
Nimbostratus
Feb 11, 2009Writing to an external class file
I've been able to write using the pyControl API to an internal address data group. However when I use the same syntax and substitute a datagroup that uses an external file I don't see any error...
gerald_wegener_
Nimbostratus
Feb 12, 2009
Joe -
I'm testing right now with around 50k entries so I need the external class file. I was able to load the file after addtions/deletions using 'b load'. I tried your suggestion of changing the file mode and that works as well but without reloading the entire config - which is better. It seems to work OK if even if you don't change the mode e.g. if the mode is currently rw and you add/delete an entry in the external class file then issue:
"b class blacklisttest extern {filename /var/class/blacklist type ip mode rw}"
it will force a read of the external class file. This is ver9.3.1.
Reloading a file with that many entries will raise the CPU quite a bit while loading(on a 6800 CPU0 goes up above 50-60% on an otherwise idle box) and CPU1(TMS) bumps up a bit but not nearly as much. Is there anyway around this to limit the impact to the box when loading large files?
Thanks for the tip on uploading files via the API since that was next on my list.
Gerry
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