To create new wiki account, please join us on #znc at freenode and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Difference between revisions of "Listsockets"

From ZNC
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:listsockets}} {{Extra Module}} This module displays a list of all open sockets in ZNC. This feature is not directly in the ZNC core, because it was decided th...")
 
m
 
Line 1: Line 1:
 
{{DISPLAYTITLE:listsockets}}
 
{{DISPLAYTITLE:listsockets}}
{{Extra Module}}
+
{{Core Module | version = 1.0}}
  
 
This module displays a list of all open sockets in ZNC.
 
This module displays a list of all open sockets in ZNC.

Latest revision as of 16:37, 7 November 2012


This module displays a list of all open sockets in ZNC.

This feature is not directly in the ZNC core, because it was decided that the code is too ugly to be added to the core.

Usage[edit]

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Commands[edit]

This module displays a list of all open sockets with the following command:

/msg *listsockets list

If you want IP addresses instead of hostnames, use this:

/msg *listsockets list -n

Example output[edit]

This is the output of /msg *listsockets list on one of my ZNCs:

<*listsockets> +----------------------+---------------------+----------+-----+----------------+---------------------------+
<*listsockets> | Name                 | Created             | State    | SSL | Local          | Remote                    |
<*listsockets> +----------------------+---------------------+----------+-----+----------------+---------------------------+
<*listsockets> | _LISTENER            | 2008-12-02 21:51:16 | Listen   | Yes | 0.0.0.0 1234   |                           |
<*listsockets> | WebAdmin::Listener   | 2008-12-03 12:55:26 | Listen   | Yes | 10.0.1.5 1235  |                           |
<*listsockets> | IRC::psycho-chat     | 2008-11-28 19:05:07 | Outbound | Yes | 10.0.1.5 46414 | irc.chatspike.net 6668    |
<*listsockets> | USR::psycho-chat     | 2008-12-15 13:41:09 | Inbound  | Yes | 10.0.1.5 1234  | 79.204.60.168 36636       |
<*listsockets> | IRC::psycho-freenode | 2008-10-27 13:40:49 | Outbound | No  | 10.0.1.5 39037 | chat.eu.freenode.net 6667 |
<*listsockets> | USR::psycho-freenode | 2008-12-15 13:41:11 | Inbound  | Yes | 10.0.1.5 1234  | 79.204.60.168 36635       |
<*listsockets> +----------------------+---------------------+----------+-----+----------------+---------------------------+