Operating System - HP-UX
1832964 Members
2511 Online
110048 Solutions
New Discussion

Trying to use nettl or trying to install tcpdump

 
SOLVED
Go to solution
Karim Manji
Occasional Advisor

Trying to use nettl or trying to install tcpdump

We have just recently moved over to the HP-UX platform form IRIX. I have been was using tcpdump to track where our xml transfers were failing. The tcpdump command I would use is
"$ tcpdump -l -v -v -v host IP_Address > /tmp/capture1.txt &".
I have been trying to find out how to do same thing using nettl, I am not finding it easy, its been a long day.
Can anyone tell me how I can use nettl to give me the results, that I got using tcpdump.
OR (I downloaded tcp dump, onto the HP server) If someone would kindly in explain how to install it on the server. I have never downloaded a unix program from the Internet.

TIA
7 REPLIES 7
Vincenzo Restuccia
Honored Contributor

Re: Trying to use nettl or trying to install tcpdump

Rainer von Bongartz
Honored Contributor

Re: Trying to use nettl or trying to install tcpdump

you use something like the following script to trace
network traffic between your host and some other destination :

host=$1
pc=$2
echo "Tracing with $host"

rm /tmp/conslog.opts > /dev/null 2>&1
echo "FILTER IP_SADDR $host" >> /tmp/conslog.opts
echo "FILTER IP_DADDR $host" >> /tmp/conslog.opts
nettl -start
nettl -traceoff -e all
nettl -tn pduin pduout -s 1024 -e lan100 | netfmt -c -N
/tmp/conslog.opts
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Laurent Paumier
Trusted Contributor

Re: Trying to use nettl or trying to install tcpdump

If you're already familiar with tcpdump, you can download a precompiled version from hpux.cs.utah.edu (or nearest mirror). You'll have to get 2 packages : libpcap and tcpdump. Install using swinstall.
Karim Manji
Occasional Advisor

Re: Trying to use nettl or trying to install tcpdump

Sorry, I am no more further.

Vincenzo, I am familar with that man page, but I may be missing something, no where do I find instructions that tell me that once I have the file on the HP Server, which directory to place it on, how to unzip it, etc. Detail information on installing it.

Rainer, I was really excited to try the script you posted. I tried it, but no luck. However, I am tring to learn nettl so I will keep plugging away.

Laurent, I downloaded
"libpcap-0.6.2-sd-11.00.depot.gz" and
"tcpdump-3.6.2-sd-11.00.depot.gz". Do I have to place it in a certain directory? and Do I unzip these or do I just run swinstall?

I thank you for the help. I am going to keep plugging away.
Laurent Paumier
Trusted Contributor
Solution

Re: Trying to use nettl or trying to install tcpdump

You need to unzip and install them :
# gunzip libpcap-0.6.2-sd-11.00.depot.gz
# gunzip tcpdump-3.6.2-sd-11.00.depot.gz
# swinstall -s /path/to/libpcap-0.6.2-sd-11.00.depot '*'
# swinstall -s /path/to/tcpdump-3.6.2-sd-11.00.depot.gz '*'
# /opt/tcpdump/bin/tcpdump ...
Karim Manji
Occasional Advisor

Re: Trying to use nettl or trying to install tcpdump

Laurent,

Thank you so much, I now have tcpdump installed. There are differences in syntax, so I have to look over the man pages.

Karim
Arturo Mtz
Occasional Advisor

Re: Trying to use nettl or trying to install tcpdump

HI

I installed tcpdump 3.4 and libpcap 0.4, but when i want to run tcpdump with a simple command
"tcpdump tcp and port 23" the next error message
"tcpdump: can't find PPA for /dev/lan0"

Thanks
criminal