You are on page 1of 2

INTRODUCTION z/OS Console Commands for TCP/IP cont...

z/VM Operator Commands


This summary lists many of the commonly used commands (with • D TCPIP,{procname},HELP - display list of TCP/IP display Note: Requires class B authority to issue the following commands.
brief descriptions) for FTP and TCP/IP, as well as related z/OS, options. These include -NETSTAT, TELNET, HELP, • Q MITIME - Display MIH times for devices.
z/VM, VSE, Linux, and VTAM commands. DISPLAY, VARY, OMPROUTE, SYSPLEX, STOR. • Q OSA ACTIVE|ALL - display status of OSA devices.
This is only a summary. If you need details about a command, refer • D TCPIP,{procname},Netstat,ALLCONN|CONN - display • Q rdev|rdev-rdev - Display status of real device(s).
to the appropriate documentation. socket information for the TCP/IP stack. • Q PATHS rdev|rdev-rdev - Display path status to real
NOTE: All commands are for current operating system releases • D TCPIP,{procname},Netstat,ARP - display contents of ARP device(s) (PIM, PAM, LPM).
as of 26 November 2002. If using an earlier release, some cache for the TCP/IP stack. • Q CHPID cc - Display real CHPID status.
commands may not work. • D TCPIP,{procname},Netstat,DEVlinks - display Device and • VARY OFF|ON rdev|rdev-rdev - vary device(s) off or online
link status for the TCP/IP stack. • VARY OFF|ON PATH cc FROM|TO rdev|rdev-rdev -
• D TCPIP,{procname},Netstat,HOME - display the IP change the status of a path to device(s).
TCP/IP Commands for TSO/E address(es) for the TCP/IP stack. • VARY OFF|ON CHPID cc - configure a CHPID off or on to
Note: The following TCP/IP commands should be done from the • D TCPIP,{procname},Netstat,ROUTE - display the routing both hardware and software.
TSO command panel or the READY prompt. table for the TCP/IP stack. z/VM TCP/IP Commands
Note: hostname may be the IP address of the host, or the host • V TCPIP,{procname},HELP - display list of TCP/IP vary Note: Your CMS userid must be linked to the TCPMAINT 592
name of the host. options. These include - HELP, OBEYFILE, PKTTRACE, minidisk to execute the following commands.
• FTP hostname {port} - Connect to remote host to get/put files. DATTRACE, START, STOP, PURGECACHE Note: hostname may be the IP address of the host, or the host
Defaults to port 21. • V TCPIP,{procname},PURGECACHE,linkname - purge name of the host.
• HOMETEST - Validate TCP/IP configuration. ARP cache for the specified adapter (linkname from • FTP hostname {port} - Connect to remote host to get/put files.
• NETSTAT option {TCP procname} - Display network status NETSTAT,DEVLINKS). Defaults to port 21. Enter FTP ? for list of options.
of local host. Use ? for list of options. • V TCPIP,{procname},START|STOP,devname - Start or stop • HOMETEST - Validate TCP/IP configuration.
• NETSTAT ALLCON|CONN - Display port connections for the device name identified in NETSTAT DEV output. • IFCONFIG - display network interfaces.
the TCP/IP stack. • V TCPIP,{procname},Telnet,xxxx - performs specified • IFCONFIG interface UP|DOWN - Start or stop the specified
• NETSTAT ARP ALL|ipaddress - Display ARP cache for the function for TELNET. network interface.
TCP/IP stack. ACT|INACT,luname - Enables|disables lu as VTAM • NETSTAT option - Display network status of local host. Use ?
• NETSTAT DEV - Display the status of the device(s) and session candidate for list of options.
link(s) for the TCP/IP stack. QUIESCE - Blocks new connections. • NETSTAT ALLCON|CONN - Display all port connections
• NETSTAT GATE|ROUTE - Display routing information for RESUME - Ends QUIESCEd state. for the TCP/IP stack.
the TCP/IP stack. (Different views) STOP - Ends telnet connections and closes port. • NETSTAT ARP *|ipaddress - Display ARP cache for the
• NETSTAT HOME - Display IP address(es) for the stack.
Related z/OS Console Commands TCP/IP stack.
• PING hostname - Sends an echo request to a host name or
• D IOS,MIH,DEV=dddd - MIH value for device • NETSTAT DEV - Display the status of the device(s) and
address to determine if the computer is accessible. Use ? for list
Note: The value for "c's and d's" in the following Display link(s) for the TCP/IP stack.
of options.
Matrix (D M) command is optional, but if included, must be in • NETSTAT GATE - Display TCP/IP routing information.
• TELNET hostname {port} - Log on to remote host. By default,
parentheses (). • NETSTAT HOME - Display IP address(es) in TCP/IP stack.
port 23 is used. Use ? for list of options.
• D M=CHP{(cc)}|DEV{(dddd)} - Status of CHPID cc, or • NETSTAT OBEY START|STOP devname - Start or stop the
• TRACERTE hostname - Trace hops from this host to
summary of all CHPIDs if (cc) is not provided. device name identified in NETSTAT DEV output.
destination host. Use ? for list of options.
Display CHPIDs/device status or summary of CHPID status of • PING hostname - Sends an echo request to a host name or
z/OS Console Commands for TCP/IP all devices if (dddd) is not provided. address to determine if the computer is accessible. Use ? for list
Note: If multiple stacks are running, you must identify the stack in • D U,,ALLOC|OFFLINE|ONLINE - Display information for of options.
the procname field. all devices by selected status. • TELNET hostname {port} - Log on to remote host. By default,
• D TCPIP - list names and status of TCP/IP stacks. • D U,,,dddd{,nnn} - Display status of devices starting at device port 23 is used. Use ? for list of options.
dddd for nnn number of devices (default 16). • TRACERTE hostname - Trace hops from this host to
• SETIOS MIH,DEV=ddd,TIME=mm:ss - set MIH time for destination host. Use ? for list of options.
specified device. VSE TCP/IP Commands
• V dddd|dddd-dddd,OFFLINE|ONLINE - vary device(s) Note: hostname may be the IP address of the host, or the host
offline or online. name of the host.
• CF CHP(cc),ONline|OFFline - Configure online/offline • PING hostname - Sends an echo request to a host name or
CHPID cc to MVS & hardware. address to determine if the computer is accessible.
• Query ARP{,IP=hostname} - Display contents of ARP cache
for the TCP/IP stack.
VSE TCP/IP Commands cont... TCP/IP Commands for OS/2 cont… TCP/IP Commands for Linux
• Query CON{,IP=hostname} - Display port connections for • NETSTAT -A - Display host network address. The commands are listed in upper case for presentation only. They
the TCP/IP stack. • NETSTAT -C - Display host ICMP statistics. should be entered in lower case.
• Query LINKs{,ID=name} - Display link status. • NETSTAT -H - host name for specified IP address. • ARP - Display ARP cache. Use -? for options.
• Query MASKs - Display contents of subnet mask table. • NETSTAT -I - Display host IP statistics. • DMESG |MORE - Display complete information about the
• Query ROUTes{ID=name|,IP=hostname} - Display routing • NETSTAT -N - Display host network interface details. (Like Linux environment including network devices. ( |MORE keeps
table for the TCP/IP stack. MAC, speed, and statistics) output from scrolling.) ( > filename to send to a file.)
• STATUS dddd - Display device status • NETSTAT -P - Display host ARP cache. • FTP hostname|ipaddress - Connect to remote host to get/put
• START LINK=name -start a link in the TCP/IP stack. • NETSTAT -R - Display host routes. files. Defaults to port 21. Use -? for options.
• STOP LINK=name -suspends attempts to activate a link. • NETSTAT -S - Display host sockets. • IFCONFIG - display network interfaces (like LO,EN0,TR0)
• Note: Use with CTCA and cross-partition links (not OSA). • NETSTAT -T - Display host TCP statistics. • IFCONFIG interface UP|DOWN - Start or stop the selected
• TRACERT hostname - Trace hops from this host to • NETSTAT -U - Display host UDP statistics. network interface(EN0,TR0, etc).
destination host. • PING hostname - Sends an echo request to a host name or For the following NETSTAT commands, adding N to the option
VTAM Commands address to determine if computer is accessible. (To cancel, use will display numerical output. AddingV will display verbose.
VTAM commands related to OSA cards. Ctrl + C.) Use -? for list of options. • NETSTAT -A - Display all sockets.
• D NET,ID=name - display network named in ID field • TELNET {-p port} hostname - Log on to remote host. By • NETSTAT -I - Display interface table.
Additional parameters that may be added: default, port 23 is used. Use -? for list of options. • NETSTAT -R - Display host routes.
,SCOPE=ONLY|ACT|ALL|INACT • TRACERTE hostname - Trace hops from this host to • PING hostname|ipaddress - Sends an echo request to a host to
,E - Gives extended information about the node. destination host. Use -? for list of options. determine if the computer is accessible. Use -? for options.
• D NET,MAJNODES|APPLS - Shows status of all active TCP/IP Commands for Windows1 • ROUTE - Displays IP routing table.
major nodes or applications. Commands should work for Windows 95, 98, NT, & 2000 1 . • TELNET hostname|ipaddress {port} - Log on to remote host.
• D NET,PENDING - Lists nodes in pending states. Commands must be done from a command prompt window. By default, port 23 is used. Use -? for options.
• D NET,TRL - display list of TRLEs. The commands are listed in upper case for presentation only. They • TRACEROUTE hostname|ipaddress - Trace hops from this
• D NET,TRL,TRLE=trlename - display status of specific should be entered in lower case. host to destination host. Use -? for list of options.
TRLE. (Use this command to display the devices assigned to a Note: hostname may be the IP address of the host, or the host FTP Subcommands
QDIO (or MPC) OSA-Express resource.) name of the host. • ascii - ASCII transfer of text files.
• V NET,ACT,ID=ISTTRL,UPDATE=ALL - Deletes all • ARP -A - Display ARP cache. Use -? for options. • binary - BINARY transfer of binary files.
inactive TRLEs. • FTP hostname - Connect to remote host to get/put files. • cd remote-directory - Change directory on remote host.
• V NET,ACT,ID=name - Activates the VTAM resource Defaults to port 21. Use -? for list of options. • close - Ends the FTP session. After close, OPEN a new
identified by the name. Note: The output of the NETSTAT command may roll through your connection or QUIT from FTP.
• V NET,INACT,ID=name - Inactivates the VTAM resource window. To prevent this, add |more to the end of the netstat • delete filename - Delete the file from remote host.
identified by the name. command. (Or direct the output to a file by adding >filename.TXT • dir {file destination} - Gives full directory listing on remote
,F|I|U - Deactivate FORCE, IMMEDIATE, or to the end of the NETSTAT command.) host. file - file to be listed. destination - where to put listing.
UNCONDITIONAL (if normal inact fails). • NETSTAT -? - Display a list of options. Both file and destination are optional.
TCP/IP Commands for OS/2 • NETSTAT -A - Display host socket information. • get filename {localfilename} - Get a file from remote host.
Commands must be done from a command prompt window. • NETSTAT -E - Display host Ethernet statistics. • hash - Display a hash sign (#) every time a block of data is
The commands are listed in upper case for presentation only. They • NETSTAT -N - Display host addresses and ports numerically. transferred. (Useful for large transfers.)
should be entered in lower case. • NETSTAT -P TCP|UDP|IP - Display connection information • help {command} - Displays a description of the command. If a
Note: hostname may be the IP address of the host, or the host for the selected protocol. command is not specified, a list of commands is displayed.
name of the host. • NETSTAT -R - Display host routes. • lcd directory - Change directory on your local machine.
• ARP -A - Display ARP cache. Use -? for options. • NETSTAT -S - Display host statistics. • ls {file destination} - Like dir, but less information.
• FTP hostname {port} - Connect to remote host to get/put files. • PING hostname - Sends an echo request to a host name or • mget file-list - Get multiple files from remote machine.
Defaults to port 21. Use -? for list of options. address to determine if the computer is accessible. Use -? for • mput file-list - Put multiple files to remote machine.
NETSTAT command output may roll through the OS/2 window. To list of options. • open machine-name - Connect to named machine (IP or host
prevent this, add |more to the end of the netstat command. (Or direct • TELNET hostname {port} - Log on to remote host. By default, name). Old connection must be CLOSEd first.
output to a file by adding >filename.TXT to the end of the port 23 is used. Use -? for list of options. • prompt - Turn prompting off/on for mget and mput.
NETSTAT command.) • TRACERT hostname - Trace hops from this host to • put filename {remotefilename} - Put a file onto remote host.
• HOST ipaddress - Sends request to an IP address and returns destination host. Use -? for list of options. • pwd - Present Working Directory on remote host.
information about the hostname. • quit|bye - exits FTP.
1 Windows, Windows 95, 98, NT, and 2000 are trademarks of Microsoft Corporation.
• NETSTAT -? - Display a list of options.

You might also like