Forum Discussion
Vijay_E
Cirrus
Jul 17, 2016iControl Rest - Nested Entries
I am getting quite a lot of values when I use the following:
curl -k -u admin:admin -X GET https://10.10.10.10/mgmt/tm/sys/memory/ -H "Content-Type: application/json"
in order to identify t...
JG
Cumulonimbus
Jul 17, 2016Despite the URL "https://localhost/mgmt/tm/sys/memory/memory-tmm/3.0" in the output, it does not seem to be directly accessible, even with v12.1.0. So you still need to get the whole output (7000+ lines) and use a tool to parse it. You must already have something to do the parsing. Nonetheless, here's a "simple" way I have tried to get this info:
curl -s -k -u admin:admin -X GET 'https://mgmt_IP_address/mgmt/tm/sys/memory/' | jq '.entries."https://localhost/mgmt/tm/sys/memory/memory-tmm".nestedStats.entries."https://localhost/mgmt/tm/sys/memory/memory-tmm/3.0".nestedStats.entries.memoryUsed | tostring'
You will need jg v1.5 for this.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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