Technical data

Troubleshooting Techniques and Tools
1.2 Isolating Problems
Specify the name of the log file for storing the tracing information. For
example:
$ DEFINE TCPIP$SOCKET_TRACE SYS$LOGIN:TCPIP$SOCKET_TRACE.LOG
Location for process-specific log files
Specify a directory for storing the log files. Each log file name reflects the
name of the process that is being traced. For example:
$ DEFINE /SYSTEM TCPIP$SOCKET_TRACE SYS$SYSDEVICE:[LOGFILES]
The following example shows a sample tracing:
23:35:47.48 +socket family: 2, type: 1, proto: 0
23:35:47.48 -socket chan: 0xf0, st: 0x1, iosb: 0x1 0
23:35:47.48 *setsockopt sock: 0xf0, lev: 0xffff, opt: 0x4, val: 1, len: 4
23:35:47.49 *bind44 socket: 0xf0, st: 0x1, iosb: 0x1 0
23:35:47.50 *listen sock: 0xf0, backlog: 5
23:35:47.51 +accept44 chan: 0xf0
23:35:54.04 -accept44 rtchan: 0x100, st: 0x1, iosb: 0x1 0
23:35:54.04 *getpeername44 sock: 0x100
23:35:54.04 +send_64 sock: 0x100, addr: 0x7AEF7A00, len: 28, flags: 0x0
23:35:54.04 -send_64 st: 0x1, iosb: 0x1 28
23:35:54.04 *shutdown sock: 0x100, how: 2
23:35:54.05 *close sock: 0x100, st: 0x1
23:35:54.05 *close sock: 0xf0, st: 0x1
In this example, you can see the application opening a socket, setting socket
options, binding, listening, accepting, sending data, and so forth.
Lines beginning with a plus sign (+) indicate that the relevent routine is being
entered. There is usually a line beginning with a minus sign (-) soon after, when
the routine returns. For routines that normally return right away, only one line
is displayed, beginning with an asterisk (*).
Note
This facility does not trace QIOs and other system services.
1.2.7 Checking Name Server Operation
After verifying that the underlying transport is working, check to see whether
the remote host can be reached by its host name. If your name server resides
on a remote system, make sure your resolver configuration specifies that system.
To determine whether the resolver is pointing to the correct server, enter the
following command:
TCPIP> SHOW NAME_SERVICE
BIND Resolver Parameters
Local domain: lkg.dec.com
System
State: Started, Enabled
Transport: UDP
Domain: lkg.dec.com
Retry: 4
Timeout: 4
Servers: rufus.lkg.dec.com, peach.lkg.dec.com
Path: lkg.dec.com
Process
Troubleshooting Techniques and Tools 1–23