Using Diagnostic Utilities As Troubleshooting Tools - HP Rp3440-4 - 9000 - 0 MB RAM Programmer's Manual

Bsd sockets interface programmer’s guide
Hide thumbs Also See for Rp3440-4 - 9000 - 0 MB RAM:
Table of Contents

Advertisement

Programming Hints

Using Diagnostic Utilities as Troubleshooting Tools

Using Diagnostic Utilities as
Troubleshooting Tools
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.
Use ping to verify the physical connection with the
ping
destination node.
Use netstat to display sockets and associations to
netstat
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.
168
Chapter 8

Advertisement

Table of Contents
loading

Table of Contents