Operating System - HP-UX
1755252 Members
6142 Online
108831 Solutions
New Discussion юеВ

Re: How to capture SMPP connection packet?

 
Cheung Sai Man
Occasional Contributor

How to capture SMPP connection packet?

My HPUX machine will have a smpp-connection (bind) to another machine with specified port-number, how can I capture/snoop the packets through this connection into a file?
2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: How to capture SMPP connection packet?

I'm not familiar with SMPP: I assume you might have meant either SMTP or SNMP?

To get network traffic dumps using HP-UX standard tools only, see this document:
http://www.compute-aid.com/nettl.html

Alternatively, HP offers the common open-source tools "tcpdump" and "wireshark" for HP-UX 11.11 and above in the free Internet Express package. Go to http://software.hp.com and run a search for "Internet Express". Then select the Internet Express version that matches your HP-UX version.

Note that you won't need to install the entire Internet Express package set to get these tools: for example, tcpdump can be used by installing just two small packages: Libpcap and Tcpdump.

The basic syntax for grabbing the raw data to file using tcpdump:

tcpdump -i -s 0 -w host and tcp port

Example:
tcpdump -i lan0 -s 0 -w /tmp/file.dmp host somehost.example and tcp port 123

To analyze the dump, you could run:
tcpdump -vvv -X -s 0 -r

For more advanced analysis, you could install Wireshark on your desktop/laptop and then use it to read the files generated using tcpdump.
http://www.wireshark.org/

MK
MK
CharlesC
Advisor

Re: How to capture SMPP connection packet?

Working on SMSC? You can try "nettl" to do the packet capture.
What if...