def show_backends(socket='/var/run/haproxy.sock'):
 ha_conn = _get_conn(socket)
 ha_cmd = haproxy.cmds.showBackends()
 return ha_conn.sendCmd(ha_cmd)

def show_backends ( socket = '/var/run/haproxy.sock' ) : ha_conn = _get_conn ( socket ) ha_cmd = haproxy . cmds . showBackends ( ) return ha_conn . sendCmd ( ha_cmd )
show haproxy backends socket haproxy stats socket cli example: .