{"id":599,"date":"2011-11-02T20:27:39","date_gmt":"2011-11-02T20:27:39","guid":{"rendered":"https:\/\/fir3netwp.gmsrrpobkbd.com\/2011\/11\/02\/brocade-adx-configuring-a-port-policy\/"},"modified":"2021-07-24T18:24:38","modified_gmt":"2021-07-24T18:24:38","slug":"brocade-adx-configuring-a-port-policy","status":"publish","type":"post","link":"https:\/\/www.fir3net.com\/Loadbalancers\/Brocade\/brocade-adx-configuring-a-port-policy.html","title":{"rendered":"Brocade ADX – Configuring a Port Policy"},"content":{"rendered":"

Summary<\/strong><\/h2>\n

Typically health-checks are assigned on a per virtual server basis. However this can become cumbersome if you have a large number of virtual servers configured.
Via the use of a Port Policy health-checks are configured within the Port Policy. The Port Policy is then assigned to multiple Virtual Servers.<\/p>\n

Syntax<\/strong><\/h2>\n

Below shows the required commands (note: this example uses the ‘protocol http url<\/span>‘ command to build a HTTP GET request with the Headers Host and User-Agent):<\/p>\n

http match-list matchlist1
  default down
  up simple \"STRING1\" log

server port-policy PORTPOLICY1
  protocol http
  protocol http url \"GET \/index.html HTTP\/1.1\\r\\nHost:[domain].com\\r\\nUser-Agent:ADX\\r\\n\\r\\n\"
  protocol http content-match matchlist1
 
server virtual VS-TEST1 192.168.200.1
  port http
  port http use-port-policy PORTPOLICY1<\/pre>\n

Tips<\/strong><\/h2>\n