0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OpsRamp - カスタムスクリプトについて

Posted at

本記事では、OpsRamp におけるカスタムスクリプトについて説明します。

概要

OpsRamp では、PowerShell、Python、Shellのコードをカスタムスクリプトとして登録することが可能です。登録したスクリプトを OpsRamp Agent 経由でオンデマンド、スケジュール、Run Book Automation、Process Automation として実行することが可能です。

設定方法

カスタムスクリプトは、Automation > Scripts の「Add Script (</> マーク)」から設定することが可能です。
「Execution Type」、「Command / File Name」、「Script Name」、「Description」、「Script」をそれぞれ入力します。
script1.png

  • オンデマンド、スケジュール実行
    作成したスクリプトを選択し、「Apply Script to Devices」から対象のデバイスに割り当てます。
    script2.png
    任意のデバイスを選択します。
    「How to run?」セクションでは、スクリプトを実行するユーザーを設定できます。
    「Default User」は、OpsRamp Agent を実行しているユーザーでスクリプトが実行されます。
    「Other User」は、デバイスに割り当てられている認証情報のユーザーでスクリプトが実行されます。
    「Run Now」は、オンデマンドで実行されます。
    「Schelude」は、任意の日時で実行されます。
    script3.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?