HAProxy community

How to get HA Proxy status in command line

I need command that i can fire in linux and get status of haproxy server like Active , inactive?
I need to use that command in batch file and get status in variable.

Please read the management guide, especially section 9:

https://cbonte.github.io/haproxy-dconv/1.8/management.html#9

Can you provide one liner answer?

No, the documentation exists for a reason, please don’t offload that to the community. Thanks.