Forum Discussion

NiHo_202842's avatar
NiHo_202842
Icon for Cirrostratus rankCirrostratus
Jan 27, 2016

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

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    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