Software /
code /
prosody
Comparison
plugins/mod_admin_telnet.lua @ 10788:3fc4863227a9
mod_admin_telnet: Document (in the internal help) debug commands
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 Apr 2020 22:48:36 +0200 |
parent | 10787:459efb1afbfe |
child | 10789:e7eb33a5f8d9 |
comparison
equal
deleted
inserted
replaced
10787:459efb1afbfe | 10788:3fc4863227a9 |
---|---|
249 print [[user - Commands to create and delete users, and change their passwords]] | 249 print [[user - Commands to create and delete users, and change their passwords]] |
250 print [[server - Uptime, version, shutting down, etc.]] | 250 print [[server - Uptime, version, shutting down, etc.]] |
251 print [[port - Commands to manage ports the server is listening on]] | 251 print [[port - Commands to manage ports the server is listening on]] |
252 print [[dns - Commands to manage and inspect the internal DNS resolver]] | 252 print [[dns - Commands to manage and inspect the internal DNS resolver]] |
253 print [[xmpp - Commands for sending XMPP stanzas]] | 253 print [[xmpp - Commands for sending XMPP stanzas]] |
254 print [[debug - Commands for debugging the server]] | |
254 print [[config - Reloading the configuration, etc.]] | 255 print [[config - Reloading the configuration, etc.]] |
255 print [[console - Help regarding the console itself]] | 256 print [[console - Help regarding the console itself]] |
256 elseif section == "c2s" then | 257 elseif section == "c2s" then |
257 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] | 258 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] |
258 print [[c2s:show_insecure() - Show all unencrypted client connections]] | 259 print [[c2s:show_insecure() - Show all unencrypted client connections]] |
297 elseif section == "xmpp" then | 298 elseif section == "xmpp" then |
298 print [[xmpp:ping(localhost, remotehost) -- Sends a ping to a remote XMPP server and reports the response]] | 299 print [[xmpp:ping(localhost, remotehost) -- Sends a ping to a remote XMPP server and reports the response]] |
299 elseif section == "config" then | 300 elseif section == "config" then |
300 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] | 301 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] |
301 print [[config:get([host,] option) - Show the value of a config option.]] | 302 print [[config:get([host,] option) - Show the value of a config option.]] |
303 elseif section == "debug" then | |
304 print [[debug:logevents(host) - Enable logging of fired events on host]] | |
305 print [[debug:events(host, event) - Show registered event handlers]] | |
306 print [[debug:timers() - Show information about scheduled timers]] | |
302 elseif section == "console" then | 307 elseif section == "console" then |
303 print [[Hey! Welcome to Prosody's admin console.]] | 308 print [[Hey! Welcome to Prosody's admin console.]] |
304 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] | 309 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] |
305 print [[Secondly, note that we don't support the full telnet protocol yet (it's coming)]] | 310 print [[Secondly, note that we don't support the full telnet protocol yet (it's coming)]] |
306 print [[so you may have trouble using the arrow keys, etc. depending on your system.]] | 311 print [[so you may have trouble using the arrow keys, etc. depending on your system.]] |