Forum Discussion
F5-SDK Installation
- Apr 20, 2020
Hello Ashish.
I've tested in linux mint without any issue.
You can check my log steps attached.
KR,
Dario.
Hi Dario,
Below are the steps which I followed:
1. Executed this command on Centos8 pip install f5-sdk
Got message successfully installed.
2. Excuted Python3 command and tried executed below commands:
>>> import requests
>>> requests.packages.urllib3.disable_warnings()
>>> from f5.bigip import ManagementRoot -----------------> after executing this command getting error which I has shared.
>>> # Basic Authentication
>>> b = ManagementRoot('ltm3.test.local', 'admin', 'admin')
>>> # Token Authentication
>>> b = ManagementRoot('ltm3.test.local', 'admin', 'admin', token=True)
>>> b.tmos_version
u'12.1.0'
3. I am able to ssh my F5 LTM from CentOS ----> ssh admin@192.168.70.14 ----> successfully logged in into the LTM
4. when I execute print(requests.get('https://ashi.com')) getting error related to SSL cert.
5. I have one user for LTM i.e. admin/admin which is having Administrator priviledges and access to advanced shell also.
6. LTM is connected to internet also.
https://devcentral.f5.com/s/articles/getting-started-with-the-f5-common-python-sdk-27438 ----> followed this article and in this it is mentioned:
"I disable the certificate security warnings on my test boxes, but the first two lines in the sample code below are not necessary if you are using valid certificates"
Let me know if I am missing anythin here.
Regards,
Ashish Solanki
- Apr 13, 2020
The mentioned command ("from f5.bigip import ManagementRoot") only loads the libraries, it doesn't send anyting to anywhere.
F5 SDK has several dependencies like for example 'f5-icontrol-rest-python', so my suspect is you need to satisfy these other dependencies before getting your box working properly.
Use 'pip search' to search for other f5 packets and try to download them all.
Check also with "help('modules')" to see what F5 modules you have installed...
Recent Discussions
Related Content
* 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