本檔案介紹思科電子郵件安全裝置(ESA)上隱藏CLI命令repairequeue的使用方式以及如何驗證佇列復原。
運行repairqueue命令的原因:
Status或Status Detail報告Oldest Message值超過配置的退回配置檔案閾值。
附註:此檢查不包括……queue(例如,.cpq.queue和.euq.queue)和.cpq.release.host等虛擬傳遞域隊列。
不運行repairqueue命令的原因:
本文中的資訊係根據以下軟體和硬體版本:
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。在活動網路中,請在繼續操作之前確認每個命令的潛在影響。
思科建議瞭解以下主題:
CLI命令repairqueue不會修復所有工作隊列問題或損壞。該實用程式將嘗試盡力修復工作隊列。
運行repaairqueue。第一個進程會運行一次提示輸入許可權以繼續執行修復:
esa.example.com> repairqueue
Do you want to repair or clean the queue?
1. Repair.
2. Clean.
[1]> 1
The mail flow will be stopped throughout the repair/cleanup process
WARNING:
This utility does a best effort to repair the queue.
Not all queues corruptions can be repaired.
Are you sure you want to proceed? [N]> y
Checking generation checksum files
...
<<>>
...
done
Repair succeeded
Starting Hermes
Hermes Started
Log into the system and verify the status of the system. 修復過程完成且工作隊列修復後,裝置將保留上一個工作隊列的舊檢查點。要繼續寫入工作隊列處理的新檢查點,請再次運行repairqueue,然後輸入命令Clean:
esa.example.com> repairqueue
Do you want to repair or clean the queue?
1. Repair.
2. Clean.
[1]> 2
The mail flow will be stopped throughout the repair/cleanup process
WARNING:
There is a backup found this may be the only backup.
This will remove the old queue.
Are you sure you want to proceed? [N]> y
Double confirmation. Are you sure you want to proceed? [N]> y
Removing old queue
Cleanup finished 工作隊列損壞的常見原因包括:
意外重新啟動或不當關機(例如電源中斷)。 根據當時正在運行的後端進程,隊列可能會在重新啟動後損壞或無法裝載。在這種情況下,CLI可能會報告錯誤,例如:
esa.example.com> status
Enter "status detail" for more information.
Couldn't obtain mail stats - my.esa: The daemon is not responding. esa.example.com> status
Enter "status detail" for more information.
Couldn't obtain mail stats - the queue is not mounted 如果裝置運行的舊版AsyncOS沒有repairqueue hidden CLI命令選項,則使用者可以開啟支援案例,以便讓思科支援工程師協助該過程。需要開啟支援隧道,思科支援人員可以使用該隧道訪問裝置並運行repairqueue命令。聯絡思科支援以開啟有效的支援案例。
在大多數情況下,腐敗並不等於郵件丟失。隊列已損壞,原因是與裝置上不再存在的郵件處理相關的後設資料。這是用於隊列、報告和郵件跟蹤之間處理的記錄保留。運行repaairqueue將重建ESA後設資料,並清除服務與處理之間的任何誤報告。
ESA可以在損壞的隊列上運行很長時間,並且大多數消息仍在處理中。但是,裝置可能顯示緩慢,或者某些消息永遠無法清除,如status命令中的Oldest Message值(明顯早於bounceconfig閾值)所指示。 當AsyncOS重新啟動時隊列已損壞,隊列可能無法裝載。損壞可能較早發生,並且不會引起注意,直到裝置重新啟動,此時隊列無法裝載。
修復工作隊列可能需要10秒到幾個小時不等,具體取決於ESA的狀態以及當前通過活動工作隊列處理的消息數量。在損壞時具有完整隊列的低端裝置上修復工作隊列可能需要幾個小時。
在某些情況下(例如,裝置上的隊列過滿),repaairqueue無法完成。如果repaairqueue 4小時後未完成,則隊列極有可能無法修復,並且唯一的補救方法就是構建新隊列。對於此類高級問題,請聯絡思科支援以開啟有效的支援案例並獲得思科支援幫助。
| 修訂 | 發佈日期 | 意見 |
|---|---|---|
2.0 |
02-Oct-2026
|
重新認證 |
1.0 |
10-Aug-2017
|
初始版本 |