Comparison

plugins/mod_admin_telnet.lua @ 5270:20e14961f630

mod_admin_telnet: Add info about port commands to help
author Kim Alvefur <zash@zash.se>
date Wed, 26 Dec 2012 02:46:49 +0100
parent 5227:97f395938028
child 5278:f79be67e5666
comparison
equal deleted inserted replaced
5269:7bc52402966d 5270:20e14961f630
202 print [[s2s - Commands to manage sessions between this server and others]] 202 print [[s2s - Commands to manage sessions between this server and others]]
203 print [[module - Commands to load/reload/unload modules/plugins]] 203 print [[module - Commands to load/reload/unload modules/plugins]]
204 print [[host - Commands to activate, deactivate and list virtual hosts]] 204 print [[host - Commands to activate, deactivate and list virtual hosts]]
205 print [[user - Commands to create and delete users, and change their passwords]] 205 print [[user - Commands to create and delete users, and change their passwords]]
206 print [[server - Uptime, version, shutting down, etc.]] 206 print [[server - Uptime, version, shutting down, etc.]]
207 print [[port - Commands to manage ports the server is listening on]]
207 print [[config - Reloading the configuration, etc.]] 208 print [[config - Reloading the configuration, etc.]]
208 print [[console - Help regarding the console itself]] 209 print [[console - Help regarding the console itself]]
209 elseif section == "c2s" then 210 elseif section == "c2s" then
210 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]] 211 print [[c2s:show(jid) - Show all client sessions with the specified JID (or all if no JID given)]]
211 print [[c2s:show_insecure() - Show all unencrypted client connections]] 212 print [[c2s:show_insecure() - Show all unencrypted client connections]]
231 print [[user:list(hostname, pattern) - List users on the specified host, optionally filtering with a pattern]] 232 print [[user:list(hostname, pattern) - List users on the specified host, optionally filtering with a pattern]]
232 elseif section == "server" then 233 elseif section == "server" then
233 print [[server:version() - Show the server's version number]] 234 print [[server:version() - Show the server's version number]]
234 print [[server:uptime() - Show how long the server has been running]] 235 print [[server:uptime() - Show how long the server has been running]]
235 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]] 236 print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]]
237 elseif section == "port" then
238 print [[port:list() - Lists all network ports prosody currently listens on]]
239 print [[port:close(port, interface) - Close a port]]
236 elseif section == "config" then 240 elseif section == "config" then
237 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]] 241 print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]]
238 elseif section == "console" then 242 elseif section == "console" then
239 print [[Hey! Welcome to Prosody's admin console.]] 243 print [[Hey! Welcome to Prosody's admin console.]]
240 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]] 244 print [[First thing, if you're ever wondering how to get out, simply type 'quit'.]]