SnapCenter 服务器上的计划任务未运行
适用于
SnapCenter Server (SC) < 6.x
问题
- SnapCenter 任务(如克隆生命周期、删除辅助备份和清除作业)在 SnapCenter 服务器上的 Windows 任务计划程序中计划运行,但停止运行,且 SnapCenter UI 中不显示任何错误。
- 当从 SnapCenter UI、SQL Agent(克隆生命周期)触发,或复制作业语法并直接从 PowerShell(以域用户身份登录)运行时,作业可成功运行。
- 启动作业时,
joblauncher.log(C:\Program Files\NetApp\SnapCenter\SMCore\log)返回错误,提示无法识别 cmdlet 的名称(即克隆生命周期作业的 "New-SmClone")。
2023-05-03T03:30:02.1925276-05:00 DEBUG Smcore PID=[364] TID=[1] Enter Job Launcher2023-05-03T03:30:02.7081557-05:00 ERROR Smcore PID=[364] TID=[1] An error occurred while invoking the powershell cmdlet.System.Management.Automation.CommandNotFoundException: The term 'New-SmClone' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)at System.Management.Automation.RunspaceInvoke.Invoke(String script, IEnumerable input, IList& errors)at SnapMgrHelper.SmPsHelper.InvokeCmdlet(String strCmdlet, Collection`1& result, IList& lstErrors)2023-05-03T03:30:02.7081557-05:00 ERROR Smcore PID=[364] TID=[1] ErrorCode (-1), ErrorMessage (The term 'New-SmClone' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.)