Netstat Up/-u report

Displays the date and time that TCP/IP was started and specifies whether it is IPv6 enabled or disabled.

TSO syntax

Read syntax diagramSkip visual syntax diagram
>>---NETSTAT Up--| Target |--| Output |------------------------><

Target

Provide the report for a specific TCP/IP address space by using TCp tcpname. See The Netstat command target for more information about the TCp parameter.

Output

The default output option displays the output on the user's terminal. For other options, see The TSO NETSTAT command syntax or Netstat command output.

z/OS UNIX syntax

Read syntax diagramSkip visual syntax diagram
>>---netstat -u--| Target |--| Output |------------------------><

Target

Provide the report for a specific TCP/IP address space by using -p tcpname. See The Netstat command target for more information about the TCp parameter.

Output

The default output option displays the output to z/OS UNIX shell stdout. For other options, see The z/OS UNIX netstat command syntax or Netstat command output.

Command syntax examples

From TSO environment

NETSTAT UP
   Display the date and time that TCP/IP was started and specifies whether it is 
   IPv6 enabled or disabled for the default TCP/IP stack. 
NETSTAT UP TCP TCPCS6
   Display the date and time that TCP/IP was started and specifies whether it is 
   IPv6 enabled or disabled for the TCPCS6 stack.

From UNIX shell environment

   netstat -u
   netstat -u -p tcpcs6 

Report examples

The following examples are generated by using TSO NETSTAT command. Using the z/OS UNIX netstat command displays the data in the same format as the TSO NETSTAT command.

Not IPv6 enabled (SHORT format)

NETSTAT UP
MVS TCP/IP NETSTAT CS V2R1       TCPIP Name: TCPCS           14:34:37  
Tcpip started at 14:27:29 on 01/31/2002 with IPv6 disabled           

IPv6 enabled or request for LONG format

NETSTAT UP
MVS TCP/IP NETSTAT CS V2R1       TCPIP Name: TCPCS           14:34:37  
Tcpip started at 14:27:29 on 01/31/2002 with IPv6 enabled