Forum Discussion
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 ...
hooleylist
Jun 14, 2011Cirrostratus
Hi,
I don't have much experience with pycontrol, but I guess that's because you don't have a path for python set or you don't have the pycontrol.pycontrol file saved in the library directory. I think the path to python is expected from your environment variables:
!/bin/env python
On an LTM, this shows:
/bin/env python
Python 2.4.3 (1, Oct 18 2010, 11:25:41)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
If that's not working on the host you're running the script from, try setting the path explicitly in the script. You could also try copying the pycontrol.pycontrol file to your current directory.
Here are a few related links:
http://stackoverflow.com/questions/3701646/how-to-add-to-the-pythonpath-in-windows-7
http://devcentral.f5.com/Default.aspx?tabid=53&aft=86059
http://stackoverflow.com/questions/1756721/what-is-causing-importerror-no-module-named-pkg-resources-after-upgrade-of-pytho
Aaron
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