Forum Discussion
Mickelukas_3582
May 07, 2018Nimbostratus
CPU, memory, disk usage and http profile using the BIG-IP Python SDK
I've been busy with the Python SDK for a couple of weeks now. While I managed to get a lot of information out of it, I'm struggling with a couple of API endpoints. Does anyone have an idea where I ca...
- May 09, 2018
I added the question on the Github page as that seems like a better location for such a query. it can be followed here: https://github.com/F5Networks/f5-common-python/issues/1436
Satoshi_Toyosa1
Jun 23, 2018Ret. Employee
A sample code:
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('192.168.184.30', 'admin', 'admin')
logicalDisk = mgmt.tm.sys.disk.logical_disks.get_collection()
diskKeys = ['mode', 'size', 'vgFree', 'vgInUse', 'vgReserved']
for ld in logicalDisk:
print('--- list sys disk logical-disk {} all-properties ---'.format(ld.__dict__['name']))
for k in diskKeys:
print('{:<15} {}'.format(k, ld.__dict__[k]))
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