Automated Service Monitoring with F5, Consul and Python F5 SDK
from f5.bigip import ManagementRoot
# Connect to BIG-F5
mgmt = ManagementRoot("test.server.com", "testuser", "testpassword")
# Get a list of all pools on the BigIP and print their names
pools = mgmt.tm.ltm.pools.get_collection()
for pool in pools:
print("+++ \t", pool.name)
for member in pool.members_s.get_collection():
print("\t--- \t", member.name)
# Create a HTTP Monitor for an F5 Pool
if mgmt.tm.ltm.monitor.https.http.exists(partition='Common', name='F5Automation_HTTP_Monitor'):
print ("HTTP Monitor Already Exists...")
else:
mgmt.tm.ltm.monitor.https.http.create(name="F5Automation_HTTP_Monitor", partition="Common")
# Load an existing pool and update its description
pool_a = mgmt.tm.ltm.pools.pool.load(name='F5Automation', partition='Common')
pool_a.description = "F5Automation"
pool_a.monitor = "F5Automation_HTTP_Monitor"
pool_a.update()
# Connect to BIG-F5
mgmt = ManagementRoot("test.server.com", "testuser", "testpassword")
# Get a list of all pools on the BigIP and print their names
pools = mgmt.tm.ltm.pools.get_collection()
for pool in pools:
print("+++ \t", pool.name)
for member in pool.members_s.get_collection():
print("\t--- \t", member.name)
# Create a HTTP Monitor for an F5 Pool
if mgmt.tm.ltm.monitor.https.http.exists(partition='Common', name='F5Automation_HTTP_Monitor'):
print ("HTTP Monitor Already Exists...")
else:
mgmt.tm.ltm.monitor.https.http.create(name="F5Automation_HTTP_Monitor", partition="Common")
# Load an existing pool and update its description
pool_a = mgmt.tm.ltm.pools.pool.load(name='F5Automation', partition='Common')
pool_a.description = "F5Automation"
pool_a.monitor = "F5Automation_HTTP_Monitor"
pool_a.update()
Awesome Post!!! Thanks for sharing this great post with us.
ReplyDeleteJAVA Training in Chennai
Best JAVA Training institute in Chennai
best java course in chennai
JAVA J2EE Training in Chennai
Best JAVA Training in Chennai
java training in OMR
JAVA Training in Annanagar
Big data training in chennai
Selenium Training in Chennai
Android Training in Chennai
PPC Service in Delhi
ReplyDeletePPC Companies in Delhi
SEO Company in Delhi
SEO Company in Delhi NCR
SMO Company in Delhi
SMO Company in India
ReplyDeleteThe blog you shared is very good. I expect more information from you like this blog. Thankyou.
Artificial Intelligence Course in Chennai
ai courses in chennai
artificial intelligence training in chennai
ai classes in chennai
best artificial intelligence training in chennai
Hadoop Training in Bangalore
salesforce training in bangalore
Python Training in Bangalore
Keep sharing this blog. it look like very attractive content ....
ReplyDeleteData Science Course in Chennai
Data Science Courses in Bangalore
Data Science Course in coimbatore
Data Science Course in Hyderabad
AWS Training in Bangalore
Devops Training in Bangalore
Data Science Training in Chennai
Data Science Training in Bangalore
Data Science Courses in Coimbatore
Data Science Training in Hyderabad
شرکت تلکا هاست پیشرو در میزبانی انواع وب سایت و هم چنین دارای انواع خرید هاست دانلود ارزان قیمت با کنترل پنل سی پنل میباشد.حتما از سایت ما دیدن کنید و از قیمت های مناسب برای انواع سرویس های وب و ثبت انواع دامنه شگفت زده شوید.
ReplyDeletemywifiext
ReplyDeletemywifiext local
mywifiext.local
www.mywifiext.local
san diego seo expert
ReplyDeleteseo company in india
ReplyDelete123.hp.com
123.hp.com/setup
mywifiext
ReplyDeletemwifiext.net
Excellent blog!!! I got to know the more useful information by reading your blog. Thanks for posting this blog.
ReplyDeleteastrologers in india
astrology online
best astrologer in andhra pradesh
best astrology online
astrology
famous astrologer in andhra pradesh
best astrologer near me
top 10 astrologers in andhra pradesh
After going through your contents I realize that this is the best of my knowledge as it provides the best information and suggestions. This is very helpful and share worthy. If you are looking for the best Automated Forex Trading Platform then visit TVG International. Keep sharing more.
ReplyDelete