로그인
Sign in
현재 상태의 Network Trace를 시작해 보겠습니다.

# nettl  -tf  -e  all    ==> turn off tracing

  # netfmt  -N  -n  -l  -f    /var/adm/nettl.LOG00 > LOG00.trace (in 10.20 & 11.00)

  # netfmt  -N  -n  -l  -f    /var/adm/nettl.LOG000 > LOG000.trace (in 11.11 & up)

     (-l  says turn off inverse video)

     ( -n says don't resolve hostnames: display just IP}

     (if  -t  <Number of records> 를 사용하면 최근부터 원하는 수 만큼의 Record만을 display 할 수 있음)

# netfmt -c filter  -n  -l  -f /var/adm/nettl.LOG00 > LOG00.trace (in 10.20 & 11.00)

# netfmt -c filter  -n  -l  -f /var/adm/nettl.LOG000 > LOG000.trace (in 11.11 & up)

     (-c is for passing filter file)

  * filter file 사용법

  1. To view packets sent to and received from an IP address by the host running the nettl trace

     filter  ip_saddr  192.192.192.192   <--- use the IP address of your machine

     filter  ip_daddr  192.192.192.192   <--- use the IP address of your machine

  2. To view packets sent to and received from an Ethernet address by the host running the nettl trace

     filter  source Mac-Address

     filter  dest Mac-Address

  3. To see NFS packets sent to and from the host doing trace

     filter  udp_sport 2049 /* UDP Port 2049 = nfsd */

     filter  udp_dport 2049 /* UDP Port 2049 = nfsd */

  4. To see only telnet packets packets sent to and from the host doing the trace

     filter  tcp_sport 23 /* TCP Port 23 = telnet */

     filter  tcp_dport 23 /* TCP Port 23 = telnet */

  * Examin the "-tracemax" option.  

This will extend the buffer size for the nettl trace so that it will keep a second buffer file (TRC1) from being created.

  # nettl -tn pduin pduout -e all -tracemax 10000 -f /var/adm/nettl.LOG00 (in 10.20 & 11.00)

  # nettl -tn pduin pduout -e all -tracemax 10000 -f /var/adm/nettl.LOG000 (in 11.11 & up)
조회 수 :
1573
추천 수 :
6 / 0
등록일 :
2008.03.18
15:11:31 (*.236.3.225)
엮인글 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2766&act=trackback&key=ed7
게시글 주소 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2766
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 자주 사용하는 명령어 제비게릴라 2019-06-27 179
112 현재 메모리를 가장 많이 사용하는 상위 프로세스 5개의 사이즈, PID, 프로세스이름을 찾아내고자 합니다. 방법은 ? 하록 2008-04-15 481
111 IDS처럼 시스템에 로그인하는 모든 유저의 명령어를 각 파일로 남겨두고자 합니다. 하록 2008-04-15 388
110 FC카드(A6885A/A6884A/A5158A/A6795A )의 LED를 통한 카드 상태확인방법. 하록 2008-04-15 632
109 cstm을 이용하여 logtool data를 취합하는 방법은. 하록 2008-04-15 417
108 LAN Console 설정 방법 하록 2008-04-15 480
107 top으로 보면 각각의 프로세스가 나오는데, 이를 파일로 받으면 정상적으로 받혀지지 않고 한줄로 이어져서 깨져 버립니다. 하록 2008-04-15 476
106 ps -ef 로 보면 command부분이 잘려 나와서 어떤 파일을 사용중인지 알수가 없습니다. 볼수 있는 방법은? 하록 2008-04-15 460
105 Network 관련하여 MTU size를 조정하고 싶습니다. 어떻게 하는지요? 하록 2008-04-15 915
104 appliaction사용시 core dump난 부분에 대한 정보를 얻으려면? 하록 2008-04-15 437
103 syslog.log 파일에 ftp 로그 빼는 방법... 하록 2008-04-15 1064
102 HP-UX에서 Network Printer (Laserjet 5000 series) 설정법 하록 2008-04-11 1436
101 특정 포트를 점유하는 프로그램 확인 하록 2008-04-04 1916
» nettl / netfmt 명령어 하록 2008-03-18 1573
99 awk의 사용 예... 하록 2008-03-18 999
98 GSP에서 Chassis Log를 자세히 보는 방법, 시스템의 Console에서 History기능이 안 될 경우 대처법, 슈퍼돔의 Main Menu에서 CM 으로 들어갔을 때의 중요한 Command 등 하록 2008-03-18 805
97 fcmsutil 커맨드의 사용례 [5] 하록 2008-03-18 5145
96 어떤 user가 어떤 command를 사용하는지 trace 할때 유용하게 사용할 수 있는 방법 하록 2008-03-18 550
95 syslog화일을 remote서버에 기록하는 방법 하록 2008-03-18 492
94 MWA를 이용한 HPUX 자원사용현황 보고서 file 하록 2008-03-18 1136
93 L/N 클래스 시스템에서 GSP/웹 콘솔을 재설정하려면 어떻게 해야 합니까? 하록 2008-03-10 472