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

listsockets

From ZNC
Jump to navigation Jump to search


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

Arguments

This user module takes no arguments.

Read loading modules to learn more about loading modules.

Commands

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

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> +----------------------+---------------------+----------+-----+----------------+---------------------------+