2010-07-30 11:40 AM
ACE で 大量の debug log を取得する場合、外部から telnet や ssh で remote access して取得する等、console 以外の方法で取得するようにしてください。
console から debug を取得しようとすると、処理が追いつかず、下記のように message が正常に出力されず、有効な log が取得できません。
Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 22010 Jul 2010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 2010 |
外部から remote access できず、console 以外の方法で debug を取得できない場合、log file に保存するという方法もあります。
# debug logfile [filename] |
実際に debug を有効にした状態で設定を追加してみると、console と telnet では下記のような出力差が発生します。
# console 出力
ACE20/Admin# debug cfgmgr all !___ 設定変更に関する debug log をすべて表示するよう設定 !___ 今回は大量の log を出力させるため all option を用いていますが、試験環境以外で all option を使用することは避けてください。 ACE20/Admin# 2010 Jul 29 04:23:47.612474 cfgmgr: (ctx:0)CFGMGR: Received MTS request, from: 0x00000501/5037, To: 0x00000501/506, Opcode: 182, MsgID: 367182 2010 Jul 29 04:23:47.613808 cfgmgr: (ctx:0)dlsym shows that fn is 0x7d6c90 2010 Jul 29 04:23:47.613862 cfgmgr: (ctx:0)SDWRAP MTS message processed. ACE20/Admin# conf t Enter configuration commands, one per line. End with CNTL/Z. ACE20/Admin(config)# rserver host sv3 !___ rserver を新規作成 ACE20/Admin(config-rserver-host)# 2010 Jul 29 04:24:04.211505 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: ENTER 2010 Jul 29 04:24:04.211611 cfgmgr: (ctx:0)Adding Real Server to Table 2010 Jul 29 04:24:04.211643 cfgmgr: (ctx:0)add_object: type=(RSERVER), max=16383, current=3, max 9 arr_len 100 2010 Jul 29 04:24:04.211706 cfgmgr: (ctx:0)one_way_link_add(ENTER): list(0x10db854c) DUP(NO_DUP) size(32) obj_type(RSERVER) id(9) line(0) 2010 Jul 29 04:24:04.211755 cfgmgr: (ctx:0)one_way_link_add: creating the entry and linking 2010 Jul 29 04:24:04.211844 cfgmgr: (ctx:0)IDMAP library: Error. SRG information not found. 2010 Jul 29 04:24:04.211879 cfgmgr: (ctx:0)IDMAP library:Add id mapping type 1 id 9 context_id 0 obj_name sv3 version 1 2010 Jul 29 04:24:04.211917 cfgmgr: (ctx:0)IDMAP library: add_entry. obj_name: sv3, hash 2707type 1, ptr = 0x105f6e88 2010 Jul 29 04:24:04.211954 cfgmgr: (ctx:0)cfg_addto_idmap rserver id 9 version 1 context 0 rs_name sv3 2010 Jul 29 04:24:04.211990 cfgmgr: (ctx:0)cm_dnld_set_update_flags: CONTEXT 0 2010 Jul 29 04:24:04.212039 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: before calling 2010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 22010 Jul 2010 Jul 22010 Jul 22010 Jul 2010 Jul 29 04:24:09.724079 cfgmgr: (ctx:0)Setting cm_dnld_thread_current_context to 0 2010 Jul 29 04:24:09.724166 cfgmgr: (ctx:0)start dnld for context 0 2010 Jul 29 04:24:09.724212 cfgmgr: (ctx:0)cm_dnld_do_download: if_id3 nat_pool_id 2 2010 Jul 29 04:24:09.724244 cfgmgr: (ctx:0)cm_dnld_del_nat_pool: if_id3 nat_pool_id 2 2010 Jul 29 04:24:09.724277 cfgmgr: (ctx:0)cm_dnld_add_nat_pool: if_id3 nat_pool_id 2 [snip] |
# telnet 出力
ACE20/Admin# terminal monitor ACE20/Admin# 2010 Jul 29 04:23:47.612474 cfgmgr: (ctx:0)CFGMGR: Received MTS request, from: 0x00000501/5037, To: 0x00000501/506, Opcode: 182, MsgID: 367182 2010 Jul 29 04:23:47.613808 cfgmgr: (ctx:0)dlsym shows that fn is 0x7d6c90 2010 Jul 29 04:23:47.613862 cfgmgr: (ctx:0)SDWRAP MTS message processed. ACE20/Admin# 2010 Jul 29 04:24:04.211505 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: ENTER 2010 Jul 29 04:24:04.211611 cfgmgr: (ctx:0)Adding Real Server to Table 2010 Jul 29 04:24:04.211643 cfgmgr: (ctx:0)add_object: type=(RSERVER), max=16383, current=3, max 9 arr_len 100 2010 Jul 29 04:24:04.211706 cfgmgr: (ctx:0)one_way_link_add(ENTER): list(0x10db854c) DUP(NO_DUP) size(32) obj_type(RSERVER) id(9) line(0) 2010 Jul 29 04:24:04.211755 cfgmgr: (ctx:0)one_way_link_add: creating the entry and linking 2010 Jul 29 04:24:04.211844 cfgmgr: (ctx:0)IDMAP library: Error. SRG information not found. 2010 Jul 29 04:24:04.211879 cfgmgr: (ctx:0)IDMAP library:Add id mapping type 1 id 9 context_id 0 obj_name sv3 version 1 2010 Jul 29 04:24:04.211917 cfgmgr: (ctx:0)IDMAP library: add_entry. obj_name: sv3, hash 2707type 1, ptr = 0x105f6e88 2010 Jul 29 04:24:04.211954 cfgmgr: (ctx:0)cfg_addto_idmap rserver id 9 version 1 context 0 rs_name sv3 2010 Jul 29 04:24:04.211990 cfgmgr: (ctx:0)cm_dnld_set_update_flags: CONTEXT 0 2010 Jul 29 04:24:04.212039 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: before calling entity_add by cm_buginf rservName is sv3 and rserver id is 9 2010 Jul 29 04:24:04.212073 cfgmgr: (ctx:0)cm_entity_add_rserv: at the beginning rservName is sv3 and rserver id is 9 2010 Jul 29 04:24:04.212133 cfgmgr: (ctx:0) Inserted RSERV name sv3 in context 0 2010 Jul 29 04:24:04.212164 cfgmgr: (ctx:0)cm_ui_entity_add: at the end rserver return value is: 0 2010 Jul 29 04:24:04.212188 cfgmgr: (ctx:0)IN STATUS_OK, rc = 0 2010 Jul 29 04:24:04.212214 cfgmgr: (ctx:0)When updating user domain, matched domain default-domain for all objs 2010 Jul 29 04:24:04.212250 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: EXIT 2010 Jul 29 04:24:04.212302 cfgmgr: (ctx:0)cm_sync_callback:--> local_func_ret(0) vcid(0) mts_q(8) payload(0x30764054) len(144) 2010 Jul 29 04:24:04.212339 cfgmgr: (ctx:0)cm_sync_callback: status is 0 2010 Jul 29 04:24:04.212368 cfgmgr: (ctx:0)cm_sync_callback:--> no cfg sync ft_id(2130695320) peer_vcid(716567968) 2010 Jul 29 04:24:09.724079 cfgmgr: (ctx:0)Setting cm_dnld_thread_current_context to 0 2010 Jul 29 04:24:09.724166 cfgmgr: (ctx:0)start dnld for context 0 2010 Jul 29 04:24:09.724212 cfgmgr: (ctx:0)cm_dnld_do_download: if_id3 nat_pool_id 2 2010 Jul 29 04:24:09.724244 cfgmgr: (ctx:0)cm_dnld_del_nat_pool: if_id3 nat_pool_id 2 2010 Jul 29 04:24:09.724277 cfgmgr: (ctx:0)cm_dnld_add_nat_pool: if_id3 nat_pool_id 2 [snip] |
debug logfile は下記のように show command で出力することも、copy command を使用し、server へ copy することも可能です。
ACE20/Admin# debug logfile debug_cfgmgr ACE20/Admin# debug cfgmgr all ACE20/Admin# conf t Enter configuration commands, one per line. End with CNTL/Z. ACE20/Admin(config)# rserver host sv4 ACE20/Admin(config-rserver-host)# end ACE20/Admin# ACE20/Admin# sh debug logfile debug_cfgmgr 2010 Jul 29 23:52:55.514481 cfgmgr: (ctx:0)dlsym shows that fn is 0x7d6c90 2010 Jul 29 23:52:55.514724 cfgmgr: (ctx:0)SDWRAP MTS message processed. 2010 Jul 29 23:53:03.116991 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: ENTER 2010 Jul 29 23:53:03.117097 cfgmgr: (ctx:0)Adding Real Server to Table 2010 Jul 29 23:53:03.117129 cfgmgr: (ctx:0)add_object: type=(RSERVER), max=16383 , current=3, max 10 arr_len 100 2010 Jul 29 23:53:03.117189 cfgmgr: (ctx:0)one_way_link_add(ENTER): list(0x10db8 54c) DUP(NO_DUP) size(32) obj_type(RSERVER) id(10) line(0) 2010 Jul 29 23:53:03.117240 cfgmgr: (ctx:0)one_way_link_add: creating the entry and linking 2010 Jul 29 23:53:03.117334 cfgmgr: (ctx:0)IDMAP library: Error. SRG information not found. 2010 Jul 29 23:53:03.117371 cfgmgr: (ctx:0)IDMAP library:Add id mapping type 1 i d 10 context_id 0 obj_name sv4 version 1 2010 Jul 29 23:53:03.117406 cfgmgr: (ctx:0)IDMAP library: add_entry. obj_name: s v4, hash 2708type 1, ptr = 0x105f6e88 2010 Jul 29 23:53:03.117442 cfgmgr: (ctx:0)cfg_addto_idmap rserver id 10 version 1 context 0 rs_name sv4 2010 Jul 29 23:53:03.117479 cfgmgr: (ctx:0)cm_dnld_set_update_flags: CONTEXT 0 2010 Jul 29 23:53:03.117528 cfgmgr: (ctx:0)cm_rserver_add_or_lookup: before call ing entity_add by cm_buginf rservName is sv4 and rserver id is 10 2010 Jul 29 23:53:03.117562 cfgmgr: (ctx:0)cm_entity_add_rserv: at the beginning rservName is sv4 and rserver id is 10 2010 Jul 29 23:53:03.117621 cfgmgr: (ctx:0) Inserted RSERV name sv4 in contex t 0 2010 Jul 29 23:53:03.117649 cfgmgr: (ctx:0)cm_ui_entity_add: at the end rserver return value is: 0 2010 Jul 29 23:53:03.117672 cfgmgr: (ctx:0)IN STATUS_OK, rc = 0 2010 Jul 29 23:53:03.117698 cfgmgr: (ctx:0)When updating user domain, matched do main default-domain for all objs [snip] ACE20/Admin# ACE20/Admin# undebug all ACE20/Admin# show debug logfile debug_cfgmgr > disk0:debug_cfgmgr.log ACE20/Admin# dir disk0: | i cfgmgr 20480 Jul 30 00:01:57 2010 debug_cfgmgr.log ACE20/Admin# ACE20/Admin# copy disk0: tftp: Enter source filename[]? debug_cfgmgr.log Enter Address for the tftp server[]? 192.168.71.11 Enter the destination filename[]? [debug_cfgmgr.log] Trying to connect to tftp server...... !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! TFTP put operation was successful 20480 bytes copied ACE20/Admin# |
検索バーにキーワード、フレーズ、または質問を入力し、お探しのものを見つけましょう
シスコ コミュニティをいち早く使いこなしていただけるよう役立つリンクをまとめました。みなさんのジャーニーがより良いものとなるようお手伝いします