otherapps.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="otherapps" xmlns:xi="http://www.w3.org/2001/XInclude">
  5. <sectioninfo>
  6. <revhistory>
  7. <revision>
  8. <revnumber>$Revision$</revnumber>
  9. <date>$Date$</date>
  10. </revision>
  11. </revhistory>
  12. </sectioninfo>
  13. <title>Complementary Applications</title>
  14. <section id="serctl">
  15. <title><application>serctl</application> command-line tool</title>
  16. <para>
  17. <application>serctl</application> is a command-line utility which allows to
  18. perform most of management tasks needed to operate
  19. <application>ser</application>: adding users, changing their passwords,
  20. watching server status, etc. Usage of utility is
  21. as follows:
  22. <example>
  23. <title><application>serctl</application> usage</title>
  24. <programlisting>
  25. usage:
  26. * subscribers *
  27. serctl add &lt;username&gt; &lt;password&gt; &lt;email&gt; .. add a new subscriber (*)
  28. serctl passwd &lt;username&gt; &lt;passwd&gt; ......... change user's password (*)
  29. serctl rm &lt;username&gt; ...................... delete a user (*)
  30. serctl mail &lt;username&gt; .................... send an email to a user
  31. serctl alias show [&lt;alias&gt;] ............... show aliases
  32. serctl alias rm &lt;alias&gt; ................... remove an alias
  33. serctl alias add &lt;alias&gt; &lt;uri&gt; ............ add an aliases
  34. * access control lists *
  35. serctl acl show [&lt;username&gt;] .............. show user membership
  36. serctl acl grant &lt;username&gt; &lt;group&gt; ....... grant user membership (*)
  37. serctl acl revoke &lt;username&gt; [&lt;group&gt;] .... grant user membership(s) (*)
  38. * usrloc *
  39. serctl ul show [&lt;username&gt;]................ show in-RAM online users
  40. serctl ul rm &lt;username&gt; ................... delete user's UsrLoc entries
  41. serctl ul add &lt;username&gt; &lt;uri&gt; ............ introduce a permanent UsrLoc entry
  42. serctl showdb [&lt;username&gt;] ................ show online users flushed in DB
  43. * server health *
  44. serctl monitor ............................ show internal status
  45. serctl ps ................................. show running processes
  46. serctl fifo ............................... send raw commands to FIFO
  47. Commands labeled with (*) will prompt for a MySQL password.
  48. If the variable PW is set, the password will not be prompted.
  49. </programlisting>
  50. </example>
  51. </para>
  52. <note>
  53. <para>
  54. Prior to using the utility, you have to first
  55. set the environment variable <constant>SIP_DOMAIN</constant>
  56. to locally appropriate value (e.g., "foo.com"). It is
  57. needed for calculation of user credentials, which depend
  58. on SIP digest realm.
  59. (see also <link linkend="msmbug">MSM Authentication Issue</link>)
  60. </para>
  61. </note>
  62. <example>
  63. <title>Example Output of Server Watching Command
  64. <command>sc monitor</command>
  65. </title>
  66. <programlisting>
  67. [cycle #: 2; if constant make sure server lives and fifo is on]
  68. Server: Sip EXpress router(0.8.8 (i386/linux))
  69. Now: Thu Sep 26 23:16:48 2002
  70. Up Since: Thu Sep 26 12:35:27 2002
  71. Up time: 38481 [sec]
  72. Transaction Statistics
  73. Current: 0 (0 waiting) Total: 606 (0 local)
  74. Replied localy: 34
  75. Completion status 6xx: 0, 5xx: 1, 4xx: 86, 3xx: 0,2xx: 519
  76. Stateless Server Statistics
  77. 200: 6218 202: 0 2xx: 0
  78. 300: 0 301: 0 302: 0 3xx: 0
  79. 400: 0 401: 7412 403: 2 404: 1258 407: 116 408: 0 483: 0 4xx: 25 500: 0 5xx: 0
  80. 6xx: 0
  81. xxx: 0
  82. failures: 0
  83. UsrLoc Stats
  84. Domain Registered Expired
  85. 'aliases' 9 0
  86. 'location' 29 17
  87. </programlisting>
  88. </example>
  89. </section>
  90. <section id="serweb">
  91. <title>Web User Provisioning -- <application>serweb</application></title>
  92. <para>
  93. To make provisioning of user accounts convenient,
  94. a web front-end to <application>ser</application>,
  95. <application>serweb</application> has been
  96. developed. <application>serweb</application>,
  97. a PHP-written web application,
  98. allows users to apply for new <application>ser</application>
  99. accounts, and maintain these.
  100. Users can manipulate their contacts, keep a phone-book
  101. with SIP addresses, change password, send instant SIP messages,
  102. and more. Administrators can manipulate any accounts and
  103. grant or revoke user privileges.
  104. </para>
  105. <para>
  106. <application>serweb</application> is freely
  107. available from berlios site at
  108. <ulink url="http://developer.berlios.de/cvs/?group_id=500">
  109. http://developer.berlios.de/cvs/?group_id=500</ulink>. Installation
  110. takes unpacking tarball to a safe destination at web server
  111. (better not in the HTML tree) and configuring
  112. <filename>config.php</filename> accordingly
  113. to local conditions.
  114. </para>
  115. <para>
  116. Running <application>serweb</application> can
  117. be seen at iptel.org's SIP site. Just create and use a SIP
  118. account at <ulink url="http://www.iptel.org/user/">http://www.iptel.org/user/</ulink>
  119. </para>
  120. </section> <!-- serweb -->
  121. </section>