ejabberd - Comments for "mod_ctlextra - Additional Commands for ejabberdctl" https://www.ejabberd.im/mod_ctlextra en Seems a bug. Try a simple workaround https://www.ejabberd.im/mod_ctlextra#comment-55633 <div class="quote-msg"> <div class="quote-author"><em>Mataemon</em> wrote:</div> <p>It seems it doesn't work (anymore?) with running ejabberd-2.1.3 (installed with .bin)</p></div> <p>The problem is in the ejabberdctl file included in the binary installers. As it must be cross-platform, it doesn't use the same tools and the source code package.</p> <p>I've submitted a ticket, including a quick and dirty solution that you can apply: <noindex><a href="https://support.process-one.net/browse/EJAB-1222" rel="nofollow" >Support for space in ejabberdctl of binary installers</a></noindex></p> Sat, 24 Apr 2010 12:16:49 +0000 mfoss comment 55633 at https://www.ejabberd.im set_vcard white spaces https://www.ejabberd.im/mod_ctlextra#comment-55626 <p>Hi,</p> <p>It seems it doesn't work (anymore?) with running ejabberd-2.1.3 (installed with .bin) and the svn check out of mod_admin_extra.<br /> I tried : </p> <div class="codeblock"><code>ejabberdctl set_vcard test FN &quot;Bla bla&quot; <p>ejabberdctl set_vcard test FN \&quot;Bla bla\&quot;</p> <p>ejabberdctl set_vcard test FN &quot;Bla\ bla&quot;</p> <p>ejabberdctl set_vcard test FN \&quot;Bla\ bla\&quot;</p></code></div> <p>(on a Scientific Linux 5.3 (same as Red Hat Entreprise Linux 5.3, and surely CentOS...))</p> <p>I did something wrong? (I don't know Erlang at all...)</p> <p>Thank you in advance</p> Thu, 22 Apr 2010 15:39:04 +0000 Mataemon comment 55626 at https://www.ejabberd.im Try mod_admin_extra https://www.ejabberd.im/mod_ctlextra#comment-55345 <p>I noticed that mod_ctlextra can't work with ejabberd 2.1.0 or newer. I've updated the module documentation. Use mod_admin_extra instead.</p> <p>Regarding the module start, this works for me:</p> <pre> $ ejabberdctl start $ ejabberdctl debug ... (ejabberd@galleta)1&gt; mod_admin_extra:start("example.com", []). ok </pre> Mon, 01 Mar 2010 10:14:38 +0000 mfoss comment 55345 at https://www.ejabberd.im works not in ejabberd 2.1.2 with remsh https://www.ejabberd.im/mod_ctlextra#comment-55339 <p>I have the problem, that I can't start the module from erlang shell.</p> <pre>Erlang R13B03 (erts-5.7.4) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false] Eshell V5.7.4 (abort with ^G) 1&gt; ejabberd_config:load_file("/usr/local/etc/ejabberd/ejabberd.cfg"). 5&gt; l(mod_ctlextra). {module,mod_ctlextra} 15&gt; mod_ctlextra:start("example.com", []). ** exception error: bad argument in function ets:insert/2 called as ets:insert(ejabberd_ctl_cmds, [{"compile file","recompile and reload file"}, {"load-config file","load config from file"}, {"remove-node nodename", "remove an ejabberd node from the database"}, {"delete-older-users days", "delete users that have not logged in the last 'days'"}, {"delete-older-users-vhost host days", "delete users that not logged in last 'days' in 'host'"}, {"set-password user server password", "set password to user@server"}, {"export2odbc server output", "export Mnesia tables on server to files on output directory"}, {"srg-create group host name description display", "create the group with options"}, {"srg-delete group host","delete the group"}, {"srg-user-add user server group host", "add user@server to group on host"}, {"srg-user-del user server group host", "delete user@server from group on host"}, {"srg-list-groups host", "list the shared roster groups from host"}, {"srg-get-info group host", "get info of a specific group on host"}, {"vcard-get user host data [data2]", "get data from the vCard of the user"}, {"vcard-set user host data [data2] content", "set data to content on the vCard"}, {"add-rosteritem user1 server1 user2 server2 nick group subs", "Add user2@server2 to user1@server1's roster"}, {"rem-rosteritem user1 server1 user2 server2", "Remove user2@server2 from user1@server1's roster"}, {"rosteritem-purge [options]", "Purge all rosteritems that match filtering options"}, {"pushroster file user server", "push template roster in file to user@server"}, {"pushroster-all file", "push template roster in file to all those users"}, {"push-alltoall server group", "adds all the users to all the users in Group"}, {"status-list status","list the logged users with status"}, {"status-num status","number of logged users with status"}, {"stats registeredusers","number of registered users"}, {"stats onlineusers",[...]}, {[...],...}, {...}|...]) in call from ejabberd_ctl:register_commands/3 in call from mod_ctlextra:start/2</pre><p> I'm running a FreeBSD 7.2 Stable with ejabberd 2.1.2</p> Wed, 24 Feb 2010 19:30:35 +0000 louis comment 55339 at https://www.ejabberd.im 2.1.0-rc1 https://www.ejabberd.im/mod_ctlextra#comment-54756 <p>oo.. i see.. thanks ;)</p> Tue, 13 Oct 2009 08:26:44 +0000 chill comment 54756 at https://www.ejabberd.im Possible in the new ejabberd 2.0.1-rc1 + mod_admin_extra https://www.ejabberd.im/mod_ctlextra#comment-54730 <p>I think not possible in ejabberd 2.0.5 + mod_ctlextra.</p> <p>Good news are: it is possible using ejabberd 2.1.0-rc1 + mod_admin_extra. See:</p> <pre> $ ejabberdctl get_vcard badlop localhost NICKNAME Nickname1 $ ejabberdctl set_vcard badlop localhost NICKNAME \"My second Nickname 2\" $ ejabberdctl get_vcard badlop localhost NICKNAME My second Nickname 2 </pre> Fri, 09 Oct 2009 19:22:25 +0000 mfoss comment 54730 at https://www.ejabberd.im the white-spaces? https://www.ejabberd.im/mod_ctlextra#comment-54729 <p>how can i make whitespaces in NICKNAME for example:</p> <p>...vcard-set user1 server1 NICKNAME first second?</p> Fri, 09 Oct 2009 15:23:44 +0000 chill comment 54729 at https://www.ejabberd.im Thanks https://www.ejabberd.im/mod_ctlextra#comment-54055 <p>Thanks for the quick response. This feature allows us to do some very nice things with shared rosters based on ldap.</p> Fri, 06 Mar 2009 16:09:57 +0000 ian comment 54055 at https://www.ejabberd.im Newlines in ejabberdctl arguments: supported in trunk SVN https://www.ejabberd.im/mod_ctlextra#comment-54054 <p>It seems ejabberdctl of ejabberd 2.0.x + mod_ctlextra does not support anyway to represent newlines inside arguments.</p> <p>The good news is that ejabberdctl in ejabberd trunk SVN + mod_admin_extra supports it:</p> <pre> $ ejabberdctl help srg_create Command Name: srg_create Arguments: group::string host::string name::string description::string display::string Returns: res::rescode Tags: shared_roster_group Description: Create a Shared Roster Group If you want to specify several group identifiers in the Display argument, put \ " around the argument and separate the identifiers with \ \ n For example: ejabberdctl srg_create group3 localhost name desc \"group1\\ngroup2\" $ ejabberdctl srg_create everybody example.com \"Everybody\" \"Consists of both faculty and students\" \"faculty\\nstudents\" $ ejabberdctl srg_get_info everybody example.com name "Everybody" displayed_groups ["faculty","students"] description "Consists of both faculty and students" </pre><p> You can get and compile ejabberd trunk SVN, or wait for ejabberd 2.1.0, but the release doesn't have fixed date (it may be weeks or a few months).</p> Fri, 06 Mar 2009 12:34:00 +0000 mfoss comment 54054 at https://www.ejabberd.im Yes you are right. That hack https://www.ejabberd.im/mod_ctlextra#comment-54052 <p>Yes you are right. That hack is not working. I actually saw the displayed groups list through the webadmin interface and as they were displayed in separate lines, I thought that they were added properly. But they are not.</p> Fri, 06 Mar 2009 09:43:59 +0000 amaramrahul comment 54052 at https://www.ejabberd.im Doesn't work. https://www.ejabberd.im/mod_ctlextra#comment-54050 <p>I tried the above. When I 'ejabberdctl srg-get-info everybody X' I see:</p> <p> displayed_groups: ["faculty\nstudents"]</p> <p>instead of:</p> <p> displayed_groups: ["faculty", "students"]</p> Thu, 05 Mar 2009 19:00:10 +0000 ian comment 54050 at https://www.ejabberd.im Assuming that faculty and https://www.ejabberd.im/mod_ctlextra#comment-53861 <p>Assuming that "faculty" and "students" are two existing groups and you want to create a new group "everybody" having both these groups as display groups, this is what you can do:</p> <p>ejabberdctl srg-create everybody example.com "Everybody" "Consists of both faculty and students" "`echo -e 'faculty\nstudents'`"</p> Sat, 20 Dec 2008 14:20:34 +0000 amaramrahul comment 53861 at https://www.ejabberd.im branch Ok https://www.ejabberd.im/mod_ctlextra#comment-53241 <p>Great! the branch works fine.</p> <p>Thank you for your reactivity!</p> Mon, 02 Jun 2008 16:23:59 +0000 Mataemon comment 53241 at https://www.ejabberd.im Try 1.1.x branch of the module https://www.ejabberd.im/mod_ctlextra#comment-53240 <p>Yes, recently trunk/mod_ctlextra was updated to be compatible with ejabberd 2.0.0, and it broke compatibility with old ejabberd 1.1.x.</p> <p>I've created a branch of the module, try it: ejabberd-modules/mod_ctlextra/branches/ejabberd-1.1.x</p> Mon, 02 Jun 2008 15:59:19 +0000 mfoss comment 53240 at https://www.ejabberd.im status-list command https://www.ejabberd.im/mod_ctlextra#comment-53237 <p>Hi,</p> <p>I used the status-list command of revision 36 or 364, and it worked fine.<br /> But with the latest revision it doesn't :</p> <div class="codeblock"><code>=ERROR REPORT==== 2-Jun-2008::15:27:23 ===<br />E(&lt;3916.526.0&gt;:ejabberd_hooks:187): {{badrecord,session},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [{mod_ctlextra,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#039;-get_status_list/2-lc$^0/1-0-&#039;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1},<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {rpc,&#039;-handle_call/3-fun-0-&#039;,5}]}<br />running hook: {ejabberd_ctl_process,[[&quot;status-list&quot;,&quot;all&quot;]]}<br />** at node ejabberd@localhost **</code></div> <p>I don't know erlang enough to try to debug.<br /> I am running the debian stable version of ejabberd (1.1.2).</p> Mon, 02 Jun 2008 13:51:57 +0000 Mataemon comment 53237 at https://www.ejabberd.im