You can use the following diagnostic
utilities to help debug your programs. It is helpful if you have
multiple access to the system so you can obtain information about
the program while it is running.
- ping
Use ping
to verify the physical connection with the destination node.
- netstat
Use
netstat to display sockets and
associations to help you troubleshoot problems in your application
programs. Use netstat to determine
if your program has successfully created a connection. If you are
using stream sockets (TCP protocol), netstat
can provide the TCP state of the connection. To check the status
of a connection at any point in the program, use the sleep
(seconds) statement in your program to pause the program. While
the program is paused, execute netstat -a
from another terminal.
- Network Tracing
Network Tracing can be used to trace packets. For
the trace information to be useful, you must have a working knowledge
of network protocols.
- Network Event Logging
Network Event Logging is an error logging mechanism.
Use it in conjunction with other diagnostic tools.
These utilities are described in detail in the Installing
and Administering LAN/9000 manual.