Forum Discussion
james_lee_31100
Nimbostratus
Aug 25, 2017What is the best way to verify new IP address is not used on F5 ltm
Hi, Everyone:
I am trying to use Ansible to build a lot of VIPs, Is there a way to verify new IP addresses is not used on LTM, currently I am doing following (grep /config/bigip.conf, and grep ...
Satoshi_Toyosa1
Apr 01, 2019Ret. Employee
iControl REST way.
GET /mgmt/tm/ltm/virtual-address
for getting virtual addresses: e.g.,
curl -sku : https:///mgmt/tm/ltm/virtual-address
If you only want the addresses, pipe the output to
| python -c 'import sys,json; o=json.load(sys.stdin); oo = [vip["address"] for vip in o["items"]]; print("\n".join(oo))'
GET /mgmt/tm/net/self
for getting the self IP addresses: e.g.,
curl -sku : https:///mgmt/tm/net/self
Pipe the output to the same python filter for getting the addresses.
I guess you don't need to get the management address since you have already used it in the above calls (
), however, to satisfy your curiousity, it is GET /mgmt/tm/sys/management-ip
.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