If you are after the output of
tmsh show sys version
(or iControl REST endpoint
/mgmt/tm/sys/version
), the feature became available from the latest version. See
F5Networks/f5-common-python Github.
[root@centos ~] grep version /usr/lib/python2.7/site-packages/f5/__init__.py
__version__ = '3.0.10'
[root@centos python] python
Python 2.7.5 (default, Jun 24 2015, 00:41:19)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from f5.bigip import ManagementRoot
>>> mgmt = ManagementRoot('xx.xx.xx.xx', 'admin', 'xxx')
>>> ver = mgmt.tm.sys.version.load()
>>> print ver.raw
{u'kind': u'tm:sys:version:versionstats', '_meta_data': {'container': , 'minimum_additional_parameters': set([]), 'exclusive_attributes': [], 'allowed_commands': [], 'uri': 'https://192.168.226.131:443/mgmt/tm/sys/version/', 'required_json_kind': 'tm:sys:version:versionstats', 'bigip': , 'icontrol_version': '', 'required_command_parameters': set([]), 'icr_session': , 'required_load_parameters': set([]), 'object_has_stats': True, 'minimum_version': '11.5.0'}, u'selfLink': u'https://localhost/mgmt/tm/sys/version?ver=13.0.0', u'entries': {u'https://localhost/mgmt/tm/sys/version/0': {u'nestedStats': {u'entries': {u'Product': {u'description': u'BIG-IP'}, u'Title': {u'description': u'Main Package'}, u'Edition': {u'description': u'Final'}, u'Version': {u'description': u'13.0.0'}, u'Build': {u'description': u'0.0.1645'}, u'Date': {u'description': u'Tue Jan 31 16:59:50 PST 2017'}}}}}}