1. Introduction to Traceoption
1) Introduction to Traceoption
- Cisco Vendor의 Debugging과 유사한 기능
- Juniper 장비의 Background Process 또는 Traffic Flow 모니터링 가능
- 인터페이스, 프로토콜, 기타 여러 Context에서 사용 가능
2) How to configuration Traceoptions
- Traceoption을 구성하기 위해 File 및 Flag 정의가 필요
- File Option을 사용하여 모니터링 정보의 출력물이 저장될 File Name, File Maximum Size, File Count를 구성
- Flag Option을 사용하여 모니터링할 부분을 지정
- Traceoption을 구성하려면 Debug 하려는 Background Process 또는 Traffic Flow의 Context로 진입
- Ex) 인터페이스 관련 정보를 Debug하려면 Interface Context로 진입 후, Traceoption을 구성
- Traceoption 사용 시, 많은 용량을 차지할 수 있으므로 사용하지 않을 때는 Deactivate 또는 Delete하는 것을 권장
3) Example of configuring Traceoptions
(1) ge-0/0/1 인터페이스와 관련된 모든 정보를 Debug
< Traceoption File 구성 >
set interfaces traceoptions file FILENAME
→ File Name 설정
set interfaces traceoptions file size 10000000
→ File Size 설정(10Mbyte)
set interfaces traceoptions file files 10
→ 결과를 저장하는 File 개수 설정
< Traceoption Flag 구성 >
set interfaces ge-0/0/1 traceoptions flag all
root@R1> show log FILENAME
Oct 27 16:37:11 R1 clear-log[9470]: logfile cleared
Oct 27 16:37:20.803918 6138 dcd_ui.c:1139 dcd_commit_check() RSVRD : Created child process with pid 9482
Oct 27 16:37:20.808345 6138 dcd.c:3506 run_daemon() RSVRD : Received SIGCHLD, collecting zombies.
Oct 27 16:37:20.808367 6138 dcd.c:3510 run_daemon() RSVRD : Child with pid 9482 exited
Oct 27 16:37:21.189855 6138 dcd.c:3519 run_daemon() RSVRD : Received SIGHUP, time to reparse.
Oct 27 16:37:21.189906 6138 dcd_intf_as.c:1248 reset_agg_max_links() WARN : reset_agg_max_links: Resetting agg max links!!
Oct 27 16:37:21.190886 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private1__], ifl [em1.0]
Oct 27 16:37:21.190926 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private2__], ifl [lo0.16384]
Oct 27 16:37:21.190930 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private1__], ifl [lo0.16385]
Oct 27 16:37:21.190934 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private1__], ifl [pfe-0/0/0.16383]
Oct 27 16:37:21.190937 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private1__], ifl [pfh-0/0/0.16383]
Oct 27 16:37:21.190941 6138 ddl_config.c:4353 dcd_delete_lr_rttable_info() WARN : Marking DELETE : lrname [null], rt_name [__juniper_private2__], ifl [pfh-0/0/0.16384]
Oct 27 16:37:21.191005 6138 ddl_config.c:1478 read_bridging_domains() RSVRD : IRB interface [irb.10] part of LR [null]
Oct 27 16:37:21.191258 6138 dcd_conf_vnode.c:610 dcd_config_read_virtual_node() WARN : vnode config not present or failed
Oct 27 16:37:21.191323 6138 dcd.c:739 dcd_open_ipmid_mini_config() WARN : Couldn't open mini-config file '/var/etc/dcd.ipmid.conf'
Oct 27 16:37:21.191329 6138 dcd_conf_main.c:444 dcd_config_read() WARN : dcd_config_read: failed to read DCD/IPMID mini-config file
Oct 27 16:37:21.191646 6138 dcd_conf_ifd.c:2457 dcd_config_read_single_interface() WARN : dcd_config_read_single_interface: 2457 interface_name [ge-0/0/1] is_ci_child[0]
Oct 27 16:37:21.191724 6138 parse_sonet_aps_ha.c:1003 aps_ha_parse_ifd() WARN : aps_ha_parse_ifd: Could not update SONET APS HA config info - aps_grp_name , ifdp_name ge-0/0/1
Oct 27 16:37:21.192105 6138 parse_db.c:184 trace_val_obj_diff() RSVRD : IFD Field IFD_DOWN (702) Changed
Oct 27 16:37:21.192181 6138 parse_ats.c:256 is_ats_link() WARN : is_ats_link: link ge-0/0/1 not child of any ats interface
Oct 27 16:37:21.192238 6138 parse_ats.c:256 is_ats_link() WARN : is_ats_link: link ge-0/0/1 not child of any ats interface
Oct 27 16:37:21.192256 6138 parse_sonet_aps_ha.c:1252 aps_ha_parse_iff() WARN : aps_ha_parse_iff: Could not update SONET APS HA config info - aps_grp_name , iffp_name ge-0/0/1, iffp_subunit 0
Oct 27 16:37:21.192284 6138 parse_sonet_aps_ha.c:1120 aps_ha_parse_ifl() WARN : aps_ha_parse_ifl: Could not update SONET APS HA config info - aps_grp_name , iflp_name ge-0/0/1, iflp_subunit 0
~~~ 생략 ~~~
(2) OSPF State와 관련된 정보를 Debug
< Traceoption File 구성 >
set protocols ospf traceoptions file FILENAME
→ File Name 구성
set protocols ospf traceoptions file size 10000000
→ File Size 설정(10Mbyte)
set protocols ospf traceoptions file files 10
→ 결과를 저장하는 File 개수 설정
< Traceoption Flag 구성 >
set protocols ospf traceoptions flag state
root@R1> show log FILENAME
~~~ 생략 ~~~
Oct 27 16:30:15.358637 Interface ge-0/0/1.0 (1.1.2.1) area 0.0.0.0 state changed from Down to PtToPt
Oct 27 16:30:38.133707 OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Down to Init due to HelloRcvd (event reason: Hello message received) (nbr helped: 0)
Oct 27 16:30:38.149273 OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Init to ExStart due to 2WayRcvd (event reason: neighbor detected this router) (nbr helped: 0)
Oct 27 16:30:38.149294 RPD_OSPF_NBRUP: OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Init to ExStart due to 2WayRcvd (event reason: neighbor detected this router)
Oct 27 16:30:38.149969 OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from ExStart to Exchange due to NegotiationDone (event reason: master/slave negotiation completed) (nbr helped: 0)
Oct 27 16:30:38.196802 OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Exchange to Loading due to ExchangeDone (event reason: DBD exchange of slave completed) (nbr helped: 0)
Oct 27 16:30:38.281300 OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Loading to Full due to LoadDone (event reason: OSPF loading completed) (nbr helped: 0)
Oct 27 16:30:38.281320 RPD_OSPF_NBRUP: OSPF neighbor 1.1.2.2 (realm ospf-v2 ge-0/0/1.0 area 0.0.0.0) state changed from Loading to Full due to LoadDone (event reason: OSPF loading completed)
'Network > Juniper Basic' 카테고리의 다른 글
Juniper Packet Capture(pcap) (0) | 2025.05.17 |
---|---|
Juniper Monitor Traffic (0) | 2025.05.15 |
Juniper Configuration Backup (0) | 2024.10.27 |
Juniper Interface Types and Naming (1) | 2024.10.25 |
Juniper Candidate vs Active Configuration (0) | 2024.10.23 |
Juniper CLI Mode (0) | 2024.10.21 |