RudiVanSchalkwy
Jul 17, 2019Nimbostratus
TMSH Command via Python SDK
I was hoping to get some assistance in executing TMSH commands via the Python SDK. From the documentation i can easily execute any BASH command but i'm struggling with TMSH commands. I need to e...
- Jul 22, 2019
Hello Rudi.
Here an example to get access to the status object
from f5.bigip import ManagementRoot # ---------------------------------------------------------- session = ManagementRoot("F5_mgmt_IP","username","password",token=True) status = session.tm.cm.sync_status.load() print(status.raw)
In general in SDK there are 3 kind of objects, here is some documentation.
Tutorial for accessing
- Collections
- Named Resources
REF - https://devcentral.f5.com/s/articles/getting-started-with-the-f5-common-python-sdk-27438
Tutorial for accessing
- Unnamed Resources
Hope this helps.
KR,
Dario.