Forum Discussion

Anthony_Pineda's avatar
Anthony_Pineda
Icon for Nimbostratus rankNimbostratus
Apr 08, 2015

bigsuds question

I want to use an F5 appliance for running a python program using bigsuds as iControl API to obtain device network map on other LTMs. The problem is the version of python running on this device is version 2.4. bigsuds require python v2.6 and above. How can I go about updating the python software on LTM? Where can I get the valid python software for LTM.

 

8 Replies

  • You can install Python2.6 as user-executable software in your home directory which will work alongside with the existing Python2.4 (used by the system). Do not try installing Python2.6 on the F5 appliance globally! It will probably screw up the system as there are no guarantees the scripts in use by the BigIP software will work after a global Python upgrade to 2.6.

     

    As far as the installation procedure goes, look for Linux RHEL4 .rpm packages. Following a successful installation, you also need to modify the bigsuds config to point to Python2.6, or else it will complain about the outdated Python2.4 version (system default).

     

    In general, I only recommend you try this if you are feeling confident in Linux RHEL environment. This is not something you should try otherwise.

     

    • John_Gruber_432's avatar
      John_Gruber_432
      Historic F5 Account
      Please remember that the TMOS device is a hardened appliance. It has a SELinux policy which will prevent executing most things which are not part of the system. The short answer is, use the perl SOAP module for iControl SOAP or curl for iControl (TMOS 11.5+). The perl SOAP module is on the TMOS device already.
  • You can install Python2.6 as user-executable software in your home directory which will work alongside with the existing Python2.4 (used by the system). Do not try installing Python2.6 on the F5 appliance globally! It will probably screw up the system as there are no guarantees the scripts in use by the BigIP software will work after a global Python upgrade to 2.6.

     

    As far as the installation procedure goes, look for Linux RHEL4 .rpm packages. Following a successful installation, you also need to modify the bigsuds config to point to Python2.6, or else it will complain about the outdated Python2.4 version (system default).

     

    In general, I only recommend you try this if you are feeling confident in Linux RHEL environment. This is not something you should try otherwise.

     

    • John_Gruber_432's avatar
      John_Gruber_432
      Historic F5 Account
      Please remember that the TMOS device is a hardened appliance. It has a SELinux policy which will prevent executing most things which are not part of the system. The short answer is, use the perl SOAP module for iControl SOAP or curl for iControl (TMOS 11.5+). The perl SOAP module is on the TMOS device already.
  • Hannes - How do I make sure bigsuds config would use the Python 2.6 installation?

     

  • while executing the script you need to provide the path to the python version.
    
    /usr/bin/python2.6  somefile.py
    

    or in the script file somefile.py

    !/usr/bin/python2.6