Forum Discussion
K-Dubb
Nimbostratus
Jun 13, 2011Pool_Member_Status_Page_on_a_Virtual_Server (Topic Changed)
Hi,
I am trying to use this from windows command line: http://devcentral.f5.com/wiki/default.aspx/iControl/pyControlQuickPoolStatus.html. I have python installed on the server. I saved the syntax/usage section to a file called check.py and modified host, user and password. I saved the main script to a file called pool_status.py. I am calling check.py from comand line and I get:
C:\Python27>c:\scripts\check.py
Traceback (most recent call last):
File "c:\scripts\check.py", line 1, in
import pycontrol.pyControl as pyControl
ImportError: No module named pycontrol.pyControl
I have never ran a python script before, so perhaps I am doing somehting wrong. Any help would be great.
Thanks.
EDIT:
I am now going another route based on a recommendation by Jason Rahm
Working on trying to get this to work, but having issues (See further down in the topic)
http://devcentral.f5.com/wiki/default.aspx/iRules/Pool_Member_Status_Page_on_a_Virtual_Server.html
28 Replies
- JRahm
Admin
no, this won't work. What you've done is place the iRule in the class. An external class is a file where items of like functionality are stored, like a list of urls, or in this cass, a list of pool members. The iRule should be saved either in the GUI in the iRules text window, or in the bigip.conf file in the appropriate partition, or via the iRule editor. The iRule references the class, it isn't stored in the class. - K-Dubb
Nimbostratus
I see. So then what exaclty is in that .class file? Is that populated by the BigIP as I add the iRUle to their pool HTTP monitors? I did not see anything defined in the link for that unless I messed it. - K-Dubb
Nimbostratus
Ok, now I have an iRule defined with the code above, and an empty .class file. I am not sure what needs to be done next. I am also not exaclty sure how I access the page externally, or even what the URL would be (I assume the first part would be the BIGIP Manageement Page URL) - K-Dubb
Nimbostratus
Getting closer! The .class file was populated by the BIGIP. I have assinged the iRule to one of my virtual servers... Now the question is how do I view this information externally? I assume it must be an html page of some kind.... - hoolio
Cirrostratus
You can access the virtual server in a browser. If the VS IP is publicly accessible now, you may want to restrict access to trusted hosts/networks either upstream or in the iRule itself.
Aaron - K-Dubb
Nimbostratus
So you are saying that the way I view the status externally is just to go to the VIP IP? I understood this has being a holistic view of all of the Pool status's on the BIGIP, and not just one at a time?
Thanks! - hoolio
Cirrostratus
Nope... :) Create a new virtual server that's just for getting status of all of the pools and add this iRule to it. It will loop through and get status for all of the pools.
Aaron - K-Dubb
Nimbostratus
Posted By hoolio on 06/17/2011 02:10 PM
Nope... :) Create a new virtual server that's just for getting status of all of the pools and add this iRule to it. It will loop through and get status for all of the pools.
Aaron
Oh!!! :) Well that makes more sense!! Any other configuration needed for this Virtual Server? I have created, but for some reason I cannot connect. THe IP was responding with Ping right when I created it, then it went back to timing out. THis is just a virtual server with an IP assigned and no Pool. I am using http and the default HTTP Profile. - K-Dubb
Nimbostratus
Avaiablbility is currently unknown (enabled) so it should work. - The_Bhattman
Nimbostratus
Hi K-Dubb,
Did you try http:///status to see if the page comes up?
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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