Difference between revisions of "Using cURL to troubleshoot monitors"

From Tech-Wiki
Jump to: navigation, search
 
(4 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
'''Example syntax for HTTP:'''
 
'''Example syntax for HTTP:'''
  
  curl http://[ip][port]/[URI]
+
  curl http://[ip][port]/[...]
  
 
'''Example syntax for HTTPS:'''
 
'''Example syntax for HTTPS:'''
  
  curl <span style="color:#FF0000">-k</span> https://[ip][port]/[URI]
+
  curl '''-k''' https://[ip][port]/[...]
 
   
 
   
 
  -k to ignore certificate issues
 
  -k to ignore certificate issues
Line 16: Line 16:
 
'''Example to pass a host header'''
 
'''Example to pass a host header'''
  
  curl --header 'Host: [host]'  [http/https]://[ip][port]/[URI]
+
  curl --header 'Host: [host]'  [METHOD]://[ip][port]/[...]
  
 
Additional useful option
 
Additional useful option
Line 22: Line 22:
 
  -h for help
 
  -h for help
 
  -v for verbosity
 
  -v for verbosity
 +
 +
If different partitions are used, you might need to change the routing domain:
 +
rdexec <route domain id> command
 +
 +
==External links==
 +
* [https://support.f5.com/csp/article/K12531 K12531: Troubleshooting health monitors]
 +
* [https://support.f5.com/csp/article/K15408 K15408: Troubleshooting BIG-IP GTM monitors]
 +
* [https://support.f5.com/csp/article/K13472?sr=33700626 Userland applications in non-default route domains]

Latest revision as of 13:43, 7 February 2019

Back to Misc

cURL is a very useful tool when testing monitors

Example syntax for HTTP:

curl http://[ip][port]/[...]

Example syntax for HTTPS:

curl -k https://[ip][port]/[...]

-k to ignore certificate issues

Example to pass a host header

curl --header 'Host: [host]'  [METHOD]://[ip][port]/[...]

Additional useful option

-h for help
-v for verbosity

If different partitions are used, you might need to change the routing domain:

rdexec <route domain id> command

External links