ejabberd - Comments for "SQL administrative scripts" https://www.ejabberd.im/node/3760 en Yes https://www.ejabberd.im/node/3760#comment-55081 <div class="quote-msg"> <div class="quote-author">Quote:</div> <p>Also I noticed that table "last" contains less entries comparing to the table "users". Is this because users never logged in do not get an entry in "last"?</p></div> <p>Yes, that's the reason.</p> Mon, 28 Dec 2009 11:23:37 +0000 mfoss comment 55081 at https://www.ejabberd.im ejabberdctl unregister works now :) https://www.ejabberd.im/node/3760#comment-55080 <p>Ah... This works:</p> <p><code>ejabberdctl unregister username jabberdomain.tld</code></p> <p>:-)</p> <p>But could please somebody tell me about the questions regarding the tables? Thanks! :-)</p> Mon, 28 Dec 2009 11:15:00 +0000 Roi comment 55080 at https://www.ejabberd.im Some questions about inactive users and cmdline command https://www.ejabberd.im/node/3760#comment-55079 <p>Hello all,</p> <p>I'm thinking about reading the MySQL database to look for inactive users.</p> <p>I want to check the table "last". Everything in seconds (unix timestamp) which is older than x days gets deleted.</p> <p>Also I noticed that table "last" contains less entries comparing to the table "users". Is this because users never logged in do not get an entry in "last"?</p> <p>After the list with inactive users is complete I want to run a cmdline command for every user to delete those users.</p> <p>This command does not work:</p> <p><code>ejabberdctl unregister <noindex><a href="mailto:username@jabberdomain.tld" rel="nofollow" >username@jabberdomain.tld</a></noindex> ejabberd@servername</code></p> <p>Is this the right command?</p> <p>Kindest regards,<br /> Martin</p> Mon, 28 Dec 2009 10:55:19 +0000 Roi comment 55079 at https://www.ejabberd.im Deleted 0 users https://www.ejabberd.im/node/3760#comment-54921 <p>Too bad, did not work:</p> <p>&gt; ejabberdctl delete-older-users 365<br /> &gt; Deleted 0 users: []</p> <p>Any ideas?</p> Thu, 19 Nov 2009 15:28:45 +0000 Roi comment 54921 at https://www.ejabberd.im mod_ctlextra / mod_admin_extra and mod_cron https://www.ejabberd.im/node/3760#comment-54917 <p>&gt; remove inactive users automaticly</p> <p>mod_ctlextra/mod_admin_extra provide an ejabberdctl command to remove accounts that were unused in last X days. But I only tested it using internal auth. You can at least try it. If so, please comment if it works or not when using a different auth method.</p> <p>Regarding periodic calling this command, you can either set a cron task, or use mod_cron.</p> Wed, 18 Nov 2009 22:03:00 +0000 mfoss comment 54917 at https://www.ejabberd.im