Forum Discussion

Rob_74473's avatar
Rob_74473
Icon for Cirrus rankCirrus
Apr 03, 2018

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

 

2 Replies

  • 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.

     

  • 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'.