http://wiki.christophchamp.com/index.php?title=F5&feed=atom&action=history
F5 - Revision history
2024-03-28T18:39:03Z
Revision history for this page on the wiki
MediaWiki 1.26.2
http://wiki.christophchamp.com/index.php?title=F5&diff=7676&oldid=prev
Christoph: Created page with "This article will cover various topics related to '''F5 BIG-IP''' load balancers (mainly for the Virtual Edition). NOTE: Unless otherwise specified, all commands listed herei..."
2019-11-22T00:51:18Z
<p>Created page with "This article will cover various topics related to '''F5 BIG-IP''' load balancers (mainly for the Virtual Edition). NOTE: Unless otherwise specified, all commands listed herei..."</p>
<p><b>New page</b></p><div>This article will cover various topics related to '''F5 BIG-IP''' load balancers (mainly for the Virtual Edition).<br />
<br />
NOTE: Unless otherwise specified, all commands listed herein were tested on BIGIP-15.0.1-0.0.11-vmware.<br />
<br />
==Miscellaneous commands==<br />
<br />
* List VIPs and pools:<br />
<pre><br />
$ tmsh list ltm virtual<br />
$ tmsh list ltm pool<br />
</pre><br />
<br />
* Set various routes:<br />
<pre><br />
[root@AnthosF5:Active:Standalone] config # tmsh create /sys management-route OpenVPN network 10.1.100.45/32 gateway 10.39.56.1<br />
[root@AnthosF5:Active:Standalone] config # tmsh create /sys management-route Default-Mgmt network 0.0.0.0/0 gateway 10.39.56.1<br />
[root@AnthosF5:Active:Standalone] config # tmsh list /sys management-route<br />
sys management-route Default-Mgmt {<br />
gateway 10.39.56.1<br />
network default<br />
}<br />
sys management-route OpenVPN {<br />
gateway 10.39.56.1<br />
network 10.1.100.45/32<br />
}<br />
[root@AnthosF5:Active:Standalone] config # tmsh list net route<br />
net route external_default_gateway {<br />
gw 10.31.0.1<br />
network default<br />
}<br />
</pre><br />
<br />
==API calls==<br />
<br />
* Authenticate to receive temporary token:<br />
<pre><br />
$ F5_IP=10.39.56.74<br />
$ F5_ADMIN_PASSWD={redacted}<br />
$ TOKEN=$(curl -skXPOST https://${F5_IP}/mgmt/shared/authn/login \<br />
-H "Content-Type: application/json" \<br />
-d '{"username":"admin","password":"${F5_ADMIN_PASSWD}","loginProviderName":"tmos"}' |\<br />
python -c 'import sys,json;data=json.loads(sys.stdin.read());print data["token"]["token"]')<br />
</pre><br />
<br />
* Use token to make an API call (here, get information on the partition named "<code>admin_control_plane</code>"):<br />
<pre><br />
$ curl -skH "X-F5-Auth-Token: ${TOKEN}" \<br />
https://${F5_IP}/mgmt/tm/auth/partition/admin_control_plane |\<br />
python -mjson.tool<br />
{<br />
"defaultRouteDomain": 0,<br />
"fullPath": "admin_control_plane",<br />
"generation": 306,<br />
"kind": "tm:auth:partition:partitionstate",<br />
"name": "admin_control_plane",<br />
"selfLink": "https://localhost/mgmt/tm/auth/partition/admin_control_plane?ver=15.0.1"<br />
}<br />
</pre><br />
<br />
==External links==<br />
* [https://www.f5.com/trials/big-ip-virtual-edition BIG-IP VE trial license]<br />
<br />
[[Category:Technical and Specialized Skills]]<br />
[[Category:DevOps]]</div>
Christoph