Forum Discussion
Tim_18689
Dec 13, 2017Cirrus
How do I retrieve the BIG-IP version using F5-SDK?
I am trying to figure out how to get the running version of a BIG-IP using the F5-sdk.
I am able to get it by making a REST request:
restcurl -u admin:admin '/mgmt/tm/sys/version?$select=Product,Ve...
Dec 17, 2017
I banged my head against this one for an hour (no experience with this library). In the end I realized that that the interface itself actually has the information you're looking for:
from f5.bigip import ManagementRoot
f5 = ManagementRoot('f501.domain.local', 'leonardo', 'asthmaticturtlesareslow')
f5.tmos_version
Result:
>>> from f5.bigip import ManagementRoot
>>> f5 = ManagementRoot('f501.domain.local', 'leonardo', 'asthmaticturtlesareslow')
>>> f5.tmos_version
u'12.1.2'
/Patrik
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