Console commands
- d tcpip – show which TCPs are active
- d tcpip,tcpip,netstat,home issue netstat home command to TCPIP job TCPIP
- d tcpip,tcpip,help show all the console commands available for job TCPIP
- d tcpip,,help show all the console commands available for default TCPIP
- d tcpip,,netstat,home issue netstat home command to default (only) TCPIP stack
- d tcpip,tcpip2,netstat,devlinks issuenetstat devlinks to TCPIP job 2
- v tcpip,tcpip,syntaxcheck,USER.Z24A.TCPPARMS(TCIP) Check the syntax of commands
- v tcpip,tcpip,obeyfile,USER.Z24A.TCPPARMS(TCIP) Issue the commands.
Display VIPA stuff
- D TCPIP,TCPIP,NETSTAT,VIPACFG Displays the current dynamic VIPA configuration information
- D TCPIP,TCPIP,N,VIPADYN Displays the current dynamic VIPA and VIPAROUTE information
- D TCPIP,TCPIP,N,VIPADYN,DVIPA Displays the current dynamic VIPA information only.
- D TCPIP,TCPIP,N,VIPADYN,VIPAROUTE Displays the current VIPAROUTE information only.
- D TCPIP,TCPIP,N,VCRT Displays the dynamic VIPA Connection Routing Table information
- D TCPIP,TCPIP,N,VDPT Displays the dynamic VIPA Destination Port Table information.
Netstat
Netstat has two formats TSO and OMVS
- TSO format is like NETSTAT CONN (can also be issued from operator console)
- OMVS format is like netstat -c
There is a comparison table here
The omvs command is good for netstat -c > filename
TSO command
- netstat conn Displays the information about each active TCP connection and UDP socket
- netstat conn ( PORT 10443 who is using port 10443 Gives Foreign socket 10.1.0.2..48518 (see below)
- netstat allconn Provides information for all TCP connections and UDP sockets, including recently closed ones.
- netstat allconn ( ipport 10.1.0.2+48518 Show information about this socket coming in from 10.1.0.2 port 48518
- netstat all ( ipport 10.1.0.2+48518 shows all information about the remote port.
- netstat conn TCP TCPIP2 for TSO command for TCPIP stack TCPIP2
- netstat home give the IP addresses this TCPIP stack uses. For example 10.1.1.2 amd 127.0.0.1
- netstat Dev give stats about all interfaces
- netstat home report dsn ‘colin.output’ issue the home command, and write the output to ‘colin.output’
- netstat conn report hlq colin ( port 1414 the hlq says output the report with data set name colin.netstat.conn
OMVS
- netstat -c Displays the information about each active TCP connection and UDP socket
- netstat -c -P 10443 who is using port 10443 Gives Foreign socket 10.1.0.2..48518 (see below)
- netstat -a Provides information for all TCP connections and UDP sockets, including recently closed ones.
- netstat -a -B 10.1.0.2+48518 Show information about this socket coming in from 10.1.0.2 port 48518
- netstat -A -B 10.1.0.2+48518 shows all information about the remote port.
- netstat -c -p TCPIP2 display all connections for TCPIP jobname TCPIP2
- netstat -c -p TCPIP2 -P 10443 which jobs are using port 10443 – direct the request to TCPIP2 stack
- netstat -h give the IP addresses this TCPIP stack uses. For example 10.1.1.2 amd 127.0.0.1
- netstat -d give stats about all connections
Ping
TSO Ping address
USS ping address
Trace route
TSO TRACERTE address
Ubuntu commands
- ip route display configured routes
- ip route get 10.1.2.3 show the path to 10.1.2.3
- sudo ip route add 10.1.1.10 dev tap0 define route to 10.1.1.10 via device tap0