TCP dump in AIX environment

2014.12.05 08:54

ischo Views:34563

원문 : http://www.ischo.net -- 조인상 // 시스템 엔지니어

Writer : http://www.ischo.net -- ischo // System Engineer in Replubic Of Korea

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

Writer : http://www.ischo.net -- ischo // System Engineer

+++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

<CASE>

Server : 192.168.0.1

Client : 192.168.0.2

 

Client tries to dump incoming packets when telnet to server.

 

 

 

Command

iptrace / ipreport

 

iptrace Daemon

Purpose

       Provides interface-level packet tracing for Internet protocols.

Syntax

       /usr/sbin/iptrace [ -a ] [ -b ][ -e ] [ -u ] [ -PProtocol_list ] [ -iInterface ] [ -pPort_list ] [ -sHost [ -b ] ] [ -dHost ] [ -L  Log_size ] [ -B
       ] [ -T ] [ -S snap_length] LogFile

 

 

ipreport Command

Purpose

       Generates a packet trace report from the specified packet trace file.

Syntax

       /usr/sbin/ipreport [ -e ] [ -r ] [ -n ] [ -s ] LogFile

       /usr/sbin/ipreport [ -C ] [ -e ] [ -n ] [ -r ] [ -s ] [ -S ] [ -v ] [-x ] [ -1 ] [ -N ] [ -T ] [ -c count ] [ -j pktnum ] [ -X bytes ] tracefile

Description

       The /usr/sbin/ipreport command generates a trace report from the specified trace file created by the iptrace command. The LogFile parameter
       specifies the name of the file containing the results of the Internet Protocol trace. This file is created by the iptrace command.

 

 

Save as tcpdump.bin file which activity is Source IP 192.168.0.2 host, interface en0, TCP port 23.


# iptrace -b -s 192.168.0.2 -i en0 -p 23 tcpdump.bin

[20906126]

 

 

Above command is running at background.

# ps -ef | grep iptrace
    root  8978508 20971746   0 23:35:47  pts/1  0:00 grep iptrace
    root 20906126        1   0 23:35:23      -  0:00 iptrace -b -s 192.168.0.2 -i en0 -p 23 tcpdump.log

 

 

You want to stop dump, send SIGKILL

# kill -9 20906126       

 


Convert tcpdump.bin file to ACSII. (Default type is binary)

# ipreport tcpdump.bin > tcpdump.txt

 

 

 

No. Subject Author Date Views
Notice [공지] 게시자료 열람자유. 불펌금지입니다. 조인상 2010.12.07 120139
211 SAS RAID controller for AIX [1] file ischo 2017.02.04 21392
» TCP dump in AIX environment [1] ischo 2014.12.05 34563
209 Change hostname in AIX ischo 2013.04.30 50214
208 SIGNAL NUMBERS in KILL command ischo 2013.02.16 33949
207 Maximum number of thread per process in AIX ischo 2013.02.06 40696
206 Install Apache webserver(source compile) in AIX 6.1 ischo 2013.02.01 53925
205 How to identify processor core in AIX ischo 2013.01.10 107345
204 Shell script : Check named alive & start that if it dead. [1] ischo 2012.12.26 33495
203 AIX Tuning point - CPU,MEM,VG + FAQ [1] ischo 2012.11.20 47152
202 how to identify process ID which opened specific TCP port without install lsof ischo 2012.10.17 66179
201 p시리즈 장비 OP패널에서 강제 shutdown 방법 조인상 2012.10.13 32453
200 [IBM] x시리즈 M3,M4 블레이드센터 제원 조인상 2012.10.06 26774
199 IBM System x Sales Tech and Sales School 조인상 2012.08.09 31384
198 Power6 System Reference Code 조인상 2012.08.09 31150
197 IBM x3650 M3 Service Guide file 조인상 2012.08.04 31992
196 펌웨어 업그레이드 for old p5 series Servers(SF240-417) file ischo 2012.07.26 29369
195 디버그툴 dbx 사용법 file 조인상 2012.07.26 38894
194 IBM AIX Version 6.1 Differences Guide file 조인상 2012.07.26 48914
193 IBM AIX Version 7.1 Differences Guide file 조인상 2012.07.26 39575
192 p시리즈 펌웨어 업데이트 방법 조인상 2012.07.20 40073
Requesting to the server, please wait.