Rzakupdf
Rzakupdf
7.4
Networking
TCP/IP troubleshooting
IBM
Note
Before using this information and the product it supports, read the information in “Notices” on page
69.
This edition applies to IBM i 7.4 (product number 5770-SS1) and to all subsequent releases and modifications until
otherwise indicated in new editions. This version does not run on all reduced instruction set computer (RISC) models nor
does it run on CISC models.
This document may contain references to Licensed Internal Code. Licensed Internal Code is Machine Code and is
licensed to you under the terms of the IBM License Agreement for Machine Code.
© Copyright International Business Machines Corporation 1997, 2018.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
IBM Corp.
Contents
TCP/IP troubleshooting......................................................................................... 1
What's new for IBM i 7.4..............................................................................................................................1
PDF file for TCP/IP troubleshooting.............................................................................................................1
Troubleshooting tools and techniques........................................................................................................ 2
Tools to verify your network structure................................................................................................... 2
Netstat...............................................................................................................................................2
Using Netstat from a character-based interface........................................................................ 2
Using Netstat from IBM Navigator for i.......................................................................................5
Ping....................................................................................................................................................7
Using Ping from a character-based interface............................................................................. 8
Using Ping from IBM Navigator for i..........................................................................................10
Common error messages.......................................................................................................... 13
PING parameters.......................................................................................................................14
Trace route...................................................................................................................................... 14
Using trace route from a character-based interface................................................................ 15
Using trace route from IBM Navigator for i...............................................................................15
ARP ping.......................................................................................................................................... 15
ND ping............................................................................................................................................15
Tools for tracing data and jobs.............................................................................................................16
Communications trace....................................................................................................................16
Planning a communications trace.............................................................................................16
Performing a communications trace.........................................................................................17
Additional communications trace functions.............................................................................21
Trace connection.............................................................................................................................22
Trace TCP/IP application................................................................................................................ 22
Job trace......................................................................................................................................... 23
Starting a job trace.................................................................................................................... 24
Re-creating the problem........................................................................................................... 25
Ending a job trace...................................................................................................................... 25
Printing a job trace.................................................................................................................... 25
Deleting a job trace................................................................................................................... 26
Advanced job trace functions................................................................................................... 26
Advanced trace function: Watch support.......................................................................................27
Scenarios: Using watch support with traces............................................................................ 27
Watch parameters..................................................................................................................... 29
Using watch exit programs........................................................................................................29
Traces that use watch support..................................................................................................32
Troubleshooting tips.............................................................................................................................32
Server table.....................................................................................................................................32
Checking jobs, job logs, and message logs.................................................................................... 56
Verifying that necessary jobs exist........................................................................................... 56
Checking the job logs for error messages and other indication of problems.......................... 57
Changing the message logging level on job descriptions and active jobs............................... 57
Other job considerations...........................................................................................................58
Checking for active filter rules........................................................................................................59
Verifying system startup considerations for networking............................................................... 59
Starting subsystems..................................................................................................................60
Starting TCP/IP.......................................................................................................................... 60
Starting interfaces..................................................................................................................... 60
Starting servers......................................................................................................................... 61
Timing considerations............................................................................................................... 62
iii
Varying on lines, controllers, and devices......................................................................................63
Verifying the logical partition configuration................................................................................... 63
Verifying the LPAR configuration from a character-based interface........................................64
Verifying the LPAR configuration from System i Navigator...................................................... 64
Troubleshooting IPv6–related problems....................................................................................... 64
Advanced troubleshooting tools.......................................................................................................... 65
Licensed Internal Code logs........................................................................................................... 65
Trace Internal (TRCINT) command................................................................................................ 65
Product activity log......................................................................................................................... 66
IOP dump........................................................................................................................................ 66
Process dump................................................................................................................................. 66
Call stack dump......................................................................................................................... 67
Full job dump.............................................................................................................................67
Troubleshooting problems related to specific applications..................................................................... 67
Notices................................................................................................................69
Programming interface information.......................................................................................................... 70
Trademarks................................................................................................................................................ 70
Terms and conditions.................................................................................................................................71
iv
TCP/IP troubleshooting
The TCP/IP troubleshooting topic collection provides tools and techniques to help you solve problems
with TCP/IP connectivity.
This topic is a centralized resource for finding answers to TCP/IP problems. You might have a general
connectivity problem that is quickly identified or a more localized problem that requires in-depth
consideration. Troubleshooting tools are provided in this topic to help you solve the problem.
Note: By using the code examples, you agree to the terms of the “Code license and disclaimer
information” on page 68.
Netstat
Netstat is a tool for managing and monitoring the status of your system's interfaces, routes, and
connections, and it is useful for troubleshooting TCP/IP problems. You can use Netstat whether you are
using IPv4 or IPv6 connectivity on the network.
To access Netstat, select a character-based interface or IBM Navigator for i.
Related concepts
Internet Protocol version 6
Related tasks
Starting interfaces
Start the appropriate interfaces to ensure your network communication.
IPv4 interfaces
To display information about the IPv4 interfaces on your system, complete these steps:
1. Type NETSTAT or WRKTCPSTS on the command line to display the Work with Network Status menu,
and then select option 1 on this menu.
2. You should have at least two active interfaces. Verify that these interfaces are active:
• Loopback (127.0.0.1).
• IBM i IP address interface. This is the interface on your local system.
3. If these interfaces are not active, select option 9 (Start) to start the interfaces.
You might want to check the status of other interfaces. For example, if you are trying to ping interfaces on
other hosts on the network, you should verify that those interfaces are active.
IPv4 routes
To display information about the IPv4 routes on your system, follow these steps:
1. Type NETSTAT or WRKTCPSTS on the command line to display the Work with Network Status menu,
and then select option 2 on this menu.
2. Select option 5 (Display details) for details about a specific route.
3. If you do not have a default route configured, you should configure it now. To configure a default route,
follow these steps:
a. At the command line, type CFGTCP to access the Configure TCP/IP menu.
b. Select option 2 (Work with TCP/IP Routes).
c. Select option 1 (Add) to go to the Add TCP/IP Route (ADDTCPRTE) display.
d. For the Route destination prompt, specify *DFTROUTE.
e. For the Subnet mask prompt, specify *NONE.
f. For the Next hop prompt, specify the appropriate IP address.
As an alternative, you can configure a default route using the New IPv4 Route wizard in IBM Navigator for
i. See the IBM Navigator for i routes information for details.
IPv6 routes
To display information about the IPv6 routes on your system, follow these steps:
TCP/IP troubleshooting 3
1. Type NETSTAT or WRKTCPSTS on the command line to display the Work with Network Status menu,
and then select option 5 on the menu.
2. Select option 5 (Display details) for details about a specific route.
For IPv6, the Internet Protocol automatically configures default routes for each interface on the system.
However, if you prefer, you can use the Add TCP/IP Routes (ADDTCPRTE) command or the New IPv6
Route wizard in IBM Navigator for i to create new routes yourself. For more information about creating
routes in IBM Navigator for i, see the IBM Navigator for i routes information.
Related concepts
Using Netstat from IBM Navigator for i: Routes
If you are trying to ping an interface address and do not receive a reply, you should verify that your routes
are configured and available.
Related information
Add TCP/IP Route (ADDTCPRTE) command
IPv4 interfaces
To display information about the IPv4 interfaces on your system, follow these steps:
1. In IBM Navigator for i, expand IBM i Management > Network > TCP/IP Configuration > IPv4.
2. Select IPv4 Interfaces.
3. You should have at least two active interfaces. Verify that these interfaces are active:
• Loopback (127.0.0.1).
• IBM i IP address interface. This is the interface on your local system.
4. If these interfaces are not active, right-click the IP address of the interface you want to start, and
select Start.
You might want to check the status of other interfaces. For example, if you are trying to ping interfaces on
other hosts on the network, you should verify that those interfaces are active.
IPv6 interfaces
To display information about the IPv6 interfaces on your system, follow these steps:
1. In IBM Navigator for i, expand IBM i Management > Network > TCP/IP Configuration > IPv6.
2. Select IPv6 Interfaces. You should have at least one active interface. Verify that this interface is
active:
• Loopback (::1)
3. If this interface is not active, right-click the IP address of the interface, and select Start.
You might want to check the status of other interfaces. For example, if you are trying to ping interfaces on
other hosts on the network, you should verify that those interfaces are active.
TCP/IP troubleshooting 5
Using Netstat from IBM Navigator for i: Routes
If you are trying to ping an interface address and do not receive a reply, you should verify that your routes
are configured and available.
Your system needs routes to send packets to other systems or hosts. The route determines the path that a
packet takes to its destination. To communicate between a local and remote network, whether you are
using IPv4 or IPv6 connectivity, you should have at least these two types of routes configured on the
system:
• A direct route (*DIRECT) allows packets to travel between interfaces on the local network. It is
automatically configured and activated by the system for each interface.
• A default route (*DFTROUTE) allows packets to travel to hosts that are not directly connected to your
network. It provides a path for the packets to take. A default route identifies a specific node as a next
hop to which the packets travel and then continue their trip to their final destination on a different
network. The packets take the default route whenever there is no other (more specific) route matching
the destination IP address.
Keep in mind that routes are unidirectional. Just because a packet from a client can get to your system
does not mean that your system can send a packet to the client.
IPv4 routes
To display information about the IPv4 routes on your system, follow these steps:
1. In IBM Navigator for i, expand IBM i Management > Network > All Tasks > TCP/IP Configuration >
IPv4.
2. Select Routes.
3. Right-click the IP address in the Remote Network column of the route you want to see, and select
Properties.
4. If you do not have a default route configured, you should configure it now. To configure an IPv4 default
route, follow these steps:
a. In IBM Navigator for i, expand IBM i Management > Network > All Tasks > TCP/IP Configuration
> IPv4 and click Routes.
b. Click Actions and select New Route.
c. Follow the wizard's instructions to create a new default route.
IPv6 routes
To display information about the IPv6 routes on your system, follow these steps:
1. In IBM Navigator for i, expand IBM i Management > Network > All Tasks > TCP/IP Configuration >
IPv6.
2. Select Routes.
3. Right-click the IP address in the Destination Address column of the route you want to see, and select
Properties.
4. For IPv6, the Internet Protocol automatically configures default routes for each interface on the
system. However, if you prefer, you can use the New IPv6 Route wizard in IBM Navigator for i to create
new IPv6 routes yourself. To configure an IPv6 default route, follow these steps:
a. In IBM Navigator for i, expand IBM i Management > Network > All Tasks > TCP/IP Configuration
> IPv6 and click Routes.
b. Click Actions and select New Route.
c. Follow the wizard's instructions to create a new default route.
Related concepts
Using Netstat from a character-based interface: Routes
Ping
You can use the Packet Internet Groper (Ping) function to test IP-level connectivity between two TCP/IP-
capable interfaces or systems.
The Ping function sends out a special IP packet to a specified host. If the destination host receives this
special packet, it replies to you with a message which indicates to you that you can communicate with
that host. You can use the Ping function in two different ways:
TCP/IP troubleshooting 7
• Use the Ping function to test your local TCP/IP configuration. For example, after setting up TCP/IP on the
system for the first time, you can use Ping to test the TCP/IP configuration.
• Use the Ping function to test your ability to communicate with other hosts on the local or remote
networks.
Note: You can use the Ping function for both IPv4 and IPv6 connectivity.
Related concepts
Internet Protocol version 6
The local host table does not You need to add the entry to the host table. To verify the host table
have an entry for one of the entries, follow these steps:
following pairs of host name
a. At the command line, type CFGTCP (Configure TCP/IP).
and IP address:
b. Select option 10 (Work with TCP/IP Host Table Entries).
• IPv4: LOOPBACK, 127.0.0.1
c. Verify that the host table contains an entry for one of the
• IPv6: IPV6-LOOPBACK, ::1 following pairs of host names and addresses:
• IPv4: LOOPBACK, 127.0.0.1
• IPv6: IPV6-LOOPBACK, ::1
TCP/IP has not been started. To start TCP/IP, type STRTCP (Start TCP/IP) at the command line.
Related reference
Common error messages
When you use the PING command to verify the connection to another host in the network, TCP/IP can give
you an error message. Use this table to identify common error messages and to determine what you
should do to solve the problems.
PING parameters
With PING command parameters, you can adjust the way the PING command performs its test of
connectivity.
The local host table does You need to add the entry to the host table. To verify the host table
not have an entry for the entries, follow these steps:
host name and IP address.
a. At the command line, type CFGTCP (Configure TCP/IP).
b. Select option 10 (Work with TCP/IP Host Table Entries).
c. Verify that the host table contains an entry for the host name and
IP address.
Your line description or The line should be varied on, and the interface should be started.
local interface has not been
properly configured.
If you are using IPv6, the To determine if IPv6 is active or not, type NETSTAT and select option
IPv6 stack has not been 10 (Display TCP/IP stack status). If IPv6 is not active, you can start
activated on your system. IPv6 by specifying *YES for the STRIP6 parameter on the STRTCP
(Start TCP/IP) command: STRTCP STRIP6(*YES).
TCP/IP troubleshooting 9
Problem Recovery
Note: You can start IPv6 after TCP/IP is started by issuing another
STRTCP command and specifying the STRIP6 parameter as *YES.
Related reference
PING parameters
With PING command parameters, you can adjust the way the PING command performs its test of
connectivity.
Pinging the interface on a network not directly attached to your local network
Ping a remote interface to test whether packets can leave your network and reach a remote system. Ping
a remote Domain Name System (DNS) to make sure your system can resolve domain names.
1. At the command line, type these commands:
• For IPv4: PING 'nnn.nnn.nnn.nnn' or PING hostname
• For IPv6: PING 'x:x:x:x:x:x:x:x' or PING hostname
See PING parameters to fine-tune the PING command to get the most accurate results. Prompt on the
PING command by selecting F4 for complete details on the PING parameters.
2. Failures might indicate the following problems:
• TCP/IP has not been started. To start TCP/IP, type STRTCP (Start TCP/IP) at the command line.
• The remote system is not available.
• A frame size problem. The frame size on the line description should be greater than or equal to the
maximum transmission unit (MTU) of the interface.
• A network, router, next hop, or bridge problem.
• The default route is not configured on your system.
• The remote system or intermediate firewall has ICMP Echo requests or replies disabled.
• If you have multiple IP addresses and subnets, make sure that IP datagram forwarding is set to
*YES.
• If the interface you are trying to reach is configured to an Ethernet adapter, you might need to
change the Ethernet standard in the Ethernet line description. Specify either the correct Ethernet
standard or *ALL.
• A DNS or host name table problem. For example, if the Ping works for the interface's IP address but
not the host or domain name, you need to check your host table or DNS entries.
Related reference
PING parameters
With PING command parameters, you can adjust the way the PING command performs its test of
connectivity.
Common error messages
When you use the PING command to verify the connection to another host in the network, TCP/IP can give
you an error message. Use this table to identify common error messages and to determine what you
should do to solve the problems.
Related reference
Common error messages
TCP/IP troubleshooting 11
When you use the PING command to verify the connection to another host in the network, TCP/IP can give
you an error message. Use this table to identify common error messages and to determine what you
should do to solve the problems.
Your line description or local The line should be varied on, and the interface should be started.
interface has not been
properly configured.
If you are using IPv6, the To determine if the IPv6 stack is active or not, type NETSTAT and
IPv6 stack has not been select option 10 (Display TCP/IP stack status). If the IPv6 stack is
activated on your system. not active, you can start IPv6 by specifying *YES for the STRIP6
parameter on the STRTCP (Start TCP/IP) command: STRTCP
STRIP6(*YES).
Note: You can start the IPv6 stack after TCP/IP is started.
If you are trying to ping an Check the status of the interface. If the lifetime has expired, the
IPv6 address, the interface's interface will not be active.
lifetime might have expired.
Related reference
Common error messages
When you use the PING command to verify the connection to another host in the network, TCP/IP can give
you an error message. Use this table to identify common error messages and to determine what you
should do to solve the problems.
Pinging the interface on a network not directly attached to your local network
To test whether packets can leave your network and reach a remote system, ping the remote interface.
Ping a remote Domain Name System (DNS) to make sure your system can resolve domain names.
To ping the interface to troubleshoot the problem, follow these steps:
Message ID TCP3423 • TCP/IP has not been started yet or has not completed starting.
No TCP/IP service available Use the NETSTAT command to see if TCP/IP is active.
• All jobs might not be started in the QSYSWRK subsystem. Use
the Work with Active Jobs (WRKACTJOB) command to verify
that the QSYSWRK subsystem and related server jobs are
active. If they are not active, look in the job log or system
default output queue for any messages.
Message ID TCP3409 Check your configured interfaces, their related line descriptions,
and the TCP/IP routes.
Not able to establish
connection with remote host
system
TCP/IP troubleshooting 13
Message ID TCP3213 TCP/IP cannot find a route to the requested destination. Check
NETSTAT option 2 and verify that a *DFTROUTE or equivalent
Cannot reach remote system
network route has been configured and is active.
Message ID TCP3206 • Your configuration is probably correct, but you do not get an
No response from host within answer back from the remote system. Ensure that the remote
10 seconds for connection host is able to reach your system. Call and ask the remote
verification 1. system operator to verify the connection to your system.
• Check the host tables or remote name server (if you are using
a name server) for both systems, and the TCP/IP interfaces
and routes. The remote name server might not be able to serve
you for some reason.
• If you are using an Ethernet line, make sure you specified the
correct Ethernet standard or *ALL.
Message ID TCP3202 The host name could not be resolved to an IP address, either
using the host table or a name server. Check the local host table
Unknown host, xxxxxx.
or the remote name servers (if you are using a name server) for
the remote host's entry.
Verify that you can reach the remote name server by issuing a
Ping to the remote name server.
• If the short host name does not resolve, but the fully qualified
domain name resolves, check the configured domain search
list in Change TCP/IP Domain (CHGTCPDMN).
Related tasks
Configuring TCP/IP when the operating system is in restricted state
PING parameters
With PING command parameters, you can adjust the way the PING command performs its test of
connectivity.
The PING command includes various parameters, such as packet length and wait time for a response. The
default wait time of 1 second allows the remote system enough time to respond in most networks.
However, if the remote system is far away or if the network is busy, increasing the wait time parameter
can improve the results.
It is recommended that the parameter values be left at their default values. Be aware that if you do
change them, a combination of large packet length and short wait time might not give the network enough
time to transmit and receive the response, and time-outs can occur. If the network is not given enough
time to transmit and receive the response, it can appear that you do not have connectivity to a system
when, in fact, you do.
Related tasks
Pinging your own system
To test whether packets can reach interfaces on your local area network (LAN), ping the local interface.
Pinging the interface on a network not directly attached to your local network
Ping a remote interface to test whether packets can leave your network and reach a remote system. Ping
a remote Domain Name System (DNS) to make sure your system can resolve domain names.
Trace route
The trace route function allows you to trace the route of IP packets to a user-specified destination system
so you can locate the connectivity problem.
The route can involve many different systems along the way. Each system along the route is referred to as
a hop. You can trace all hops along the route or specify the starting and ending hops to be traced.
ARP ping
Use the ARP ping (ARPING) function, also known as Send ARP Request (SNDARPRQS), to test reachability
of IP version 4 (IPv4) systems on the local LAN by using the Address Resolution Protocol (ARP).
The ARPING function sends a broadcast ARP request on a LAN to solicit a reply from the host that uses
the specified IP address. If that host receives the ARP request, it sends a reply with its link-layer (or MAC)
address. This reply verifies that the IP address is active and reachable on the LAN link. ARPING can test
reachability only to systems on directly connected LAN links.
For example, if your system has an IP interface that is defined on line ETHLINE, to test whether a system
with IP address 10.5.5.1 is reachable on the ETHLINE LAN, type ARPING ’10.5.5.1’ LIND(ETHLINE) at the
command line. The remote system to test must be specified by its IP address.
A successful ARP ping operation reports the MAC address of the remote host and indicates that that IP
address is active and reachable on the local network. An unsuccessful ARP ping operation indicates that
the IP address is not reachable or not active on the local network.
ND ping
Use the Neighbor Discovery ping (NDPING) function, also known as Send Neighbor Solicitation
(SNDNGHSOL), to test reachability of neighboring systems on local IPv6 interfaces by using the IP version
6 (IPv6) Neighbor Discovery (ND) protocol.
The NDPING function sends a multicast Neighbor Solicitation request on an IPv6 network interface to
solicit a reply from the host that uses the specified IP address. If that host receives the Neighbor
Solicitation, it sends a Neighbor Advertisement reply. On LAN IPv6 interfaces, this reply includes its link-
layer (or MAC) address. This reply verifies that the IP address is active and reachable on that IPv6 link.
NDPING can test reachability only to systems on directly connected links.
TCP/IP troubleshooting 15
For example, if your system has an IPv6 interface defined on line ETHLINE, to test whether a system with
IP address 2001:db8:0:1::5:1 is reachable on the ETHLINE link, type NDPING ‘2001:db8:0:1::5:1’
LIND(ETHLINE) at the command line. The remote system to test must be specified by its IP address.
A successful ND ping operation reports the link-layer (or MAC) address of the remote host if the link uses
link-layer addresses (for example an Ethernet link). It also indicates that the IP address is active and
reachable on that link. An unsuccessful ND ping operation indicates that the IP address is not reachable
or not active on the link.
Communications trace
You can use communications trace to determine whether your data is being transmitted correctly across
the network.
Use the communications trace function to troubleshoot TCP/IP. Communications trace is a service
function that allows the data that flows over a communications line, such as a local area network (LAN) or
wide area network (WAN), to be captured for analysis. The communications trace traces only the packets
received by or sent from IBM i. It does not trace other packets flowing on the network. After the data has
been traced, the raw data can be dumped into a stream file, or it can be formatted and placed in a spooled
file to be displayed or printed.
If your system is multihomed, data might be sent on one interface and received on a different interface. In
this situation, you should trace two communications lines to see packets that are sent and received.
Communications trace can be used for troubleshooting both IPv4 and IPv6 communications.
Use communications trace in these situations:
• Your problem analysis procedures do not give enough information about the problem.
• You suspect that a protocol violation is the problem.
• You suspect that line noise is the problem.
• You want to know if your application is transmitting information correctly across the network.
• You want to know if you have performance problems with network congestion or data throughput.
To use the CL commands to perform a communications trace, you must have *SERVICE special authority
defined in your user profile, or you must be authorized to the service trace function of IBM i through IBM
Navigator for i.
The trace connection function is an alternative method of getting a trace that is similar to a
communications trace. See Trace connection for more information.
To use the communications trace function, perform these tasks.
Related tasks
Job trace
Use the job trace tool to trace data in any job to help identify your problem.
Related reference
User profiles
TCP/IP troubleshooting 17
Ending a communications trace
To format and display the trace, you must first end the trace. This action ends the trace but saves the data
in the communications trace buffer.
To end a communications trace, follow these steps:
1. At the command line, type ENDCMNTRC.
2. For the Configuration object prompt, specify the same line you specified when you started the trace,
such as TRNLINE.
3. For the Type prompt, specify the type of resource, either *LIN or *NWI.
TCP/IP troubleshooting 19
After reading the preliminary information, page down to the actual TCP/IP data in the communications
trace. A row of titles, starting with Record Number, identifies each section of the data records. Each record
TCP/IP troubleshooting 21
line or network interface description, or for all of the traces of a specific type that exist on the system. The
status is returned to you in a message.
To check the status of a communications trace, follow these steps:
1. At the command line, type CHKCMNTRC.
2. For the Configuration object prompt, specify the name of the line, such as TRNLINE, or specify *ALL if
you want to check the status of all traces for a specific type.
3. For the Type prompt, specify the type of resource, either *LIN or *NWI.
Trace connection
You can trace encrypted data to locate the source of the problem by using trace connection. Trace
connection is especially useful for connections, such as Loopback and OptiConnect, that do not support
the general communications trace function.
The Trace Connection (TRCCNN) command is a service function that provides output similar to the general
communications trace. The TRCCNN SET(*ON) TRCTYPE(*IP) SIZE(128000) command traces data at the
Licensed Internal Code TCP/IP layer.
Trace connection is useful for situations in which the general communications trace is not available or not
effective. For example:
• You have TCP applications that use Secure Sockets Layer (SSL) or you use IP security. In either case, the
data that flows over the communications line is encrypted. Therefore, the general communications trace
might not be helpful if you need to see the data. Trace connection traces the data before encryption and
after decryption and therefore, can be used when the general communications trace is not effective.
• You are using TCP/IP over a connection that does not support the general communications trace
function, such as Loopback, OptiConnect, or Twinaxial. In this situation, you can use the trace
connection as an alternative method for generating a trace.
To use the CL commands to perform a trace connection, you must have *SERVICE special authority
defined in your user profile, or be authorized to the Service Trace function of IBM i through IBM Navigator
for i.
Related reference
User profiles
Trace Connection (TRCCNN) command
Job trace
Use the job trace tool to trace data in any job to help identify your problem.
Job trace is a problem analysis tool that allows you to look at what any application is doing. Use job trace
as a first step in locating a problem with an application. You can turn on job trace in any job to see the call
and return flows of that application. Job trace records the raw data and then stores it in a set of database
files.
The job trace is performed using a series of CL commands, such as Start Trace (STRTRC), End Trace
(ENDTRC), and Print Trace (PRTTRC). Starting a job trace consumes relatively few system resources.
However, ending the job trace and printing the job trace require more time and processing resources. If
you have a limited amount of interactive capability available on your system, you might want to submit the
ENDTRC and PRTTRC commands to batch.
Use job trace in these situations:
• You want to debug any job on your system. See the server table information to understand the
correlation between the servers and the applications and jobs they represent.
• You want to troubleshoot your sockets application.
• You are developing an application for IBM i and encounter a problem. By tracing the application, you can
identify the problem.
TCP/IP troubleshooting 23
To use the CL commands to perform a job trace, you must have *SERVICE special authority defined in your
user profile, or be authorized to the service trace function of IBM i through IBM Navigator for i.
Use the following job trace instructions as a guide. The example demonstrates how to use job trace to
troubleshoot a sockets application. Sockets adds information to the job trace output when errors are
returned on the sockets APIs. You might need to specify different parameters, depending on the type of
application you are troubleshooting. Note that communications trace is also useful when troubleshooting
sockets applications.
Related tasks
Communications trace
You can use communications trace to determine whether your data is being transmitted correctly across
the network.
Related reference
Server table
You can use this server table as a reference to find out how servers, server jobs, job descriptions, and
subsystems are mapped to one another.
TCP/IP troubleshooting 25
Note: The PRTTRC (Print Trace) command can use a substantial amount of processing time and
resources. If you have a limited amount of interactive capability available on your system, you might want
to submit the PRTTRC to batch.
Related reference
Print Trace Data (PRTTRC) command
TCP/IP troubleshooting 27
You should see QSCCMNxxxx session listed under Trace type. Note that CMN in the middle of the
session identifier indicates that the watch session was started by the STRCMNTRC command. xxxx
indicates a unique identifier for the watch session.
3. Verify that the watch support is running:
• At the command line, type WRKACTJOB SBS(QUSRWRK).
• You should see the watch job QSCCMNxxxx running in the QUSRWRK subsystem. The job is
typically in DEQW status if the watched message has not been sent.
4. After the TCP2617 message is sent to the QUSRSYS/QTCP message queue, you should verify that the
trace has ended:
• At the command line, type DSPMSG MSGQ(*QTCP).
• You should see the CPI3999 message which indicates that the QSCCMNxxxx watch session
associated with STRCMNTRC command was ended because of reason code 02. Reason code 02
indicates the following: Watch for event criteria met because of message id
TCP2617 found in QUSRSYS/QTCP.
• You can also verify that the watch session has ended using WRKWCH command as indicated in step
2.
5. Format the trace output using the Print Communications Trace (PRTCMNTRC) command to analyze the
collected trace data. You might see that information is sent to the remote system but a response is not
sent back. This indicates that the problem lies outside the local system.
Watch parameters
Here are the parameters that you can use to specify watch criteria for watch support.
The trace commands have the following parameters to specify the watch criteria. See the trace
commands help information for the descriptions of each parameter:
• Watch for message (WCHMSG)
• Watched message queue (WCHMSGQ)
• Watched job (WCHJOB)
• Watch for LIC log entry (WCHLICLOG)
• Length of time to watch (WCHTIMO)
• Trace program (TRCPGM)
• Time interval (TRCPGMITV)
/*********************************************************/
/* THIS IS A SAMPLE CODE FOR WATCH FOR TRACE EVENT */
/* FACILITY */
/* */
/* FUNCTION: WHEN THE TRACE OPTION SETTING PARAMETER */
/* INDICATES THAT A MESSAGE ID MATCHED WITH THE ONE BEING*/
/* WATCHED, THIS PROGRAM WILL PRINT THE HISTORY LOG AND */
/* STOP THE TRACE COMMAND EXECUTION. OTHERWISE, THIS */
/* WILL INDICATE TO CONTINUE WITH THE EXECUTION. */
/* */
/* NOTE: MYLIB/MYOBJECT IS A DATA AREA THAT IS */
/* CONTINUOUSLY CHANGING DURING THE PROCESS. THE USER */
/* WANTS TO DUMP IT PERIODICALLY TO CHECK HOW ITS */
/* CONTENT IS CHANGING AND WHAT IS THE FINAL VALUE */
/* WHEN THE WATCHED MESSAGE OCCURS. THIS DATA AREA */
TCP/IP troubleshooting 29
/* WILL BE DUMPED AT THE BEGINNING (*ON), WHEN THE */
/* INTERVAL TIME ELAPSES (*INTVAL), AND WHEN THE */
/* WATCHED MESSAGE OCCURS (*MSGID) */
/* */
/* THE FOLLOWING IS AN EXAMPLE OF THE WATCH FOR TRACE */
/* EVENTS PARAMETERS, AS THEY WOULD BE SPECIFIED FOR A */
/* TRACE COMMAND ISSUING THE CURRENT SAMPLE CODE: */
/* */
/* WCHMSG((CPF0001)) TRCPGM(MYLIB/WCHEXTP) TRCPGMITV(30) */
/*********************************************************/
PGM PARM(&TRCOPTSET &RESERVED &OUTPUT &COMPDATA)
DCL VAR(&TRCOPTSET) TYPE(*CHAR) LEN(10) /* +
Reason why the program was called */
DCL VAR(&RESERVED) TYPE(*CHAR) LEN(10) /* This +
parameter is only used of TRCTCPAPP +
command and it is not relevant for Watch +
for Trace Event Facility */
DCL VAR(&OUTPUT) TYPE(*CHAR) LEN(10) /* +
Indicates if watch facility should stop +
or continue running */
DCL VAR(&COMPDATA) TYPE(*CHAR) LEN(92) /* Not +
needed for this sample */
/*********************************************************/
/* BEGIN OF PROGRAM PROCESSING */
/*********************************************************/
IF COND(&TRCOPTSET *EQ '*ON ') THEN(DO) +
/* If the program was called at the +
beginning of the processing. */
/* This section is usually used to set up +
the environment before the trace starts */
DMPOBJ OBJ(MYLIB/MYOBJECT) OBJTYPE(*DTAARA) /* Dump +
Object for problem determination */
CHGVAR VAR(&OUTPUT) VALUE('*CONTINUE ') /* Let the +
trace to continue running */
ENDDO /* End if *ON */
ELSE CMD(IF COND(&TRCOPTSET *EQ '*MSGID ') +
THEN(DO)) /* If the message id matched */
DSPLOG LOG(QHST) OUTPUT(*PRTSECLVL) /* Print the +
History Log */
DMPOBJ OBJ(MYLIB/MYOBJECT) OBJTYPE(*DTAARA) /* Dump +
object for problem determination */
CHGVAR VAR(&OUTPUT) VALUE('*STOP ') /* +
Indicates Watch Facility to Stop */
ENDDO /* End if *MSGID */
ELSE CMD(IF COND(&TRCOPTSET *EQ '*INTVAL ') +
THEN(DO)) /* If the exit program was +
called because the interval +
elapsed */
/* This section is usually used to perform +
tasks periodically. Like dumping objects, +
checking conditions and optionally end +
the watch facility */
DMPOBJ OBJ(MYLIB/MYOBJECT) OBJTYPE(*DTAARA) /* Dump +
object for problem determination */
CHGVAR VAR(&OUTPUT) VALUE('*CONTINUE ') /* Let the +
trace and the watch facility to continue +
running */
ENDDO /* End if *INTVAL */
ELSE CMD(CHGVAR VAR(&OUTPUT) VALUE('*CONTINUE ')) +
/* Otherwise, watch facility will +
continue running */
ENDPGM
Related reference
Example: Modifying the exit program
Using the example exit program as a starting point, you can modify the code to allow the program to
perform additional function.
TCP/IP troubleshooting 31
Trace option setting parameter value Sample functions that can be performed
*WCHTIMO To set the environment back to the initial status.
For example:
• End a process
• Run commands
• Change some special values
Related reference
Example: Watch exit program
This is sample code for a watch trace exit program. It is written in control language (CL).
Troubleshooting tips
These troubleshooting tips enable you to solve basic TCP/IP problems.
You can find out how to check logs and verify that your interfaces and other network components are
active.
If you are experiencing problems related to TCP/IP, you should check for error messages in the QTCP
message queue located in library QUSRSYS. Many errors relating to TCP/IP functions get logged in this
message queue. To display the QTCP messages, enter DSPMSG QUSRSYS/QTCP on the command line.
Server table
You can use this server table as a reference to find out how servers, server jobs, job descriptions, and
subsystems are mapped to one another.
Use this table to locate a variety of information related to specific servers.
The first column provides the following information:
Server name:
The server name identifies the server. In most cases, this is the name of the server as it appears in
IBM Navigator for i.
To start:
The method that is used to start the server. Some servers are started by using CL commands, such as
STRTCPSVR *DHCP. Other servers start when certain subsystems or jobs are started.
To end:
The method that is used to end the server. Some servers are ended by using CL commands, such as
ENDTCPSVR *DHCP. Other servers end when certain subsystems are ended.
Product:
The name of the licensed product under which this server is shipped.
Server type:
The server type is a 30 byte character string that uniquely identifies the server to the system. All IBM-
supplied servers have their server type begin with QIBM_. The server type is set by the server job
using the Change Job API.
STRNFSSVR *BIO
To End:
ENDNFSSVR *BIO
Product: 5770-SS1
Server Type: QIBM_NFS_BIOD
Server Description: The Network File System client might use the Block I/O
daemon to handle bulk I/O traffic.
TCP/IP troubleshooting 33
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
STRTCPSVR *DHCP
To End:
ENDTCPSVR *DHCP
Product: 5770-SS1
Server Type: QIBM_BOOTP_DHCP_RA
Server Description: Forwards Bootstrap Protocol (BootP) and Dynamic Host
Configuration Protocols (DHCP) packets from the local system to one or
more different DHCP servers.
STRTCPSVR *BOOTP
To End:
ENDTCPSVR *BOOTP
Product: 5770-SS1
Server Type: QIBM_BOOTP
Server Description: Provides a dynamic method for associating
workstations with servers, or for assigning workstation IP addresses and
initial program load (IPL) sources.
STRMGDSYS
To End:
ENDMGDSYS
Product: 5770-MG1
Server Type: QIBM_CCSERVER
Server Description: Handles the distribution of integrated file system
objects that are sent to the change control server.
QIBM_OS400_QZBS_SVR_CENTRAL
To End:
ENDHOSTSVR *CENTRAL
Product: 5770-SS1
Server Type:
QIBM_OS400_QZBS_SVR_CENTRAL
To End:
ENDTCPSVR *CIMOM
QIBM_CLUSTER_RESOURCE_SERVICES
QIBM_CLUSTER_RESOURCE_SERVICES
QIBM_CLUSTER_RESOURCE_SERVICES
Clustered Hash Table (CHT) Server QGPL/QDFTJOBD QSYSWRK Clustered Hash N/A No port is
table (CHT) name used
To Start:
STRCHTSVR
To End:
ENDCHTSVR
Product: 5770-SS1
Server Type: QIBM_CHT
Server Description: Enables applications to store and retrieve data that
must be highly available across the cluster.
QIBM_COLLECTION_SERVICES
Server Description: Is a set of jobs that perform the system functions for
collection services and real-time performance data collection.
TCP/IP troubleshooting 35
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
QIBM_COLLECTION_SERVICES
QIBM_COLLECTION_SERVICES
QIBM_COLLECTION_SERVICES
QIBM_COLLECTION_SERVICES
Connect FlowManager Same as user profile QCONNECT QBEFMNTR N/A No ports are
QBEFSRVR used
To Start: Starts using Connect Web Admin interface
To End: Ends using Connect Web Admin interface
Product: 5733–CO2
Server Type: QIBM_CONNECT_FM
Server Description: This server takes extensible markup language (XML)
request messages from the Connect Delivery Gateway. It routes those
messages to a series of applications that process the request message and
generates a response message.
STRTCPSVR
To End:
ENDTCPSVR
Customer Information Control System (CICS®) TCP/IP Server Specified in CICS's CICS's control AEGWPWKR and N/A 1435 (ibm-
control region user profile region AEGWPSSN cics)
To Start:
subsystem
STRCICS
To End:
ENDCICS
Product: 5770-DFH
Server Type: QIBM_CICS
Server Description: Provides CICS support over TCP/IP.
QIBM_OS400_QZBS_SVR_DATABASE
QIBM_OS400_QZBS_SVR_DATABASE
QIBM_OS400_QZBS_SVR_DATABASE
QIBM_OS400_QZBS_SVR_DTAQ
TCP/IP troubleshooting 37
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
To End:
ENDHOSTSVR *DTAQ
Product: 5770-SS1
Server Type:
QIBM_OS400_QZBS_SVR_DTAQ
Db2® Mirror Receiver Jobs QSYS/QMRDBORCVR QSYSWRK QMRDBORCVR *NO RDMA port
932
To Start: Starts automatically by Db2 Mirror engine when mirroring is active.
To End: Ends automatically when mirroring is stopped.
Product: 5770-SS1
Server Type:
QIBM_MRDB_ORVCR
Dynamic Host Configuration Protocol (DHCP) server QSYS/QTODDJDS QSYSWRK QTODDHCPS *NO 67 (dhcps)
To Start: 942
STRTCPSVR *DHCP
To End:
ENDTCPSVR *DHCP
Product: 5770-SS1
Server Type: QIBM_DHCP
Server Description: Passes configuration information to hosts on a TCP/IP
network. DHCP enables client systems to get network configuration
information, including an IP address, from a central DHCP server.
Domain Name System (DNS) server QDNS/QTOBJOBD QSYSWRK QTOBDNS (BIND 4) *NO 53 (domain)
To Start: QTOBDxxxxx (BIND
8, xxxxx chosen by
STRTCPSVR *DNS customer)
To End:
STRTCPSVR *DNS
Domino® server Same as subsystem Notes® Job names vary *NO Configurable
subsystem or (typically
To Start:
configurable 1352)
STRTCPSVR *DOMINO
or
STRDOMSVR
To End:
ENDTCPSVR *DOMINO
or
ENDDOMSVR
Product:
Domino 6.5.x: 5733-L65 or later
Server Type: QIBM_DOMINO
Server Description: Runs on multiple hardware and operating system
platforms. Lotus® Domino includes e-mail, groupware, workflow, calendar
and scheduling, and Web server functions.
QIBM_OS400_QRW_SVR_DDM_DRDA
DRDA DDM Server TCP/IP Listener Job description in QUSER QSYSWRK QRWTLSTN *YES 446
profile (default is QGPL/ (drda)
To Start:
QDFTJOBD) 447
(ddm)
STRTCPSVR *DDM
448
(ddm-ssl)
To End:
ENDTCPSVR *DDM
Product: 5770-SS1
Server Type:
QIBM_OS400_QRW_SVR_DDM_DRDA
Extended Dynamic Remote SQL QSYS/QXDAJOBD QSYSWRK QXDAEDRSQL *NO 4402 (as-
edrsql)
To Start:
STRTCPSVR *EDRSQL
To End:
ENDTCPSVR *EDRSQL
Product: 5770-SS1
Server Type: QIBM_EDRSQL
Server Description: Performs extended dynamic SQL and related functions
on either a remote or local system. For more information, see APIs by
category
TCP/IP troubleshooting 39
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
File Server Daemon and Server QSYS/QZBSJOBD QSERVER QPWFSERVSD *YES 8473
To Start: STRHOSTSVR *FILE (Requires QSERVER up) (as-file)
8477
To End: ENDHOSTSVR *FILE (as-netdrive)
Product: 5770-SS1 9473
(as-file-s)
Server Type:
QIBM_OS400_QZBS_SVR_FILE
ENDSBS QSERVER
QIBM_OS400_QZBS_SVR_FILE
ENDSBS QSERVER
QIBM_OS400_QZBS_SVR_FILE
To End:
ENDTCPSVR *FTP
Product: 5770-TC1
Server Type: QIBM_FTP
Server Description: Transfers data between local and remote hosts. FTP
consists of a client, from which FTP requests are issued, and the server,
where client requests are processed.
Graphical Debug Server (Hub) QGPL/QDFTJOBD QSYSWRK QTESDBGHUB *NO 4026 (as-
debug)
To Start:
STRTCPSVR *DBG
To End:
ENDTCPSVR *DBG
Product: 5770-SS1
Server Type: QIBM_DEBUG_SERVER
Server Description: Debugs IBM i programs using a graphical debug user
interface. The graphical debug user interface runs on your desktop and
communicates with the Debug server using TCP/IP.
Graphical Debug Server Job description that is QUSRWRK QTESDBGSVR *NO No port is
indicated in the debug used
To Start: Started by the QTESDBGHUB server in the previous entry and is
user profile
attached to a user interface
To End: Ends when the user interface quits
Product: 5770-SS1
Server Type: QIBM_DEBUG_SERVER
ENDTCPSVR *HTTP
QIBM_DIRECTOR_AGENT
QIBM_DIRECTOR
TCP/IP troubleshooting 41
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
IBM Tivoli® Directory Server for IBM i QSYS/QDIRSRV QSYSWRK QUSRDIR *YES 389 (ldap)
To Start: (default). 636 (ldaps)
Name of the
STRTCPSVR *DIRSRV instance (for
example,
To End: QDIRSRV)
ENDTCPSVR *DIRSRV
Product: 5770-SS1
Server Type: QIBM_DIRSRV_SERVER_
xxxxx (where xxxxx is the server instance name)
Server Description: Is a Lightweight Directory Access Protocol (LDAP)
server. The IBM Tivoli Directory Server for IBM i allows LDAP-enabled
applications, such as mail applications that look up e-mail addresses, to
store and retrieve information using the LDAP.
STRFNTDWN
To End:
ENDFNTDWN
Product: 5722-IP1
Server Type:
QIBM_IPS_FONTDOWNLOADER
IBM Infoprint Server for iSeries Transform Job QGPL/QDFTJOBD QUSRWRK QADBDAEMON N/A No port is
QXIODAEMON used
To Start: Spawned by transform manager
To End: Ended by transform manager
Product: 5722-IP1
Server Type: QIBM_IPS_TRANSFORM_JOB
Server Description: Converts Adobe PDF 1.3 and PS Level 3 data streams to
IBM Advanced Function Presentation (AFP) data stream. This transform is
indirectly called through the Image Print Transform function of IBM i.
IBM Infoprint Server for iSeries Transform Manager QGPL/QDFTJOBD QUSRWRK QXTRTFMMGR N/A No port is
used
To Start:
STRTFMMGR
To End:
ENDTFMMGR
Product: 5722-IP1
Server Type: QIBM_IPS_TRANSFORM_MGR
Server Description: Manages heavyweight data stream transform jobs for
InfoPrint Server/400-provided transforms.
Integrated Web Application (IAS) Server QGPL/QDFTSVR QHTTPSVR or Name of the *NO User-defined
configurable instance (user port
To Start:
defined)
Note: The
STRTCPSVR *IAS following
ports are
started
To End:
automatically
when the
ENDTCPSVR *IAS HTTP ADMIN
server is
Product: 5770-SS1 started.
Server Type: QIBM_IAS_xxxxx (where xxxxx is the name of the server 2002, 2015
instance) (admin1)
Server Description: Stand-alone WebSphere Application Server Liberty 2004, 2016
profile based lightweight web application server. (admin2)
2006, 2017
(admin3)
2008, 2018
(admin4)
2011, 2019
(admin5)
2005(admin2
SSL/TLS)
2007 (admin3
SSL/TLS)
2012 (admin5
SSL/TLS)
Internet Daemon (INETD) Super Server QSYS/QTOINETD QSYSWRK QTOGINTD *NO 13 (daytime)
To Start: 37 (time)
STRTCPSVR *INETD
To End:
ENDTCPSVR *INETD
Product: 5770-SS1
Server Type: QIBM_INETD
Server Description: Listens for client requests for many different programs.
Using INETD saves system resources by not requiring processes to be
started and listing on ports for services that are not used often. When a
client request is received, INETD generates a process to run the configured
program to handle the request.
Internet PTF Delivery Server Varies, based on user QSYSWRK QESISRV N/A Dynamically
profile starting server assigned
To Start: Starts on demand by iPTF process
To End: Ends by the iPTF process
Product: 5770-SS1
Server Type: QIBM_PTF
Server Description: Allows you to order and download PTFs using the
Internet.
IBM i Access for Web PDF Server Job description in QUSER QSYSWRK QIWAPDFSRV N/A 8490 (as-
profile (defaults to QGPL/ QJVACMDSRVA iwapdfsrv)
To Start: Starts by the printer servlet support of IBM i Access for Web when
QDFTJOBD)
any user needs to transform a spooled file to PDF using InfoPrint Server
support.
To End: Ends when you end the QIWAPDFSRV job.
Product: IBM i Access for Web (5770-XH2)
Server Type: QIBM_IWA_PDF_SVR
TCP/IP troubleshooting 43
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
Licensed Internal Code 3494 TCP/IP Tape Server None None None N/A 3494
(ibm3494)
To Start: Started by the Licensed Internal Code when a 3494 tape library is
varied on.
To End: Ended by the Licensed Internal Code when the last 3494 tape
library is varied off.
Product: 5761–999
Server Type: QIBM_TASK_TCPIPTAPE
Line Printer Daemon (LPD) QTCP/QTMPLPD QSYSWRK QTLPD* *NO 515 (lpd)
To Start:
STRTCPSVR *LPD
To End:
ENDTCPSVR *LPD
Product: 5770-TC1
Server Type: QIBM_LPD
Server Description: Receives files sent by the Line Printer Request (LPR).
You can use the LPD server to receive spooled files from another system, or
you can use the LPD server to receive print output from another system.
STRMGDSYS
To End:
ENDMGDSYS
Product: 5770-MG1
Server Type: QIBM_MANAGED_SYSTEM
Server Description: Monitors scheduled jobs and the control language (CL)
input streams that are run as a result of activities received from the central
site system.
Server Description:
Performs work for the Management Central server.
Product: 5770-SS1
Server Type: QIBM_MGMTCENTRAL
Server Description: Manages multiple systems from a single system in the
TCP/IP network. You use this central system to manage the other systems
(called endpoint systems) in your network. After you add endpoint systems
to your network, you only need to do your system administration tasks once.
Your central system initiates your tasks and stores all Management Central
data.
STRNFSSVR *MNT
To End:
ENDNFSSVR *MNT
Product: 5770-SS1
Server Type: QIBM_NFS_MNTD
Server Description: Is a Remote Procedure Call (RPC) registered Network
File System (NFS) service that handles mount and unmount requests for NFS
clients.
STRMQMLSR
To End:
ENDMQMLSR
Product: 5724-B41
Server Type: QIBM_MQSERIES
Server Description: Provides the infrastructure for mission-critical
communication between applications, either within an organization or
business to business.
TCP/IP troubleshooting 45
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
STRNFSSVR *NLM
To End:
ENDNFSSVR *NLM
Product: 5770-SS1
Server Type: QIBM_NFS_NLMD
Server Description: Is a RPC-registered NFS service that provides byte-
range locking for NFS files.
QIBM_OS400_QZBS_SVR_NETPRT
ENDHOSTSVR *NETPRT
Product: 5770-SS1
Server Type:
QIBM_OS400_QZBS_SVR_NETPRT
QYTCV2/
CALL QYTCV2/QYTCUSVR ('STRTCPSVR ') QYTCNSLD
To End:
STRNFSSVR *NSM
To End:
ENDNFSSVR *NSM
Product: 5770-SS1
Server Type: QIBM_NFS_NSMD
Server Description: Provides applications with information about the status
of network hosts. The Network Lock Manager (NLM) daemon uses the NSM
to track network hosts that have locks.
STRNFSSVR *SVR
To End:
ENDNFSSVR *SVR
Product: 5770-SS1
Server Type: QIBM_NFS_NFSD
Server Description: Stores files on a system and allows clients in the
network to access and use the single set of files. NFS is typically used to
share files among UNIX-type systems.
To End:
ENDTCPSVR *ONDMD
STRTCPSVR *ONDMD
To End:
ENDTCPSVR *ONDMD
QRDARS/
STRTCPSVR *ONDMD QRDARS400
To End:
ENDTCPSVR *ONDMD
TCP/IP troubleshooting 47
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
Portable Applications Solutions Environment (PASE) syslog Varies (User can choose) Varies (User PGM-syslogdAlso N/A UDP 514
can choose) user-defined (syslog)
To Start: Starts by running /usr/sbin/syslogd in IBM i PASE
To End: ENDJOB CL command or the kill utility in IBM i PASE
Product: 5770-SS1 Option 33
Server Type: Not applicable
Post Office Protocol (POP) QTCP/QTMMTPS QSYSWRK QTPOP* *NO 110 (POP3)
To Start: 995 (POP
SSL)
STRTCPSVR *POP
To End:
ENDTCPSVR *POP
Product: 5770-TC1
Server Type: QIBM_POP
Server Description: Allows the system to store e-mail for clients who use
POP for their e-mail. E-mail is stored on the server until clients request it, at
which time the mail is forwarded to the client and deleted from the server.
STRTCPSVR *QOS
To End:
ENDTCPSVR *QOS
Product: 5770-SS1
Server Type: QIBM_QOS
Server Description: Provides Network Quality of Service functions for the
system. These services include: Differentiated Services that allow a user to
specify special handling for TCP/IP connections and Integrated Services that
allow applications using the RSVP internet protocol to request special
handling for TCP/IP connections.
STRTCPSVR *QOS
To End:
ENDTCPSVR *QOS
Product: 5770-SS1
Server Type: QIBM_QOS
STRMGDSYS
To End:
ENDMGDSYS
Product: 5770-MG1
Server Type: QIBM_REMOTE_COMMAND
Server Description: Accepts the remote commands from central site
systems. From any location in your network, you can send commands to run
on distributed systems that have Managed System Services installed.
QIBM_OS400_QZBS_SVR_RMTCMD
To End:
ENDHOSTSVR *RMTCMD
Product: 5770-SS1
Server Type:
QIBM_OS400_QZBS_SVR_RMTCMD
STRTCPSVR *REXEC
To End:
ENDTCPSVR *REXEC
Product: 5770-TC1
Server Type: QIBM_REXEC
Server Description: Allows a client user to send system commands to a
remote system for processing. When RExec receives a client request, it first
validates the user profile and password and then runs the requested
command. The results are returned to the client.
STRTCPSVR *ROUTED
To End:
ENDTCPSVR *ROUTED
Product: 5770-SS1
Server Type: QIBM_ROUTED
Server Description: Provides dynamic routing. Dynamic routing deals with
the ability to determine how to route traffic based upon a changing network
topology.
Remote Procedure Call (RPC) QSYS/QP0LRPCD QSYSWRK QNFSRPCD *NO 111 (sunrpc)
To Start:
STRNFSSVR *RPC
To End:
ENDNFSSVR *RPC
Product: 5770-SS1
Server Type: QIBM_NFS_RPCD
Server Description: Runs Network File System daemons and other
commands.
TCP/IP troubleshooting 49
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
Secure Shell daemon (SSHD) QGPL/QDFTSVR QUSRWRK QP0ZSPWP / PGM- *NO 22 (ssh)
sshd
To Start: STRTCPSVR SERVER(*SSHD)
To End: ENDTCPSVR SERVER(*SSHD)
Product: 5733-SC1
Server Type: QIBM_SSHD
Description: Accepts incoming secure shell protocol (SSH) connections. SSH
verifies the authenticity of the client and the server. All of the data is
encrypted as it travels on the network.
STRHOSTSVR *SVRMAP
To End:
ENDHOSTSVR *SVRMAP
Product: 5770-SS1
Server Type:
QIBM_OS400_QZBS_SVR_SVRMAP
Server Description: Allows the client to find the port of the particular
service. The client sends in a request with the service name, and the port
mapper looks up the service in the service table and returns the port number
to the client.
Service Agent Hardware Problem Reporting QSYS/QS9SRVAGT QSYSWRK QS9PRBMON N/A No port is
QS9PALMON used
To Start: Started by autostart job, or STRSRVAGT command
To End: ENDSRVAGT command
Product: 5770-SS1
Server Type: QIBM_SERVICE_AGENT_PRB
ENDJOB
Product: 5770-SS1
Server Type: QIBM_SERVICE_AGENT_INV
Service Location Protocol (SLP) Server QSYS/QYPSJOBD QSYSWRK QSLPSVR *YES 427
To Start: STRTCPSVR *SLP
To End: ENDTCPSVR *SLP
Product: 5770-SS1
Server Type: QIBM_SLP_SERVER
Server Description: Allows the registration and discovery of services. Used
by IBM Director.
To End:
ENDHOSTSVR *SIGNON
Product: 5770-SS1
Server Type: QIBM_OS400_QZBS_SVR_ SIGNON
Simple Network Time Protocol Service QSYS/QTOTNTP QSYSWRK QTOTNTP *NO 123 (ntp)
To Start:
STRTCPSVR *NTP
To End:
ENDTCPSVR *NTP
Product: 5770-SS1
Server Type: QIBM_NTP
Server Description: Provides time synchronization services to other
systems.
Simple Mail Transfer Protocol (SMTP) Bridge Client QUSRSYS/ QSYSWRK or QTSMTPBRCL *YES No port is
QTMSMTPS configurable used
To Start:
CHGSMTPA DIRTYPE(*SDD)
STRTCPSVR *SMTP
To End:
ENDTCPSVR *SMTP
Product: 5770-TC1
Server Type: QIBM_SMTP_BR_CLIENT
Server Description: Converts Systems Network Architecture distribution
services (SNADS) outbound mail to simple SMTP mail for an SMTP client to
send, only for directory type *SDD.
CHGSMTPA DIRTYPE(*SDD)
STRTCPSVR *SMTP
To End:
ENDTCPSVR *SMTP
Product: 5770-TC1
Server Type: QIBM_SMTP_BR_SERVER
Server Description: Creates an mail server framework (MSF) message and
stream file from the inbound mail received from the SMTP server, only for
directory type *SDD.
STRTCPSVR *SMTP
To End:
ENDTCPSVR *SMTP
Product: 5770-TC1
Server Type: QIBM_SMTP_CLIENT
TCP/IP troubleshooting 51
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
CHGSMTPA DIRTYPE(*SDD)
STRTCPSVR *SMTP
when configured
To End:
ENDTCPSVR *SMTP
Product: 5770-TC1
Server Type: QIBM_SMTP_MAIL_SCHED
Server Description: Sets the time intervals that you want the system to
connect to your Internet service provider (ISP) and send your e-mail, only for
directory type *SDD.
STRTCPSVR *SMTP
To End:
ENDTCPSVR *SMTP
Product: 5770-TC1
Server Type: QIBM_SMTP_SERVER
Simple Network Management Protocol (SNMP) Agent QSYS/QSYSWRK QSYSWRK QSNMPSA *NO No port is
used
To Start:
QSYS/QTMSNMP QSYSWRK QTMSNMPRCV *NO 161 (snmp)
STRTCPSVR *SNMP
QSYS/QTMSNMP QSYSWRK QTMSNMP *NO 161 (snmp)
To End:
QSYS/QTMSNMP QSYSWRK QTMSNMPINF *NO 10164
ENDTCPSVR *SNMP
Product: 5770-SS1
Server Type: QIBM_SNMP
Server Description: Supports the exchange of network management
messages and information among hosts.
ENDTRPMGR
Product: 5770-ST1
Server Type: QIBM_SQL
Server Description: Processes SQL statements from an application that is
running SQL in server mode. In server mode, each SQL connection is
processed by a separate job.
STRSYSMGR
To End:
ENDSYSMGR
Product: 5770-SM1
Server Type: QIBM_SYSTEM_MANAGER
Server Description: Receives PTF requests, service requests, and test
requests from service requesters.
STRTCPSVR *TELNET
TCP/IP troubleshooting 53
Server name Job description Subsystem Job name Shipped Default port
default
value for
autostar
t
paramet
er
ENDTCPSVR *TELNET
Product: 5770-TC1
Server Type: QIBM_TELNET_SERVER
Server Description: Signs on to an interactive job on the system from
another system in a TCP/IP network with a Telnet client.
STRTCPSVR *TFTP
To End:
ENDTCPSVR *TFTP
Product: 5770-SS1
Server Type: QIBM_TFTP
Server Description: Provides basic file transfer functions with no user
authentication.
Virtual Private Networking (VPN) Connection Manager QSYS/QTOVMAN None QTOVMAN *NO No port is
used
To Start:
STRTCPSVR *VPN
To End:
ENDTCPSVR *VPN
Product: 5770-SS1
Server Type: QIBM_VPN
Server Description: Performs Internet Key Exchange (IKE) protocol
processing and manages all VPN connections. VPN allows you to securely
extend your private intranet over a public network, such as the Internet.
STRTCPSVR *VPN
To End:
ENDTCPSVR *VPN
Product: 5770-SS1
Server Type: QIBM_VPN
STRTCPSVR *VPN
To End:
ENDTCPSVR *VPN
Product: 5770-SS1
Server Type: QIBM_VPN
STRTCPSVR *WEBFACING
To End:
ENDTCPSVR *WEBFACING
Product: 5770-SS1
Server Type: QIBM_WEBFACING
Server Description: Gives a Web-based application access to application
data from interactive programs running on the system.
WebSphere Application Server V8.5 QWAS85/QWASJOBD QWAS85 Configurable server N/A Configurable
name
To Start: Can be started by Qshell or the Web Admin interface Service table
port entries
To End: Can be started by Qshell or the Web Admin interface
are prefixed
Product: 5733–W85 with 'was85'
For more
information
about the
default ports,
see Port
number
settings in
WebSphere
Application
Server
Network
Deployment
8.5.5.
Related concepts
Using Netstat from a character-based interface: Connections
You need to verify the status of your IPv4 and IPv6 connections.
Using Netstat from IBM Navigator for i: Connections
You need to verify the status of your IPv4 and IPv6 connections.
Related tasks
Job trace
TCP/IP troubleshooting 55
Use the job trace tool to trace data in any job to help identify your problem.
Starting a job trace
This action starts a job trace for one or more jobs. You can start any number of trace sessions, but active
trace session identifiers must be unique across the system.
Checking the job logs for error messages and other indication of problems
You can use job logs to help identify the source of your problem.
A job log is a record of the activities associated with a particular job, such as the time an interface started
and processing delays or failures. Job logs help you identify the source of your problem.
To work with job logs, select one of these interfaces.
Changing the message logging level on job descriptions and active jobs
If you are having problems with TCP/IP or the server jobs, you might need to change the message logging
level text value on the job description or on the active job associated with your TCP/IP server.
You should change the message logging level text value from the default value *NOLIST to *SECLVL. The
value *SECLVL causes a job log to be generated. It is helpful to review the job log for messages that can
identify problems.
Note that changes to job descriptions do not affect currently running jobs. You must end and then restart
the server for the change to take effect.
To change the message logging levels on job descriptions or on active jobs, select one of these interfaces.
TCP/IP troubleshooting 57
2. For the Job description prompt, specify the name of the job description, such as MYJOBD.
3. For the Library prompt, specify the library that contains the job description you want to change, and
press Enter.
4. On the Work with Job Descriptions display, select option 2 (Change) in front of the job description you
want to change, and press Enter.
5. On the Change Job Description display, page down to the Message logging.
6. For the Message Logging prompt, type 4 for the Level parameter, 00 for the Severity parameter,
*SECLVL for the Text parameter, and press Enter.
7. You must end and then restart the server for the change to take effect. At the command line, type
ENDTCPSVR *MYSERVER, where MYSERVER is the server you want to stop. Then, type STRTCPSVR
*MYSERVER to restart the server. Be aware that if you only type ENDTCPSVR, the default *ALL will end
all of the TCP servers. If you need to end and restart a server that is not started with the STRTCPSVR
command, you need to specify different commands. See the server table for the appropriate
commands to end and restart those servers.
TCP/IP troubleshooting 59
Starting subsystems
Before you start TCP/IP, start the appropriate subsystems.
The following subsystems should be started before you start TCP/IP:
• QSYSWRK
• QUSRWRK
• QSERVER
QSYSWRK and the controlling subsystem are always started for you by the operating system. QUSRWRK
and QSERVER are started by the IBM-supplied startup program, so unless you have changed the IBM-
supplied startup program these subsystems should be started automatically for you.
If you are using any subsystems other than the IBM-supplied subsystems, you might also need to start
these subsystems before you start TCP/IP.
See the server table to understand how the servers map to the actual jobs and subsystems they
represent.
Starting TCP/IP
Before you can communicate over the network, TCP/IP must be started.
Note: If the STRTCP parameter on the Change IPL Attributes (CHGIPLA) command is set to *YES, TCP/IP
will automatically start when you start the system. However, if you end TCP/IP due to problems, you need
to manually restart TCP/IP.
Starting interfaces
Start the appropriate interfaces to ensure your network communication.
Your network communication might be failing because your interfaces have not been activated.
Remember these tips to ensure your interfaces are functioning correctly.
• Verify that your interfaces are configured and activated by using Netstat. For those interfaces you
always want active, you should specify AUTOSTART (*YES). They will automatically start when TCP/IP is
started.
• If you are using profiles for remote access services, such as Point-to-Point Protocol (PPP) or Layer Two
Tunneling Protocol (L2TP), you should verify that the profiles are active. To verify the status of the
profiles, follow these steps:
1. In IBM Navigator for i, expand IBM i Management > Network > Remote Access Services.
2. Click Originator Connection Profiles or Receiver Connection Profiles depending on the type of
profile you want to verify, and view the list of profiles in the right pane to verify the status. To start a
profile, right-click the profile and select Start.
Starting servers
Start the appropriate servers to avoid trouble communicating over TCP/IP.
The system is shipped with several servers configured to automatically start when TCP/IP starts.
However, you can configure additional servers to automatically start when TCP/IP starts, or you can
manually start the individual servers at any time.
Remember that most subsystems required by your servers must be active before the server starts.
However, some servers start their own subsystems. See the server table to understand how the servers
map to the actual jobs and subsystems they represent.
Note: Servers that are required to run IBM Navigator for i, such as the remote command server, sign-on
server, server mapper, and database server, must be started from the character-based interface.
TCP/IP troubleshooting 61
Starting servers from IBM Navigator for i
You can use IBM Navigator for i to start the servers.
Timing considerations
Timing considerations during startup can affect network communications.
IBM i has the capability to automatically start the necessary subsystems, TCP/IP, lines, interfaces, and
servers at the appropriate times during IPL. In most situations, your network communications will start
smoothly using this automatic startup process.
However, depending on your unique hardware and software configuration you might have problems
starting the network communication due to timing problems during IPL. Timing problems can occur for
several different reasons. For example:
• The processing speed and the number of input-output processors (IOPs) can affect the startup of the
network hardware resource. If your hardware resource is slow to start, it might not be ready when
TCP/IP tries to start. Your network communications fail because the TCP/IP interfaces cannot be
started.
• You might encounter timing problems if you have customized your server so that you are using
subsystems other than the IBM-supplied subsystems. Many subsystems are typically started by the IPL
startup program. However, if you are using customized subsystems that are not recognized by the IPL
startup program, they will not be automatically started at IPL. Your network communications fail
because these subsystems have not been started.
If these types of timing problems occur, you can automatically start the subsystems, TCP/IP, interfaces,
and servers in the correct order by creating a customized IPL startup program. You might need to put
delays in the startup program to ensure that each step of the startup process is initiated at the
appropriate time. For example, the subsystems should be started before TCP/IP, and the interfaces
should be started after the communications resources are available.
To change from using the default IPL startup program to using a customized startup program, follow these
steps:
1. Create a customized startup program.
Things to consider when creating a new startup program:
Note: These steps are defined to ensure that all required resources are active before the next step.
TCP/IP troubleshooting 63
Verifying the LPAR configuration from a character-based interface
You can use a character-based interface to verify the LPAR configuration.
To verify the LPAR configuration, follow these steps:
1. At the command line, type STRSST (Start System Service Tools).
2. Type your Service Tools user ID and password.
3. Select option 5 (Work with system partitions).
4. Select option 3 (Work with partition configuration).
5. Press F10 (Work with Virtual Ethernet Configuration).
6. Verify that all the partitions on the virtual Ethernet are configured to communicate with one another.
TCP/IP troubleshooting 65
Related reference
User profiles
Trace Internal (TRCINT) command
IOP dump
Dump an IOP when requested by your service provider.
This function is typically used at the request of your service provider.
Process dump
Dump a process when requested by your service provider.
These functions are typically used at the request of your service provider.
To use the CL commands to perform a dump, you must have authority to one of these IBM-supplied user
profiles:
• QPGMR
• QSYSOPR
• QSRV
TCP/IP troubleshooting 67
Simple Mail Transfer Protocol
This topic provides several methods for solving problems with Simple Mail Transfer Protocol (SMTP)
and other e-mail applications.
Telnet
This topic assists you with general Telnet problems as well as specific problems related to the
emulation type and to the SSL server. In addition, find out what information is necessary for reporting
the problem.
Virtual private networking
This topic guides you through several troubleshooting strategies for Virtual private networking (VPN)
problems related to connection, configuration errors, filter rules, and more.
For license inquiries regarding double-byte (DBCS) information, contact the IBM Intellectual Property
Department in your country or send inquiries, in writing, to:
The following paragraph does not apply to the United Kingdom or any other country where such
provisions are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION
PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR
IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of
express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically
made to the information herein; these changes will be incorporated in new editions of the publication.
IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this
publication at any time without notice.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in
any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of
the materials for this IBM product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Licensees of this program who wish to have information about it for the purpose of enabling: (i) the
exchange of information between independently created programs and other programs (including this
one) and (ii) the mutual use of the information which has been exchanged, should contact:
IBM Corporation
Software Interoperability Coordinator, Department YBWA
3605 Highway 52 N
Rochester, MN 55901
U.S.A.
Trademarks
IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business
Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be
trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at
"Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.
Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or
trademarks of Adobe Systems Incorporated in the United States, and/or other countries.
70 Notices
Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the
United States, other countries, or both.
Java™ and all Java-based trademarks and logos are trademarks of Oracle, Inc. in the United States, other
countries, or both.
Other product and service names might be trademarks of IBM or other companies.
Notices 71
72 IBM i: TCP/IP troubleshooting
IBM®