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,以便在每月 1 日午夜后不久执行。脚本会自动根据标记文件确定作业执行日期和时间,修改后的计划日期和时间将反映在 ADMe Web-UI 中(相对于当前月份)。此更新过程在每个月初自动进行。
有关设置和配置的详细信息,请参阅随附的 pdf。
脚本文件 admesched.sh 包含在 ADMe tar 球中,位于 /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.