My version is BIG-IP 10.2.1 Build 297.0 Final . So I would need to download bigip.conf file to my server , append it with my script and then transfer it back to BigIP server ? No way I can copy my script to another location and run it for this version (10.2.1) ?
I want to automate operations on the load balancer from my management server. I am writing a script which can read all the configuration (pools,virtual servers) on the load balancer and output a key/value file. So I would need to run a remote script from my server. How do I do that without having to edit bigip.conf file ? Pls tell me how I can run it from a remote location ? Thanks
Thanks for ur reply.I want to use tmsh. I am using the commands like get_config which will allow me to parse the output into various key/value objects. If I were to directly run the tmsh command like "list ltm pool" , I would need to parse it at my end and would need to maintain it (when different properties get added). Hence I prefer getting key/value objects from the script. Pls help
As for iControl , the assumption is that we would have only LTM and I am not sure if iControl is always available. Besides , I dont know much about it
Maybe you already checked the wiki: https://devcentral.f5.com/wiki/TMSH.HomePage.ashx
An other way to do is to create a bash script including tmsh command. You can easily execute it where you want, without editing bigip.conf.
As hoolio mention, the best way to do your job from a management server is the powerfull iControl. You can use this API with common script language as perl or ruby, check the DevCentral entry: https://devcentral.f5.com/wiki/iControl.HomePage.ashx. It's a bit longer to write than a simple tmsh script but so much cleaner & powerfull.