如何啟用命令通知通道How to enable a command notification channel

重要

已不再支援此版本的 Operations Manager,建議升級至 Operations Manager 2019This version of Operations Manager has reached the end of support, we recommend you to upgrade to Operations Manager 2019.

若要設定 System Center - Operations Manager 的警示通知,您的第一個工作是啟用通知通道。To configure alert notifications for System Center - Operations Manager, your first task is to enable a notification channel. 本主題描述如何設定自動執行可執行程式,以回應警示的通道。This topic describes how to configure a channel that runs an executable program automatically in response to an alert.

若要建立命令通知通道,您需要下列資訊︰To create a command notification channel, you need the following information:

  • 命令列的完整路徑。Full path of the command file.

  • 命令列參數。Command line parameters.

  • 命令的啟動資料夾,也就是您想要執行程式的路徑。The startup folder for the command, which is the path of the program you want to run.

啟用命令通知To enable a command notification

  1. 使用屬於 Operations Manager 系統管理員角色成員的使用者帳戶登入電腦。Log on to the computer with a user account that is a member of the Operations Manager Administrators role.

  2. 在 Operations 主控台中,按一下 [系統管理] 。In the Operations console, click Administration.

  3. 在瀏覽窗格中,在 [通知] 下方的 [通道] 上按一下滑鼠右鍵。In the navigation pane, under Notifications, right-click Channels. 按一下 [新通道] ,然後按一下 [命令] 。Click New channel and then click Command.

  4. 在 [通知命令通道名稱] 方塊輸入此命令通道的唯一名稱,並在 [描述] 方塊輸入簡短描述。Type a unique name for this command channel in the Notification command channel name box and a brief description in the Description box. 按一下 [下一步]Click Next.

  5. 在 [命令檔的完整路徑] 方塊輸入您想要執行的可執行檔的路徑。Type the path to the executable file that you want to run in the Full path to command file box. 例如,"%systemroot%\cmd.exe" 或 "c:\windows\system32\cscript.exe"。For example, "%systemroot%\cmd.exe" or "c:\windows\system32\cscript.exe". 在 [命令列參數] 方塊輸入您想要搭配此命令執行的任何參數。Type any parameters that you want to run with this command in Command line parameters box. 在 [命令列的啟動資料夾] 方塊輸入此命令的目錄。Type the directory for this command in the Startup folder for the command line box.

  6. 按一下 [完成] ,然後按一下 [關閉] 。Click Finish, and then click Close.

後續步驟Next steps