{"id":763,"date":"2013-04-01T00:00:00","date_gmt":"2013-04-01T00:00:00","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2013\/04\/01\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck\/"},"modified":"2023-01-06T17:09:32","modified_gmt":"2023-01-06T17:09:32","slug":"brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html","title":{"rendered":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck"},"content":{"rendered":"

The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element groups.<\/p>\n

The main caveat when using a port profile is that you can only bind a non well-known port to the healthcheck of a well known port.
\nAnd also that the configuration for the port is global across the ADX.<\/p>\n

Within this article we will focus on the configuration steps for configuring healthcheck elements.<\/p>\n

Configuration<\/strong><\/h2>\n

The configuration is pretty standard. You configure your healthchecks and assign them to your real servers.
\nThe key command, however, is ‘hc-track-port 80 443’. This command instructs the ADX to track the health status of the master port (in this case 80) and bind the health to a secondary port (in this case port 443).
\nThis ensures if the master port goes down traffic is also not sent to the secondary port.<\/p>\n

healthck 192.168.100.1-hc tcp\r\n\u00a0 dest-ip 192.168.100.1\r\n\u00a0 port http\r\n\u00a0 protocol http\r\n\u00a0 protocol http url \"GET \/healthcheck.html\"\r\n\u00a0 l7-check\r\n!\r\n healthck 192.168.100.2-hc tcp\r\n\u00a0 dest-ip 192.168.100.2\r\n\u00a0 port http\r\n\u00a0 protocol http\r\n\u00a0 protocol http url \"GET \/healthcheck.html\"\r\n\u00a0 l7-check\r\n!\r\n server real web1_192.168.100.1 192.168.100.1\r\n\u00a0port http\r\n\u00a0port http healthck 192.168.100.1-hc\r\n\u00a0port http keepalive\r\n\u00a0port http url \"GET \/\"\r\n\u00a0port ssl\r\n\u00a0port ssl keepalive\r\n\u00a0hc-track-port 80 443\r\n!\r\nserver real web2_192.168.100.2 192.168.100.2\r\n\u00a0port http\r\n\u00a0port http healthck 192.168.100.2-hc\r\n\u00a0port http keepalive\r\n\u00a0port http url \"GET \/\"\r\n\u00a0port ssl\r\n\u00a0port ssl keepalive\r\n\u00a0hc-track-port 80 443<\/pre>\n

Gotcha<\/strong><\/h2>\n

Based on the configuration above consider the following scenario. Port 80 is marked as failed for a real server after the port failed its healthcheck. However when running a ‘show server bind’ you notice that ssl is still showing as active even though you have grouped these 2 ports via the use of the ‘hc-track-port’ command.<\/p>\n

SSH@ADX# show hc-track-port-state\r\nReal Server\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 track-port\u00a0\u00a0 state<\/pre>\n

web1_192.168.100.1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80 443\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DOWN
\nweb2_192.168.100.2\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 80 443\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ACTIVE<\/p>\n

Based on this output, you can see that the group is marked as ‘DOWN’. Meaning that the ADX will not send any traffic to either port 80 or 443, even though the port shows as active within ‘show server bind’.<\/p>\n","protected":false},"excerpt":{"rendered":"

The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element groups. The main caveat when using a port profile is that you can only bind a non well-known port to the healthcheck of a well known port. And … Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"yoast_head":"\nBrocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net<\/title>\n<meta name=\"description\" content=\"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Brocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net\" \/>\n<meta property=\"og:description\" content=\"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\" \/>\n<meta property=\"og:site_name\" content=\"Fir3net\" \/>\n<meta property=\"article:published_time\" content=\"2013-04-01T00:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-06T17:09:32+00:00\" \/>\n<meta name=\"author\" content=\"Rick Donato\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rick Donato\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\"},\"author\":{\"name\":\"Rick Donato\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\"},\"headline\":\"Brocade ADX: Bind Multiple Ports to a Single Healthcheck\",\"datePublished\":\"2013-04-01T00:00:00+00:00\",\"dateModified\":\"2023-01-06T17:09:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\"},\"wordCount\":255,\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"articleSection\":[\"Brocade Loadbalancers\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\",\"url\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\",\"name\":\"Brocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net\",\"isPartOf\":{\"@id\":\"https:\/\/www.fir3net.com\/#website\"},\"datePublished\":\"2013-04-01T00:00:00+00:00\",\"dateModified\":\"2023-01-06T17:09:32+00:00\",\"description\":\"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element\",\"breadcrumb\":{\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.fir3net.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Networking\",\"item\":\"https:\/\/www.fir3net.com\/networking\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Loadbalancers\",\"item\":\"https:\/\/www.fir3net.com\/networking\/loadbalancers\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Brocade Loadbalancers\",\"item\":\"https:\/\/www.fir3net.com\/networking\/loadbalancers\/brocade\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Brocade ADX: Bind Multiple Ports to a Single Healthcheck\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.fir3net.com\/#website\",\"url\":\"https:\/\/www.fir3net.com\/\",\"name\":\"Fir3net\",\"description\":\"Keeping you in the know\",\"publisher\":{\"@id\":\"https:\/\/www.fir3net.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.fir3net.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.fir3net.com\/#organization\",\"name\":\"Fir3net\",\"url\":\"https:\/\/www.fir3net.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"contentUrl\":\"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png\",\"width\":390,\"height\":88,\"caption\":\"Fir3net\"},\"image\":{\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037\",\"name\":\"Rick Donato\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g\",\"caption\":\"Rick Donato\"},\"description\":\"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net","description":"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html","og_locale":"en_US","og_type":"article","og_title":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net","og_description":"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element","og_url":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html","og_site_name":"Fir3net","article_published_time":"2013-04-01T00:00:00+00:00","article_modified_time":"2023-01-06T17:09:32+00:00","author":"Rick Donato","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Rick Donato","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#article","isPartOf":{"@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html"},"author":{"name":"Rick Donato","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037"},"headline":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck","datePublished":"2013-04-01T00:00:00+00:00","dateModified":"2023-01-06T17:09:32+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html"},"wordCount":255,"publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"articleSection":["Brocade Loadbalancers"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html","url":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html","name":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck - Fir3net","isPartOf":{"@id":"https:\/\/www.fir3net.com\/#website"},"datePublished":"2013-04-01T00:00:00+00:00","dateModified":"2023-01-06T17:09:32+00:00","description":"The Brocade ADX offers two methods for binding multiple ports to a single healthcheck ; via the use of a port profile or by using healthcheck element","breadcrumb":{"@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-how-do-i-bind-multiple-ports-to-a-single-healthcheck.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fir3net.com\/"},{"@type":"ListItem","position":2,"name":"Networking","item":"https:\/\/www.fir3net.com\/networking"},{"@type":"ListItem","position":3,"name":"Loadbalancers","item":"https:\/\/www.fir3net.com\/networking\/loadbalancers"},{"@type":"ListItem","position":4,"name":"Brocade Loadbalancers","item":"https:\/\/www.fir3net.com\/networking\/loadbalancers\/brocade"},{"@type":"ListItem","position":5,"name":"Brocade ADX: Bind Multiple Ports to a Single Healthcheck"}]},{"@type":"WebSite","@id":"https:\/\/www.fir3net.com\/#website","url":"https:\/\/www.fir3net.com\/","name":"Fir3net","description":"Keeping you in the know","publisher":{"@id":"https:\/\/www.fir3net.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fir3net.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fir3net.com\/#organization","name":"Fir3net","url":"https:\/\/www.fir3net.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","contentUrl":"https:\/\/www.fir3net.com\/wp-content\/uploads\/Fir3net-Background-Logo-compressed.png","width":390,"height":88,"caption":"Fir3net"},"image":{"@id":"https:\/\/www.fir3net.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/ab35009601b7687ee1c5310be6038037","name":"Rick Donato","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fir3net.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d75d69a54c0ca3b32c24c3a9703b623c?s=96&d=mm&r=g","caption":"Rick Donato"},"description":"Rick Donato is a Network Automation Architect\/Evangelist and the founder of Packet Coders."}]}},"_links":{"self":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/763"}],"collection":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/comments?post=763"}],"version-history":[{"count":2,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/763\/revisions"}],"predecessor-version":[{"id":3480,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/posts\/763\/revisions\/3480"}],"wp:attachment":[{"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/media?parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/categories?post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fir3net.com\/wp-json\/wp\/v2\/tags?post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}