Forum Discussion
Use Poolmember hostname instead of Ipaddress
I am using f5-icontrol to manage bigip I am able to add/delete/modify and remove members by Ipaddress as Poolmember, I want to use hostname as a poolmember instead of Ipaddress. Please advise.
3 Replies
- R_Marc
Nimbostratus
This feature was added in 11.6 I think (maybe 11.5...but I don't have anything still on 11.5).
curl -sk -u admin:admin -H "Content-Type: application/json" -X PUT https://bip1/mgmt/tm/ltm/pool/rmarc-test-pool -d '{"name":"rmarc-test-pool","members":[{"name":"www.google.com:443","fqdn":{"autopopulate":"enabled"}}]}'| python -m json.toolThen it'll populate:
curl -sk -u admin:admin -H "Content-Type: application/json" -X GET https://bip1/mgmt/tm/ltm/pool/rmarc-test-pool/members | python -m json.tool { "items": [ { "address": "any6", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "false", "fqdn": { "autopopulate": "enabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com:443?ver=11.6.0", "session": "user-enabled", "state": "fqdn-up" }, { "address": "173.194.123.80", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "true", "fqdn": { "autopopulate": "disabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com-173.194.123.80:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com-173.194.123.80:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.80:443?ver=11.6.0", "session": "user-enabled", "state": "up" }, { "address": "173.194.123.81", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "true", "fqdn": { "autopopulate": "disabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com-173.194.123.81:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com-173.194.123.81:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.81:443?ver=11.6.0", "session": "user-enabled", "state": "up" }, { "address": "173.194.123.82", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "true", "fqdn": { "autopopulate": "disabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com-173.194.123.82:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com-173.194.123.82:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.82:443?ver=11.6.0", "session": "user-enabled", "state": "up" }, { "address": "173.194.123.83", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "true", "fqdn": { "autopopulate": "disabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com-173.194.123.83:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com-173.194.123.83:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.83:443?ver=11.6.0", "session": "user-enabled", "state": "up" }, { "address": "173.194.123.84", "connectionLimit": 0, "dynamicRatio": 1, "ephemeral": "true", "fqdn": { "autopopulate": "disabled", "tmName": "www.google.com" }, "fullPath": "/Common/www.google.com-173.194.123.84:443", "generation": 150, "inheritProfile": "enabled", "kind": "tm:ltm:pool:members:membersstate", "logging": "disabled", "monitor": "default", "name": "www.google.com-173.194.123.84:443", "partition": "Common", "priorityGroup": 0, "rateLimit": "disabled", "ratio": 1, "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members/~Common~www.google.com-173.194.123.84:443?ver=11.6.0", "session": "user-enabled", "state": "up" } ], "kind": "tm:ltm:pool:members:memberscollectionstate", "selfLink": "https://localhost/mgmt/tm/ltm/pool/rmarc-test-pool/members?ver=11.6.0" } - Rajesh_JVLN_179
Nimbostratus
Hi Marc,
I am using f5-icontrol-11.3.0.0.gem and using Chef-11,as of today we have only f5-icontrol-11.4.0.0.gem. Please direct me where can I find 11.6 gem. Thanks & Regards Rajesh
- R_Marc
Nimbostratus
I wouldn't know. I use (and would recommend using) the Rest API, which came as of 11.5. The features in question don't really have anything to do with your Ruby gem, but rather the version of BigIP firmware you are running. As I noted, this feature came in version 11.6 of the BigIP firmware.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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