Forum Discussion
How do I get bigip node stats?
I've tried:
mgmt = ManagementRoot('host','user','pass') node = mgmt.tm.ltm.nodes.node.load(name='10.51.243.247', partition='common') stats = node.stats.load() print(stats)
But I get: Text: u'{"code":404,"message":"01020036:3: The requested Node (/common/10.51.243.247) was not found.","errorStack":[]}'
That node definitely exists in common, and I can get info for it with:
items = mgmt.tm.ltm.nodes.get_collection() for item in items: if item.name == '10.51.243.247': print(item.fullPath)
returns:
/Common/10.51.243.247
- Rob_74473
Cirrus
Asking questions doesn't seem to line wrap properly.
mgmt = ManagementRoot('host','user','pass')
node = mgmt.tm.ltm.nodes.node.load(name='10.51.243.247', partition='common')
stats = node.stats.load()
print(stats)
Does not work.
- amintej
Cirrus
Hello,
Did you realize common partition is writen with C capital letter, try this:
node = mgmt.tm.ltm.nodes.node.load(name='10.51.243.247', partition='Common')
in your code, you have 'common'.
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