We have a f5 BIG-IP VE version 11.6 during deployment we go to Traffic Manager-->virtual server--> manage irule and move an irule "iRule_maintenance" from available to enabled. After deployment do the reverse process. I want to automate this part via scripting via bash or cmd line or powershell.
Keeping iRule_maintenance will not make any issue if you have valid condition written. However it will help during maintenance. But you can change the order of maintenance irule.
If you are looking to add & remove irule from VIP. Then refer devcentral article and customize based on requirement.
sorry for the late response. I am not familar with bash script, I see that powershell is supported by f5 any help on that front would be helpful.
f5 has 2 powershell things pssnapin and powershell f5 rest method, which method is suitable for my requirements?
detailed documentation link would be helpful with preferably some examples