.. _sec-caps-server-testing:

Server and File Testing
=======================

Command-line options support you in testing the configuration of *caps* servers.
Read the help for a complete list or options:

.. code-block:: sh

   caps -h

For a general configuration test run *caps* on the command line with
``--configtest``:

.. code-block:: sh

   caps --configtest


Access configuration
--------------------

For testing the access from a specfic IP run *caps* on the command line with
``--print-access``. You may also test connections secured by user name and
password:

.. code-block:: sh

   caps --print-access GE.*.*.* 127.0.0.1
   caps --print-access GE.APE.*.* --user gempa:gempa 127.0.0.1


Server operation
----------------

You may also test the functioning of the caps server using :ref:`capstool`, the
:ref:`telnet interface <sec-caps-client-interface>` or the
:ref:`web interface <sec-caps-web-interface>`.


File testing
------------

Files stored by the server in the :ref:`caps archive <sec-archive>` may be
directly tested using :ref:`rifftool` and retrieved using :ref:`capstool`.
