Forum Discussion
Dean_M_21414
Sep 13, 2011Nimbostratus
Report for down nodes
Hi all,
I need a script that will list all down nodes per pool, by partition. We need a daily report that will show our downed nodes along with their associated pool/s (via members). We also need thi...
George_Watkins_
Sep 13, 2011Historic F5 Account
I forgot to add the output. If you execute that script, your output will look like this:
f5-test-linux examples % ./report-down-pools.rb 10.0.0.1 admin admin Common
test_http_pool - 0 available members ftp_pool - 0 available members laptop-iis - 0 available members ntp_pool - 0 available members p.test_local_dns - 2 available membersp.test_249_http - 1 available members ssh_pool - 0 available members ubuntu_http_pool - 0 available members
If you want to only report pools without members you can add an if statement to only catch those pools reporting '0' active members:
puts "{pool[0]} has ZERO available members" if pool[1] == 0
-George
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