Comparison

plugins/mod_admin_telnet.lua @ 10087:36d3709603d1

mod_admin_telnet: Add xmpp:ping to help
author Kim Alvefur <zash@zash.se>
date Fri, 26 Jul 2019 21:13:17 +0200
parent 10086:4ade3674baf0
child 10094:6b1e89868328
comparison
equal deleted inserted replaced
10086:4ade3674baf0 10087:36d3709603d1
237 print [[host - Commands to activate, deactivate and list virtual hosts]] 237 print [[host - Commands to activate, deactivate and list virtual hosts]]
238 print [[user - Commands to create and delete users, and change their passwords]] 238 print [[user - Commands to create and delete users, and change their passwords]]
239 print [[server - Uptime, version, shutting down, etc.]] 239 print [[server - Uptime, version, shutting down, etc.]]
240 print [[port - Commands to manage ports the server is listening on]] 240 print [[port - Commands to manage ports the server is listening on]]
241 print [[dns - Commands to manage and inspect the internal DNS resolver]] 241 print [[dns - Commands to manage and inspect the internal DNS resolver]]
242 print [[xmpp - Commands for sending XMPP stanzas]]
242 print [[config - Reloading the configuration, etc.]] 243 print [[config - Reloading the configuration, etc.]]
243 print [[console - Help regarding the console itself]] 244 print [[console - Help regarding the console itself]]
244 elseif section == "c2s" then 245 elseif section == "c2s" then
245 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] 246 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]]
246 print [[c2s:show_insecure() - Show all unencrypted client connections]] 247 print [[c2s:show_insecure() - Show all unencrypted client connections]]
280 print [[dns:lookup(name, type, class) - Do a DNS lookup]] 281 print [[dns:lookup(name, type, class) - Do a DNS lookup]]
281 print [[dns:addnameserver(nameserver) - Add a nameserver to the list]] 282 print [[dns:addnameserver(nameserver) - Add a nameserver to the list]]
282 print [[dns:setnameserver(nameserver) - Replace the list of name servers with the supplied one]] 283 print [[dns:setnameserver(nameserver) - Replace the list of name servers with the supplied one]]
283 print [[dns:purge() - Clear the DNS cache]] 284 print [[dns:purge() - Clear the DNS cache]]
284 print [[dns:cache() - Show cached records]] 285 print [[dns:cache() - Show cached records]]
286 elseif section == "xmpp" then
287 print [[xmpp:ping(localhost, remotehost) -- Sends a ping to a remote XMPP server and reports the response]]
285 elseif section == "config" then 288 elseif section == "config" then
286 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] 289 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]]
287 elseif section == "console" then 290 elseif section == "console" then
288 print [[Hey! Welcome to Prosody's admin console.]] 291 print [[Hey! Welcome to Prosody's admin console.]]
289 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] 292 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]]