ipreport 명령어 (AIX 5.3·6.1)
https://archive.horanglab.com/posts/aix-cmd-ipreport
인쇄 회
핵심 정리
iptrace가 만든 패킷 추적 파일을 사람이 읽을 수 있는 보고서로 바꿉니다.- 많이 쓰는 형태는
ipreport -nrs 파일 > 보고서.txt입니다.-n은 패킷 번호,-r은 RPC(NFS 등) 해석,-s는 줄마다 프로토콜 이름을 붙입니다. iptrace -T로 만든 tcpdump 형식 파일은ipreport -T로 읽습니다(6.1).- 6.1에서는
-N(이름 풀이 안 함),-c 개수,-j 번호(그 패킷부터),-x·-X(16진수 덤프)로 보고서를 줄일 수 있습니다. - 보고서 맨 앞의
TRACING DROPPED xxxx PACKETS는 iptrace가 놓친 패킷 수이지 시스템이 버린 수가 아닙니다.
| 항목 | 내용 |
|---|---|
| 버전 | AIX 5.3, AIX 6.1 (6.1에서 -C, -c, -j, -N, -S, -T, -v, -x, -X, -1 플래그가 더해짐) |
| 원문 | IBM Commands Reference — 5.3 Volume 3, 6.1 Volume 3 |
| 파일 | /usr/sbin/ipreport |
| 관련 명령어 | iptrace, tcpdump, trpt |
목적
지정한 패킷 추적 파일로 패킷 추적 보고서를 만듭니다.
영어 원문
Generates a packet trace report from the specified packet trace file.
구문
5.3:
text
/usr/sbin/ipreport [ -e ] [ -r ] [ -n ] [ -s ] LogFile
6.1:
text
/usr/sbin/ipreport [ -C ] [ -e ] [ -n ] [ -r ] [ -s ] [ -S ] [ -v ] [ -x ] [ -1 ] [ -N ] [ -T ]
[ -c count ] [ -j pktnum ] [ -X bytes ] tracefile
설명
/usr/sbin/ipreport 명령은 iptrace가 만든 추적 파일로 추적 보고서를 만듭니다. LogFile 매개변수는 IP 추적 결과를 담은 파일 이름이며, 이 파일은 iptrace가 만듭니다.
영어 원문
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.
플래그
| 플래그 | 설명 |
|---|---|
-c count |
보여 줄 패킷 수. 6.1부터 |
-C |
체크섬을 검증합니다. 6.1부터 |
-e |
추적 보고서를 EBCDIC 형식으로 만듭니다. 기본은 ASCII입니다. |
-j pktnum |
그 번호의 패킷으로 건너뜁니다. 6.1부터 |
-n |
패킷 번호를 넣어 다른 출력 형식과 쉽게 비교하게 합니다. |
-N |
이름을 풀지 않습니다. 6.1부터 |
-r |
RPC(원격 프로시저 호출) 패킷을 해석합니다. |
-s |
패킷의 줄마다 프로토콜 이름을 앞에 붙입니다. |
-S |
입력 파일이 sniffer에서 만든 것입니다. 6.1부터 |
-T |
입력 파일이 tcpdump 형식입니다. 6.1부터 |
-v |
자세히 보여 줍니다. 6.1부터 |
-x |
패킷을 16진수로 출력합니다. 6.1부터 |
-X bytes |
16진수 덤프를 bytes만큼으로 제한합니다. 6.1부터 |
-1 |
AIX 3.1 운영 체제에서 만든 호환 추적 파일입니다. 6.1부터 |
쓰는 예(원문에는 예 절이 없음):
bash
ipreport -nrs /tmp/ipt.out > /tmp/ipt.txt # 일반 보고서
ipreport -T -nrs /tmp/ipt.pcap | more # iptrace -T로 만든 파일
ipreport -N -c 100 -j 500 /tmp/ipt.out # 500번째부터 100개, 이름 풀이 없이
영어 원문
-ccount — Displays the number of packets.-C— Validates checksum.-e— Generates the trace report in EBCDIC format. The default format is ASCII.-jpktnum — Jumps to the packet number specified by the pktnum variable.-n— Includes a packet number to facilitate easy comparison of different output formats.-N— Does not resolve the names.-r— Decodes remote procedure call (RPC) packets.-s— Prepends the protocol specification to every line in a packet.-S— Generates the input file on a sniffer.-T— Represents the input file in the tcpdump format.-v— Verbose.-x— Prints the packets in the hexadecimal format.-Xbytes — Limits the hexadecimal dumps to the value determined by the bytes variable.-1— Specifies the compatibility trace generated on the AIX Version 3.1 operating system.
Related reference:
- iptrace Daemon
Related information:
- trpt command
리눅스(GNU)와 다른 점
리눅스에는 ipreport가 없고, pcap 파일을 tcpdump -nr 파일, tshark -r 파일 -V(자세히), Wireshark로 읽습니다. AIX의 iptrace -T나 tcpdump 파일도 같은 도구로 볼 수 있습니다.
이 글이 도움이 되었나요?