=head1 NAME

ngcp-ha-host-state - prints the current HA state for the requested host

=head1 SYNOPSIS

B<ngcp-ha-host-state> [I<options>...] [I<host>]

=head1 DESCRIPTION

This program prints the current HA state for the requested host,
which can be one of B<up>, B<down> or B<unknown>, depending on whether
the host is reachable or not.

The I<host> defaults to B<localhost> if not specified.

=head1 EXIT STATUS

Exit code 0 means the host is B<up>, 1 when the host is B<down>,
and 2 when the host state is B<unknown>.

=head1 SEE ALSO

B<pacemaker>(8).

=head1 BUGS AND LIMITATIONS

Please report problems you notice to the Sipwise
Development Team <support@sipwise.com>.

=head1 AUTHOR

Guillem Jover <gjover@sipwise.com>

=head1 LICENSE

Copyright (C) 2020-2022 Sipwise GmbH, Austria

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
