Forum Discussion
don_23889
Nimbostratus
Dec 28, 2009grep'ng for 'string' in bigip.conf
grep'ng for 'string' and returning entire block of object definitions from bigip.conf for each instance of 'string', starting with 'virtual' and ending with '}'
config less bigip.con...
hoolio
Cirrostratus
Jan 28, 2010The output is just each object instance ordered by name. The eventual goal is to use the same ordering of object types as they're listed in the original bigip.conf. For now it's just a way to reorder the bigip.conf to make diff'ing of two different bigip.conf's easier.
So if you had a few classes, pools and VIPs defined but listed in mixed alphabetical order:
whose_class {...}
your_class {...}
my_class {...}
your_rule_1 {...}
my_rule_2 {...}
my_rule_1 {...}
your_vip_2 {...}
my_vip_2 {...}
your_vip_1 {...}
my_vip_1 {...}
The script would write these out in alphabetical order with the definitions unchanged:
my_class {...}
whose_class {...}
your_class {...}
my_rule_1 {...}
my_rule_2 {...}
your_rule_1 {...}
my_vip_1 {...}
my_vip_2 {...}
your_vip_1 {...}
your_vip_2 {...}
At some point, I'd like to write out the object types in the same order as they were parsed from the bigip.conf. But for now, the order is hardcoded in the script. Once I fix that, I'll add it to the codeshare.
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
