Forum Discussion
NiHo_202842
Jan 27, 2016Cirrostratus
Get Self IPs via iControl REST
Hi,
is there any way to get a list of self ip addresses of all Bigip devices in a cluster via the REST interface? There is mgmt/net/self, but this only lists the VLAN subnets.
Regards
nathe
Jan 27, 2016Cirrocumulus
NiHo,
What about
curl -sk -u user:pass -H "Content-Type: application/json" https://localhost/mgmt/tm/net/self | sed 's/,/\'$'\n/g' | grep address
This is what i see in my lab:
[root@bigip1:Active:Standalone] config curl -sk -u admin:admin -H "Content-Type: application/json" https://localhost/mgmt/tm/net/self | sed 's/,/\'$'\n/g' | grep address
"address":"x.x.x.50/16"
"address":"x.y.x.50/16"
Hope this helps,
N
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