Technical Article Getting Started with pyControl v2: Installing on Ubuntu Desktop December 14, 2009 by Jason Rahm 8700 article 101 application delivery basic dev devops getting started icontrol irules news techtip 1 It's true--pyControl v2 is officially out the door! Here are the installation instructions for Ubuntu Desktop. REQUIRED PACKAGES 1. Python 2.4/2.5/2.6 (Use 32-bit version) 2. Python Setup Tools for your python version 3. Python SUDS soap library 4. pyControl version 2 Ubuntu 9.x Desktop Installation 1. Python 2.6.4 ships with Ubuntu, so no need to install. 2. Install remaining packages (assuming setuptools, suds, & pycontrol packages are in /var/tmp/): #SETUPTOOLS cd /var/tmp/ tar xvfz setuptools-0.6c11.tar.gz cd setuptools-0.6c11 sudo python setup.py install #SUDS cd /var/tmp/ tar xvfz python-suds-0.3.8.tar.gz cd python-suds-0.3.8 sudo python setup.py install #PYCONTROL tar xvfz pycontrol-2.0a.tar.gz cd trunk sudo python setup.py install 3. Verify Install >>> import suds >>> import pycontrol.pycontrol as pc >>> suds.__version__ '0.3.8' >>> suds.__build__ '(beta) R618-20091204' >>> pc.__version__ '2.0' >>> pc.__build__ 'r75' Alternately, you can simply extract pycontrol.py from the bundle and place it somewhere on your path. Installation Video: last modified: January 10, 2013 2 Comment(s): 0 you imported pycontrol.pycontrol as pc so you should reference that when calling classes from it.. for exampleb = pc.BIGIP(hostname== 'bl2aqubigip01', username = 'atlaseng', password = 'Ftp21ssh22',fromurl = True, wsdls = ['System.SystemInfo']) 0 I went through these instructions using python 2.6.4 and the inital call to the bigip just hangs. I see 443 is open and can reach the server on this port. Any ideas? thank you.[root@server /data/scripts]# pythonPython 2.6.4 (r264:75706, Jan 19 2010, 14:01:31)[GCC 3.4.6 20060404 (Red Hat 3.4.6-3)] on linux2Type "help", "copyright", "credits" or "license" for more information.>>> import suds>>> import pycontrol.pycontrol as pc>>> suds.__version__'0.3.8'>>> pc.__version__'2.0'>>> pc.__build__'r76'>>> b = pyControl.BIGIP(hostname = 'bl2aqubigip01', username = 'atlaseng', password = 'Ftp21ssh22',fromurl = True, wsdls = ['System.SystemInfo'])Traceback (most recent call last): File "", line 1, in NameError: name 'pyControl' is not defined>>> b = pc.BIGIP(hostname = 'bigip1', username = 'admin', password = 'somepassword',fromurl = True, wsdls = ['System.SystemInfo'])And it hangs at this point. You must be logged in to post comments.