Cisco Catalyst SD-WAN Rugged Series Router Configuration Guide, Release 26.x and Later

PDF

Cisco Catalyst SD-WAN Rugged Series Router Configuration Guide, Release 26.x and Later

Monitor a raw socket using the CLI

Want to summarize with AI?

Log in

Describes how to monitor raw socket sessions and statistics using CLI commands. Provides sample outputs to help users interpret session and statistics information for device troubleshooting and management.


Use CLI commands to monitor raw socket sessions and statistics on a device. Review sample outputs to understand session states and traffic statistics for UDP and TCP sockets.

Raw socket sessions

The following is a sample output of the show raw-socket udp sessions command:


                device# 
                show raw-socket udp sessions
 UDP Sessions 
Interface   tty/(Idx)  vrf_name  socket   mode      local_ip_addr  local_port    dest_ip_addr  dest_port   up_time     idle_time/timeout
   0/3/0    74            0      client  15.1.1.1      15001        15.1.1.2       15002                  00:00:14       00:00:14/300sec
            

The following is a sample output of the show raw-socket tcp sessions command:


                device# 
                show raw-socket tcp sessions
TCP Sessions 
Interface   tty/(Idx) vrf_name   socket    mode       local_ip_addr  local_port    dest_ip_addr  dest_port    up_time     idle_time/timeout
 As0/3/0   74           0         server   15.1.1.1    15001          listening   
 0/3/0      74          1         server   15.1.1.1    15001           15.1.1.2    15002                      00:00:41    00:00:41/300sec
            

The following is a sample output of the show raw-socket udp sessions local command:


                device# 
                show raw-socket udp sessions local
Locally configured UDP client State 
Interface  tty  dest_ip    dest_port  local_ip    local_port  state
0/3/0      74   15.1.1.2    15002     15.1.1.1      15001      UP  
            

The following is a sample output of the show raw-socket tcp sessions local command:


                device1# 
                show raw-socket tcp sessions local 
Locally configured TCP client State
Interface  tty  dest_ip    dest_port  local_ip   local_port  state
0/2/0      26   15.1.1.1    15001     15.1.1.2     15002      UP  
            
Note

The show raw-socket tcp session local command is supported exclusively on a client device.

Raw socket statistics

The following is a sample output of the show raw-socket udp statistics command:


                device# 
                show raw-socket udp statistics
UDP-Serial Statistics 
Interface  idx     vrf_name             sessions      udp_in_bytes         udp_out_bytes   udp_to_tty_frames    tty_to_udp_frame
As0/3/0    74        1                   0                    0                   0                    0
            

The following is a sample output of the show raw-socket tcp statistics command:


                device# 
                show raw-socket tcp statistics
TCP-Serial Statistics
Interface  idx    vrf_name  sessions tcp_in_bytes   tcp_out_bytes   tcp_to_tty_frames    tty_to_tcp_frames
  As0/3/0   74    1             0                    0                   0                    0