Forum Discussion
Apr 16, 2015
python f5 sys.argv
Building a python script to enable and disable pool members. I have everything already working great, but i want to pass sys.argv.
example i want to issue this command
command.py 192.168....
Apr 20, 2015
I solved it.
import sys import bigsuds import time
Insert the management IP address and username and password here
b = bigsuds.BIGIP(hostname = sys.argv[1], username = sys.argv[2], password = sys.argv[3], ) pl = b.LocalLB.Pool
pool = sys.argv[4] member = sys.argv[5] port = sys.argv[6]
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