Navigation


Changes between Initial Version and Version 1 of Usage


Ignore:
Timestamp:
Mar 1, 2011, 11:28:25 AM (13 years ago)
Author:
Sebastien Decugis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Usage

    v1 v1  
     1= Usage =
     2
     3The freeDiameter daemon ({{{freeDiameterd}}}) accepts the following command-line arguments (all are optional):
     4 {{{-h}}} or {{{--help}}}::
     5   Displays this usage and exits.
     6
     7 {{{-V}}} or {{{--version}}}::
     8   Displays the version of the daemon and exits.
     9
     10 {{{-c /path/to/conf}}} or {{{--config=path/to/conf}}}::
     11   Use the ''/path/to/conf'' configuration file instead of [wiki:Installation#cmakeflags ${DEFAULT_CONF_PATH}]/freeDiameter.conf (use {{{-h}}} to see what the default prefix is).
     12
     13 {{{-d}}}, {{{-q}}}, {{{--debug}}} or {{{--quiet}}}::
     14   Increases or decreases the verbosity of the debug messages. The flags can be specified several times. See [wiki:Troubleshooting] page for more information.
     15
     16The additional command-line options bellow are also available, but only if the daemon has been compiled in the "Debug" configuration ({{{-DCMAKE_BUILD_TYPE:STRING=Debug}}}):
     17
     18 {{{-f funcname}}} or {{{--dbg_func=funcname}}}::
     19   The debug level will be set to maximum only inside functions with the name ''funcname''. Since this is dynamically evaluated, it works even with static functions and extension functions (that use debug macro from the library), but it is also quite slow. To get detailed information about the handling of incoming messages, you might use for example:
     20{{{
     21$ freeDiameterd --dbg_func=msg_rt_in
     22}}}
     23
     24 {{{-F filename}}} or {{{--dbg_file=filename}}}::
     25   Same as previous one, but all functions from the file ''filename'' will be logged at maximum trace level. Only the basename is compared, ignoring the path, as follow:
     26{{{
     27$ freeDiameterd --dbg_file=app_acct.c
     28}}}
     29
     30At the moment, all debug messages from the {{{freeDiameter}}} daemon are sent to {{{stdout}}}. If you want to capture them in a file, you should redirect the stream as follow:
     31{{{
     32$ freeDiameterd -dd > ~/fD.log 2>&1
     33}}}
     34Or, using the command {{{tee}}}:
     35{{{
     36$ freeDiameterd -dd 2>&1 | tee -i ~/fD.log
     37}}}
     38
     39----