1832759 Members
2936 Online
110045 Solutions
New Discussion

Re: nettl on HP-UX

 
apichart
Advisor

nettl on HP-UX

If I wanna capture SMPP packet on port 6699. Which command should I use for HP-UX?

nettl? How is the syntax? in Sun we have snoop -o port xxx
3 REPLIES 3
harry d brown jr
Honored Contributor

Re: nettl on HP-UX

Brian Hackley
Honored Contributor

Re: nettl on HP-UX

1. Capture packets
nettl -tn all -e ns_ls_ip -tm 99999 -size 1024 -f some-raw-capture-file

2. Reproduce problem.

3. Turn off trace: nettl -tf -e all

4. Create formatter filter file. Example:
filter tcp_sport 6699
filter tcp_dport 6699

5. Filter the packets:
5.1 "Long" display
netfmt -Nlnc filter-file -f some-raw.capture > formatted.out
5.2 "One-liner" display
netfmt -Nln1Tc filter-file -f some-raw.capture > one-liner.out

Hope that helps,

-> Brian Hackley
Ask me about telecommuting!
Sridhar Bhaskarla
Honored Contributor

Re: nettl on HP-UX

Hi,

If you have 11i, or 11.0 with reasonably latest patches, then there is a command called 'nettladm' that provides an interface to nettl and netfmt commands.

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