Operating System - HP-UX
1830898 Members
3019 Online
110017 Solutions
New Discussion

Re: Viewing content of TCP/IP packets for debugging

 
SOLVED
Go to solution
Gulamo Sulemangi
Occasional Contributor

Viewing content of TCP/IP packets for debugging

Hello all,

I work with a HP-9000 running HP-UX, and I am trying to trobleshoot communications problems between remote terminals and the application running on the server. Messages from terminals do not seem to be reaching the server (however, they pass through attached router).

Does anyone know of a HP-UX command or easily obtainable software to see contents of packets arriving in server at a determined IP address and port?

All help is greatly appreciated. Thank you.
8 REPLIES 8
Sajid_1
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

Yes ! 'lsof' is the best tool available for this. It's free and you can download it from the HP-UX porting centre.

HTH
learn unix ..
harry d brown jr
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

tcpdump should do it:

http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/tcpdump-3.7.1/

live free or die
harry
Live Free or Die
Sajid_1
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

again,

get a copy of lsof from here:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/
learn unix ..
Sridhar Bhaskarla
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

Hi,

In the same website as mentioned by Harry, look for "ethereal". It is also a nice tool.

There is a default tool available with HP called nettl.

You can use nettladm (a ascii/gui menu) to capture the packets and analyze them.

Look the man pages of nettl and netfmt if you want to use command line.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Shannon Petry
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

HP has a product called Network Node Manager (hope I got the name correct). I will do most of what you can think of, but Im not sure about viewing packet contents.

For free products several come to mind. tcpdump is the most common tool for this. You may want to look at nmap for a different avenue. ngrep and ntop are two other programs worth investigating.

Most of the programs will only dump the network stream to a raw file. Up to you do filter this file to your liking.

Regards,
Shannon
Microsoft. When do you want a virus today?
sven verhaegen
Respected Contributor

Re: Viewing content of TCP/IP packets for debugging

appart from all the freeware mentioned hewre youi do ahve a HP supported tool on your system to analyse packets , your local HP responce center uses it probably to analyse the network pronlems , it is called NETTL , just look att he man pages , it makes a networking treace of all data comming onto your lanacards and leaving onto your lancards , it's got its limitations and it requires you to know packet structure but if you do you can extract up till th elast bit of information out it , you will also need to format output of this command , therefore you need a second appliaction also standard on the HP_UX , it is called NETFMT .. if you decide to use this tool ,let us know so we can tell you how to use it ...
...knowing one ignores a greath many things is the first step to wisdom...
Tim D Fulford
Honored Contributor

Re: Viewing content of TCP/IP packets for debugging

As per Sven's comments

http://www.compute-aid.com/nettl.html

Tim
-
Bill McNAMARA_1
Honored Contributor
Solution

Re: Viewing content of TCP/IP packets for debugging

you can configure and view nettl logging and tracing via a GUI: nettadm

You can also identify if packets are being received via lanadmin.

netstat -an | more
will also show inbound and outbound connection establishment,

Later,
Bill
It works for me (tm)