Avamar:ADMe - 自訂工作排程指令檔
Summary: 此指令檔的目的是提供排程 ADMe 工作原則的自動化程序。此策略必須基於一周中的給定日期和當月內的某天實例啟動,默認情況下,其日曆日期每月更改。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
如果要求是在一年中每月的第一個星期六執行 ADMe 工作,則其關聯的日曆日期每月都會有所不同,需要手動排程更新才能適應。如果要指定一個日期範圍以涵蓋前七天,並希望作業僅在星期六運行,其中星期幾的值為 6,請使用以下範例。這導致作業每天在日期範圍內執行,而不考慮指定的星期幾,因為 CRON 將這些參數視為邏輯 OR 條件,與所需的邏輯 AND 條件進行比較。
30 09 1-7 * 6 /usr/local/avamar/bin/adme -batch admbatch-lnxfs01.cfg >/adamk.log 2>&1
此腳本克服了上述挑戰,允許在自定義標誌檔中定義包含以下條件的自定義計劃要求。
欄位定義:
Fld-1 Day of the week Instance = 1|2|3|4|5 Fld-2 Day of the Week = sun|mon|tue|wed|thu|fri|sat Fld-3 Start Time Hour = HH Fld-4 Start Time Minute = MM Fld-5 ADMe Jobname = (example admbatch-winfs01.cfg)
在根 crontab 中手動輸入對腳本的調用,以便在每月的第一天午夜后不久執行。指令檔會根據旗標檔案自動決定工作執行的日期和時間,而修改後的排程日期和時間會反映在 ADMe Web-UI 中相對於您目前的月份。此更新過程在每個月初自動進行。
有關設置和配置的詳細資訊,請參閱隨附的 pdf。
指令檔檔案 admesched.sh 包含在 ADMe tar ball中,位於 /home/admin/admeadmin/tools 資料夾中。
Affected Products
Avamar Data Migration Enabler, Avamar ServerArticle Properties
Article Number: 000195665
Article Type: How To
Last Modified: 13 Jun 2025
Version: 5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.