Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/en/admintools.xml
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/en/admintools.xml	(revision 39181)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/en/admintools.xml	(working copy)
@@ -5336,6 +5336,16 @@
                     </subfields>
                 </field>
             </action>
+            <action name="DebugSnapshot">
+                <action_name>Debug File and Snapshot System</action_name>
+                <verbose_name>Debug File and Snapshot System</verbose_name>
+                <help_text/>
+                <confirm_msg/>
+                <alert_msg/>
+                <process_title>Debug File and Snapshot System</process_title>
+                <process_msg>It may take a few minutes to collect debug information</process_msg>
+                <finish_msg/>
+            </action>
         </model>
         <model name="SystemOpenPort" status="NEW">
             <verbose_name>System Open Port</verbose_name>
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/ja/admintools.xml
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/ja/admintools.xml	(revision 39181)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/ja/admintools.xml	(working copy)
@@ -5026,6 +5026,16 @@
                     </subfields>
                 </field>
             </action>
+            <action name="DebugSnapshot">
+                <action_name>デバッグファイルとスナップショットシステム</action_name>
+                <verbose_name>デバッグファイルとスナップショットシステム</verbose_name>
+                <help_text/>
+                <confirm_msg/>
+                <alert_msg/>
+                <process_title>デバッグファイルとスナップショットシステム</process_title>
+                <process_msg>デバッグ情報の収集には数分かかる場合があります</process_msg>
+                <finish_msg/>
+            </action>
         </model>
         <model name="SystemOpenPort" status="NEW">
             <verbose_name>システムオープンポート</verbose_name>
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-cn/admintools.xml
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-cn/admintools.xml	(revision 39181)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-cn/admintools.xml	(working copy)
@@ -5027,6 +5027,16 @@
                     </subfields>
                 </field>
             </action>
+            <action name="DebugSnapshot">
+                <action_name>调试文件与快照系统</action_name>
+                <verbose_name>调试文件与快照系统</verbose_name>
+                <help_text/>
+                <confirm_msg/>
+                <alert_msg/>
+                <process_title>调试文件与快照系统</process_title>
+                <process_msg>收集调试信息可能需要几分钟</process_msg>
+                <finish_msg/>
+            </action>
         </model>
         <model name="SystemOpenPort" status="NEW">
             <verbose_name>系统开放端口</verbose_name>
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-tw/admintools.xml
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-tw/admintools.xml	(revision 39181)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/doc/zh-tw/admintools.xml	(working copy)
@@ -5027,6 +5027,16 @@
                     </subfields>
                 </field>
             </action>
+            <action name="DebugSnapshot">
+                <action_name>除錯檔案與快照系統</action_name>
+                <verbose_name>除錯檔案與快照系統</verbose_name>
+                <help_text/>
+                <confirm_msg/>
+                <alert_msg/>
+                <process_title>除錯檔案與快照系統</process_title>
+                <process_msg>收集除錯資訊可能需要幾分鐘的時間</process_msg>
+                <finish_msg/>
+            </action>
         </model>
         <model name="SystemOpenPort" status="NEW">
             <verbose_name>系統開放埠</verbose_name>
Index: /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/troubleshooting/__init__.py
===================================================================
--- /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/troubleshooting/__init__.py	(revision 39181)
+++ /branches/rel_apv_10_7/usr/click/webui/htdocs/new/src/apv/models/admintools/troubleshooting/__init__.py	(working copy)
@@ -22,6 +22,8 @@
 
 child_seq = ['Tools', 'DebugMonitor', 'ImportExport', 'SLBServer', 'SupportAccess', 'DebugFile',"TCPRESET"]
 
+DEBUG_ALL_CORE_FILE = 3
+
 class TraceTcpEnty(ANModel):
     filename = CharField(verbose_name='File Name', primary_key=True)
     size = IntegerField(verbose_name='Size')
@@ -1026,6 +1028,15 @@
             }),
         )
 
+    class DebugSnapshot(Action):
+        verbose_name = 'Debug File and Snapshot System'
+        action_name = 'Debug File and Snapshot System'
+        confirm_msg = ""
+        alert_msg = ""
+        process_title = "Debug File and Snapshot System"
+        process_msg = "It may take a few minutes to collect debug information"
+        forever = False
+
     class Meta:
         verbose_name = 'Debug File'
         list_config_options={'add_button_hide':True, 'delete_button_hide':True, 'click_enable':False}
@@ -1135,6 +1146,22 @@
                                  BlankParser(nonblank_exception=CLICmdError, supplement=True), timeout=1200.0)
             return result
 
+        def _perform_DebugSnapshot(self, options):
+            self.cli.set_config()
+            self.cli.cmd('debug enable',
+                        RegexParser('debug has already been enabled', match_exception=CLICmdNormal, exclusive=True),
+                        BlankParser(nonblank_exception=CLICmdError, supplement=True))
+            self.cli.cmd('debug corefile %s' % DEBUG_ALL_CORE_FILE,
+                        BlankParser(nonblank_exception=CLICmdError, supplement=True))
+            self.cli.cmd('debug snapshot system',
+                        RegexParser('It may take a few minutes to collect debug information', match_exception=CLICmdNormal, exclusive=True),
+                        BlankParser(nonblank_exception=CLICmdError, supplement=True), timeout=1200.0)
+            time.sleep(30)
+            self.cli.cmd('debug disable',
+                        RegexParser('It may take a few minutes to generate the encrypted tar ball', match_exception=CLICmdNormal, exclusive=True),
+                        BlankParser(nonblank_exception=CLICmdError, supplement=True))
+            return
+
 class SystemOpenPort(ANModel):
     open_port = FieldGroup(writable=False, verbose_name=_('System Open Port'), level=STATS, fields={
         'open_port': CLITextField(verbose_name=_('System Open Port'), optional=True)
