To display the diagnostics of the SSH resource the following commands are used:
Shows diagnostic information, such as the state of the client and server, the local and the remote addresses-ports connected to the resource, etc.
[17:58:20] ABILIS_CPX:
d d ssh
RES:Ssh ----------------------------------------------------------------------- Secure_Shell_Protocol_2 STATE:READY - Ssh Sessions --------------------------------------------------------- SES TYPE X25-State TCP-State LocAdd-LocPort RemAdd-RemPort ------------------------------------------------------------------------ 1 CLNT READY READY 2 CLNT READY READY 3 CLNT READY READY 4 SERV READY LISTEN 000.000.000.000-22 5 SERV READY LISTEN 000.000.000.000-22 6 SERV CONNECTED CONNECTED 192.168.029.254-22 192.168.020.104-55722
The meaning:
TYPE
Type of SSH session:
CLNT
- client.
SERV
- server.
X25-State
State of the X25 resource session:
READY
- session is available.
CONNECTED
- session is
connected.
CLEARED
- session is confirming an
incoming clear.
TCP-State
State of the TCP resource session:
READY
- session is available.
CONNECTED
- session is
connected.
CLEARED
- session is confirming an
incoming clear.
LISTEN
- session is listening.
LocAdd-LocPort
Local IP Address and Local Port.
RemAdd-RemPort
Remote IP Address and Remote Port.
To display the statistics of the SSH resource the following commands are used:
Shows statistic information, such as number of segments received/sent, number of characters received/sent, number of packets received/sent, number of calls sent/received and number of resets sent/received.
Shows statistic information in an extended format: the information listed for d s ssh command are shown for each session.
[18:06:18] ABILIS_CPX:
d s ssh
RES:Ssh ----------------------------------------------------------------------- Secure_Shell_Protocol_2 --- Cleared 3 days 10:17:36 ago, on 25/08/2017 at 02:02:45 ------------- -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 676| 40|CHAR | 39178| 371| PCK | 160| 40|CALL | 0| 5| RESET | 0| 0|DENIED-IP | 0| | BANNED-IP | 0| | ------------------------------------------------------------------------
[18:06:40] ABILIS_CPX:
d se ssh
RES:Ssh ----------------------------------------------------------------------- Secure_Shell_Protocol_2 --- Cleared 3 days 10:14:10 ago, on 25/08/2017 at 02:02:45 ------------- -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 618| 38|CHAR | 35602| 362| PCK | 151| 38|CALL | 0| 5| RESET | 0| 0|DENIED-IP | 0| | BANNED-IP | 0| | ------------------------------------------------------------------------ - Ssh Sessions --------------------------------------------------------- SES TYPE X25-State TCP-State LocAdd-LocPort RemAdd-RemPort ------------------------------------------------------------------------ 1 CLNT READY READY -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 0| 0|CHAR | 0| 0| PCK | 0| 0|CALL | 0| 0| RESET | 0| 0| ------------------------------------------------------------------------ 2 CLNT READY READY -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 0| 0|CHAR | 0| 0| PCK | 0| 0|CALL | 0| 0| RESET | 0| 0| ------------------------------------------------------------------------ 3 CLNT READY READY -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 0| 0|CHAR | 0| 0| PCK | 0| 0|CALL | 0| 0| RESET | 0| 0| ------------------------------------------------------------------------ 4 SERV READY LISTEN 000.000.000.000-22 -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 17| 5|CHAR | 457| 58| PCK | 14| 5|CALL | 0| 2| RESET | 0| 0| ------------------------------------------------------------------------ 5 SERV CONNECTED CONNECTED 192.168.029.254-22 192.168.020.104-38142 -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 190| 13|CHAR | 11159| 121| PCK | 43| 13|CALL | 0| 2| RESET | 0| 0| ------------------------------------------------------------------------ 6 SERV READY LISTEN 000.000.000.000-22 -----------|---INPUT---|--OUTPUT---|-----------|---INPUT---|--OUTPUT---| SEG | 84| 7|CHAR | 4640| 75| PCK | 25| 7|CALL | 0| 1| RESET | 0| 0| ------------------------------------------------------------------------
With reference to the shown interval of time («Cleared 3 days 10:14:10 ago») these counters show the number of:
SEG | Incoming/outgoing segments. |
PCK | Incoming/outgoing packets. |
RESET | Incoming/outgoing resets. |
CHAR | Incoming/outgoing bytes. |
CALL | Incoming/outgoing calls. |
DENIED-IP | Requests that was discarded because the source IP was not allowed. |
BANNED-IP | Requests that was discarded because the source IP was banned by IPBAN service. |
To display the communication sessions state for the SSH resource the following commands are used:
Shows the current state of sessions.
Shows the current state of sessions in extended format.
[11:09:16] ABILIS_CPX:
d c ssh
Res: Ses: State: Clr:/Res: Ses: [Cg:/Cd:] Id:/Pr: ------------------------------------------------------------------------------- Ssh 1 UP F0,B0 2 UP F0,B0 3 UP F0,B0 4 UP F0,B0 5 UP F0,B0 6 CONN TO Cp 1 00 0 -------------------------------------------------------------------------------
[11:09:16] ABILIS_CPX:
d ce ssh
RES:Ssh SES:1 UP CLR:F0,B0 SES:2 UP CLR:F0,B0 SES:3 UP CLR:F0,B0 SES:4 UP CLR:F0,B0 SES:5 UP CLR:F0,B0 SES:6 CONN TO RES:Cp SES:1 CG: CD:00 PID:01000000 UD:CP IPSRC:192.168.000.025