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.
OSPF
Either D TCPIP,,OMP,command or F OMPOUTE,command. If you use S OMPROUTE.P1, you can use F P1,command
- F OMP1,OSPF,areasum Display a summary of the configuration, number of links, number of interfaces (one line of output per area).
- F OMP1,ospf,database,areaid=0.0.0.0 Display the routers.
- F OMP1,ospf,neighbor Display the directly connected links.
- F OMP1,OSPF, LSA, LSTYPE=2,LSID=… Display all links, by IP address from
- F OMP1,OSPF, LSA, LSTYPE=1,LSID=… Display links for a specific ospf router.
- Display the IP addresses in the network. Either use F OMP1,RTTABLE or for each router F OMP1,OSPF,LSA,LSTYPE=1,LSID=…. , LINK ID: is the IP address of the remote end, LINK DATA: is the IP address of the router’s end.
- F OMP1,ospf,database,areaid=0.0.0.0 Display all of the routers in the network and extract “LS ORIGINATOR”
- F OMP1,OSPF,LSA,LSTYPE=1,LSID=….Display the connection from an ospf router.
- F OMPROUTE,OSPF,LIST,ALL
- F OMPROUTE,OSPF,LIST,AREAS
- F P1,OSPF,LIST,IFS display interfaces – but it does not tell you the interface name.
- F P1,OSPF,LIST,NBRS list the NeighBoRS
- F P1,OSPF,IF display the interface, one line per interface
- F P1,OSPF,IF,NAME=name displays a lot of data including traffic statistics
- F P1,OSPF,NBR display the neighbour
- F P1,OSPF,STATISTICS
- F P1,OSPF,ROUTERS The doc says
- Displays all routes to area-border routers and autonomous system boundary routers that have been calculated by OSPF and are currently present in the routing table.
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
- netstat allconn (client csq9web show all current connections (ports in use), and recent ones for the job csq9web. netstat conn just shows active ones.
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
DNS resolver
The DNS resolver maps WWW.xxx.yyy to an IP address, and an IP address to WWW.xxx.yyy.
- F RESOLVER,DISPLAY to display the configuration
- F RESOLVER,REFRESH,SETUP=ADCD.Z31B.TCPPARMS(GBLRESOL) to change the resolver to use the specified file. You can use SETUP=…. to specify a data set, member or Unix file.
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