Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 1 | gerrit show-connections |
| 2 | ======================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
| 6 | gerrit show-connections - Display active client SSH connections |
| 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 10 | -- |
Edwin Kempin | 73b2698 | 2012-07-16 13:53:22 +0200 | [diff] [blame] | 11 | 'ssh' -p <port> <host> 'gerrit show-connections' [--numeric | -n] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 12 | -- |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
| 16 | Presents a table of the active SSH connections, the users who |
| 17 | are currently connected to the internal server and performing |
| 18 | an activity. |
| 19 | |
| 20 | ACCESS |
| 21 | ------ |
Shawn O. Pearce | 7f48514 | 2011-06-16 13:49:42 -0700 | [diff] [blame] | 22 | Caller must be a member of the privileged 'Administrators' group, |
Fredrik Luthander | 4860300 | 2012-03-21 18:17:17 +0100 | [diff] [blame] | 23 | or have been granted |
| 24 | link:access-control.html#capability_viewConnections[the 'View Connections' global capability]. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 25 | |
| 26 | SCRIPTING |
| 27 | --------- |
| 28 | Intended for interactive use only. |
| 29 | |
| 30 | OPTIONS |
| 31 | ------- |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 32 | --numeric:: |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 33 | -n:: |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 34 | Show client hostnames as IP addresses instead of DNS hostname. |
| 35 | |
Doug Kelly | 6599d77 | 2013-06-11 01:36:31 -0500 | [diff] [blame] | 36 | --wide:: |
| 37 | -w:: |
| 38 | Do not format the output to the terminal width (default of |
| 39 | 80 columns). |
| 40 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 41 | DISPLAY |
| 42 | ------- |
| 43 | |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 44 | Session:: |
| 45 | Unique session identifier on this server. Session |
Shawn O. Pearce | 4776924 | 2011-06-14 16:40:48 -0700 | [diff] [blame] | 46 | identifiers have a period of 2^32-1 and start from a |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 47 | random value. |
| 48 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 49 | Start:: |
| 50 | Time (local to the server) that this connection started. |
| 51 | |
| 52 | Idle:: |
| 53 | Time since the last data transfer on this connection. |
| 54 | Note that most SSH clients use not only a TCP based |
| 55 | connection keep-alive, but also an encrypted keep alive |
| 56 | higher up in the SSH protocol stack. That higher keep |
| 57 | alive resets the idle timer, about once a minute. |
| 58 | |
| 59 | User:: |
Shawn O. Pearce | 099dc17 | 2010-01-15 09:41:17 -0800 | [diff] [blame] | 60 | The username of the account that is authenticated on this |
| 61 | connection. If the -n option is used, this column shows |
| 62 | the Account Id instead. |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 63 | |
| 64 | Remote Host:: |
| 65 | Reverse lookup hostname, or if -n option is used, the remote |
| 66 | IP address. |
| 67 | |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 68 | EXAMPLES |
| 69 | -------- |
| 70 | |
| 71 | With reverse DNS lookup (default): |
| 72 | ==== |
| 73 | $ ssh -p 29418 review.example.com gerrit show-connections |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 74 | Session Start Idle User Remote Host |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 75 | -------------------------------------------------------------- |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 76 | 3abf31e6 20:09:02 00:00:00 jdoe jdoe-desktop.example.com |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 77 | -- |
| 78 | ==== |
| 79 | |
| 80 | Without reverse DNS lookup: |
| 81 | ==== |
| 82 | $ ssh -p 29418 review.example.com gerrit show-connections -n |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 83 | Session Start Idle User Remote Host |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 84 | -------------------------------------------------------------- |
Shawn O. Pearce | 3f1a13a | 2009-11-20 20:15:41 -0800 | [diff] [blame] | 85 | 3abf31e6 20:09:02 00:00:00 a/1001240 10.0.0.1 |
Shawn O. Pearce | 4016a93 | 2009-05-28 15:12:40 -0700 | [diff] [blame] | 86 | -- |
| 87 | ==== |
Shawn O. Pearce | 5500e69 | 2009-05-28 15:55:01 -0700 | [diff] [blame] | 88 | |
| 89 | GERRIT |
| 90 | ------ |
| 91 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 92 | |
| 93 | SEARCHBOX |
| 94 | --------- |