K-Dubb
Jun 13, 2011Nimbostratus
Pool_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