Advertisement
thantzinz

F5 notes

Dec 7th, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. tmsh show sys hard | grep ‘Base MAC’
  2. tmsh show sys mac-address | grep trunk
  3. tmsh show sys mac-address | grep interface
  4. tmsh show net plan
  5. ifconfig -a | grep HWaddr ( for null mac 00:00:00:00:00:00)
  6. netstat -anp | grep "ESTABLISHED.*big3d" (https://devcentral.f5.com/questions/viewing-gtm-cluster-and-synchronization)
  7. ps aux | grep "/usr/bin/mcpd" | grep -v grep | wc -l
  8. (openssl x509 -noout -modulus -in server.pem | openssl md5 ;\ openssl rsa -noout -modulus -in server.key | openssl md5) | uniq
  9. openssl verify -verbose -CAfile cacert.pem server.crt
  10. openssl x509 -x509toreq -in my.crt -out my.csr -signkey my.key
  11.  
  12.  
  13. tmsh load sys config verify file hello_world.txt merge
  14. tmsh load sys config file hello_world.txt merge
  15. tmsh -c "cd /Partition1; list ltm rule" > irules-part1_$(date +"%Y-%m-%d").txt
  16. tmsh -c "cd /Partition1; load sys config verify file irules-part1_2016-10-03.txt merge"
  17. tmsh -c "cd /Partition1; load sys config file irules-part1_2016-10-03.txt merge"
  18. tmsh load sys config merge verify file myfile.txt
  19. #######################################
  20. curl -sk -u admin:admin https://192.168.245.1/mgmt/tm/ltm | jq . ( iControl REST )
  21. curl -sk -u admin:admin https://dev.rest.box/mgmt/tm/ | sed 's/,/\'$'\n/g'
  22. curl -sk -u admin:admin https://dev.rest.box/mgmt/tm/cloud/ltm/virtual-servers | sed 's/,/\'$'\n/g'
  23. curl -sk -u admin:admin https://192.168.101.5/mgmt/tm/ltm/node | python -m json.tool
  24. curl -H"Content-type: application/json" --user-agent "MyGreatiHealthClient" --cookie-jar cookiefile -o - --data-ascii "{\"user_id\": \"j.smith@example.com\", \"user_secret\": \"Secret!P@ssw@rd\"}" https://api.f5.com/auth/pub/sso/login/ihealth-api
  25. https://devcentral.f5.com/wiki/iHealth.Authentication.ashx
  26. Headers from a successful authentication will result in the issuance of a set of cookies, an expiration for the token as an epoch timestamp, and an HTTP 200 response code:
  27. curl --resolve foo.example.com:443:127.0.0.1 https://foo.example.com:443/
  28. curl https://login.f5.com/
  29.  
  30.  
  31. ###Modifying the BIG-IP system's ephemeral port exhaustion warning
  32. modify ltm global-settings traffic-control port-find-threshold-trigger 6
  33. modify ltm global-settings traffic-control port-find-threshold-timeout 60
  34. modify ltm global-settings traffic-control port-find-threshold-warning disabled
  35.  
  36. modify /ltm virtual <virtual_server_name> source-port
  37. modify /ltm snat SNAT-1 source-port preserve-strict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement