この製品のマニュアルセットは、偏向のない言語を使用するように配慮されています。このマニュアルセットでの偏向のない言語とは、年齢、障害、性別、人種的アイデンティティ、民族的アイデンティティ、性的指向、社会経済的地位、およびインターセクショナリティに基づく差別を意味しない言語として定義されています。製品ソフトウェアのユーザーインターフェイスにハードコードされている言語、RFP のドキュメントに基づいて使用されている言語、または参照されているサードパーティ製品で使用されている言語によりドキュメントに例外が存在する場合があります。シスコのインクルーシブランゲージに対する取り組みの詳細は、こちらをご覧ください。
このドキュメントは、米国シスコ発行ドキュメントの参考和訳です。リンク情報につきましては、日本語版掲載時点で、英語版にアップデートがあり、リンク先のページが移動/変更されている場合がありますことをご了承ください。あくまでも参考和訳となりますので、正式な内容については米国サイトのドキュメントを参照ください。
目次
この章は、次の内容で構成されています。
[ワークフロー] タブでは、次のアクションを実行できます。
名前 | 説明 |
---|---|
[更新] |
表示を更新します。 |
[お気に入り] |
現在のページをお気に入りに追加します。 |
[ワークフローの追加] |
新しいワークフローを追加します。 |
[インポート] |
ワークフローをインポートします。 |
[エクスポート] |
ワークフローをエクスポートします。 |
[タスクライブラリ] |
タスクのドキュメントにアクセスします。 |
[検索と置換] |
キーワードの検索と置換を実行します。 |
[ワークフローの編集] |
既存のワークフローを編集します。 |
[ワークフローの複製] |
既存のワークフローを複製します。 |
[ワークフローの削除] |
既存のワークフローを削除します(ロックされていない場合)。 |
[今すぐ実行] |
有効なワークフローを実行します。 |
[ワークフローの表示] |
現在選択されているワークフローを表示します。 |
[ワークフローデザイナ] |
[ワークフローデザイナ] ペインにアクセスします。 |
[テンプレートとしてエクスポート] |
選択されたワークフローをテンプレートとしてエクスポートします。 |
[スケジュール] |
ワークフロー(実行)をスケジュールします。 |
[ワークフローのロックまたはロック解除] | 現在選択されているワークフローをロックまたはロック解除します。 |
1 つ以上のタスクを作成する前に、基本的なワークフローを作成する必要があります。
新しいワークフローを作成する場合、または既存のワークフローを編集する場合は、ユーザ入力はデフォルトで必須です。 ただし、タスクがワークフローの実行時点でオプションとなるように設定できます。
(注) |
オプションのワークフロー入力は、必須のタスク入力(属性)にマッピングできません。 ユーザ入力マッピングのステージでは、不一致エラーが表示されます。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||
ステップ 2 | [ワークフロー] フォルダを開きます。 | ||
ステップ 3 | タスクをクリックします。 | ||
ステップ 4 | [ワークフローの編集] をクリックします。 [ワークフローの編集] 画面が表示されます。 | ||
ステップ 5 | [次へ] をクリックして [ユーザ入力の変更] 画面にアクセスします。 | ||
ステップ 6 | 入力テーブル内で、編集する入力をクリックします。 [エントリの編集] ダイアログボックスが表示されます。 | ||
ステップ 7 |
この入力が(実行時点で)オプションになるように、[オプション] チェックボックスをオンにします。
|
||
ステップ 8 | [送信] をクリックします。 | ||
ステップ 9 | [OK] をクリックします。 | ||
ステップ 10 | [送信] をクリックします。 | ||
ステップ 11 | [OK] をクリックします。 |
ワークフローの作成時に、さまざまなポイントでフィルタを使用して、データの選択肢を絞り込むことができます。 [管理入力フィルタ] パラメータを操作するときに [入力フィルタの基準] フィールドに値を入力して、ワークフロー開発をさらに強化できます。 フィルタ構文が最も役立つのは、入力が非常に多い場合です。 たとえば、特定の VM 上で動作するワークフロー タスクがあり、Cisco UCS Director 環境内に 1000 を超える VM が存在する場合に、このフィルタを使用することで、自分のワークフロー開発に該当する VM のみに絞り込むことができます。 [管理入力フィルタ] オプションを使用して、特定のクラウド アカウントに存在する VM にフィルタを適用し、その後、そのクラウド アカウントの(テーブルにリストされた)データをフィルタして、その特定のクラウド アカウントに属する VM のみを検索することができます。
別の例としては、ワークフローを作成するとき、[管理入力フィルタ] フィールドに情報を入力します。 このフィルタを使用すると、前述のように、特定のクラウド アカウントから必要な VM に絞り込むことができます。 実際には、このフィルタされた VM のリストが表示されるのは、ワークフローを実行するときのみです。 つまり、フィルタ基準をワークフロー設計の早いステージで定義しても、実際の VM リストが選択肢として表示されるのは、ワークフローが実行されるときのみです。
表形式のすべてのデータ タイプを対象とするフィルタリングの(一般的な)コマンド構文と例は、次のとおりです。
<column label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1> OR <simple match regex> OR <value n> AND <column label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1>OR<value2>OR<value n>
たとえば、VM の名前 testvm を検索する場合、有効な正規表現は test* または *vm のみです。 他の組み合わせは認められません。 この場合、マッチの規則は「欲張りなマッチ」になります(正規表現の前部または後部で使用される)。
(注) |
ワークフローで使用するコマンド構文は、標準的な UNIX の正規表現をサポートしません。 |
cloud CONTAINS vcenter OR vcenter98 AND power status EQUALS OFF OR "not determined"
「AND」結合条件は、すでにフィルタリングされた行にフィルタを適用します。 AND はカスケーディング フィルタとして動作します。 式の最初の部分では、VM セレクタ テーブル内のすべての行を対象として、cloud という名前の列が検索されます。 さらに、vcenter または vcenter98 という文字列の有無が確認されます。
式の 2 番目の部分では、前の部分の結果として取得された行が検索対象になります。 off または「not determined」という文字列の有無も確認されます。
条件 1 と 2 の間には AND 条件が指定されているため、条件 1 と 2 の両方に一致した場合に限り、対応するデータ行がワークフローのユーザに表示されます。 検索するキーワードを引用符で囲むと、大文字と小文字を区別して検索されます。
(注) |
条件 1 と条件 2 の間に OR 条件を指定することはできません。 列の間で条件を結合する場合は AND を使用する必要があり、列のデータにフィルタを適用する場合は OR 条件を使用する必要があります。 また、複数の単語で構成される列のラベルを検索する場合は、単語を二重引用符で囲む必要があります。 フィルタリングの条件では、大文字と小文字が区別されるため、正しく指定しないとフィルタリングの値が無視されます。 |
LOV タイプでは単一の値のみが使用されているため、値をフィルタリングするには条件を記述するだけで十分です。
すべての値のリスト(LOV)のデータ タイプを対象とするフィルタリングのコマンド構文は、次のとおりです。
EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS <value1> OR <simple match regex> OR <value n>
EQUALS off OR "not determined"
このコマンド構文は、ワークフローを実行し、フィルタが適用された LOV のリストを表示します。 検索するキーワードを引用符で囲むと、大文字と小文字を区別して検索されます。
オーケストレータには一連の定義済みのタスクがあり、これを使用してワークフローを簡単に作成できます。 これらのタスクは、機能に基づいて分類されており、[ワークフローデザイナ] インターフェイスからアクセスできます。
ステップ 1 | [オーケストレータ] ウィンドウでワークフローを選択します。 |
ステップ 2 | [ワークフローデザイナ] をクリックします。 [ワークフローデザイナ] ウィンドウが表示されます。 |
ステップ 3 | [ワークフローデザイナ] の左側でカテゴリを選択して [使用可能なタスク] フォルダをクリックします。 |
ステップ 4 | 必要なタスクをクリックして、選択したタスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 |
(注) |
このタスクでは、ワークフローの実行時点で VM 名を指定します。 |
ステップ 1 | メニュー バーで、[ポリシー] > [オーケストレーション] を選択します。 | ||||||||||||||||
ステップ 2 | [ワークフロー] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [ワークフローデザイナ] ウィンドウから、[VMスナップショットの作成] タスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 | ||||||||||||||||
ステップ 4 |
[ワークフローのタスクの基本情報] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 6 |
[タスク入力属性へのユーザ入力のマッピング] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 8 |
次のフィールドに入力します。
|
||||||||||||||||
ステップ 9 | [送信] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [ワークフロー] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [使用可能なタスク] ペインから、[VMディスクのサイズ変更] タスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 | ||||||||||||||||
ステップ 4 |
[ワークフローのタスクの基本情報] 画面で、次の情報を入力します。
|
||||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 6 |
[タスク入力属性へのユーザ入力のマッピング] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 8 |
[ユーザ入力マッピング] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 9 | [送信] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||
ステップ 2 | [ワークフロー] タブを選択します。 | ||||||||||||||
ステップ 3 | [新規ワークフローの追加] をクリックします。 | ||||||||||||||
ステップ 4 |
[ワークフローの追加] 画面で、次のフィールドに入力します。
|
||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||
ステップ 6 | [ワークフローの編集] の [ユーザ入力の追加] 画面で、次のフィールドに入力します。 | ||||||||||||||
ステップ 7 | 追加のユーザ入力がある場合は、[ユーザ入力の追加] をクリックします。 | ||||||||||||||
ステップ 8 | [送信] をクリックします。 空のワークフローが作成されます。 | ||||||||||||||
ステップ 9 | [ワークフローデザイナ] ペインで、[タスクの開始] アイコンにカーソルを置きます。 タスク アイコンの一部が緑または赤で強調表示されます。 | ||||||||||||||
ステップ 10 | [使用可能なタスク] ペインから、タスク(CreateClusterServer_2177 task アイコン)を [ワークフローデザイナ] ページにドラッグ アンド ドロップします。 | ||||||||||||||
ステップ 11 | [使用可能なタスク] ペインから、CreateClusterLogicalInterface_2167 task アイコンを [ワークフローデザイナ] ページにドラッグ アンド ドロップします。 | ||||||||||||||
ステップ 12 | [タスクの開始] アイコンの緑の部分をクリックして、最初のタスク(たとえば、CreateClusterServer_2177 task アイコン)までカーソルをドラッグします。 リンクが確立されます。 このタスクが正常に完了すると、ワークフローの機能性が高まります。 ワークフローの全タスク(成功と失敗の両方)に対して、この手順を実行します。 | ||||||||||||||
ステップ 13 | [タスクの開始] アイコンの赤の部分をクリックして、[完了(失敗)タスク] アイコンまでカーソルをドラッグします。 | ||||||||||||||
ステップ 14 | CreateClusterLogicalInterface_2167 task アイコンで、カーソルを赤の領域(右側)に移動して、[完了(失敗)タスク] アイコンにドラッグします。 | ||||||||||||||
ステップ 15 | [ワークフローの検証] をクリックします。 |
よく使用するワークフローをテンプレートとしてエクスポートし、別の管理シナリオで使用することができます。 テンプレートをエクスポートする場合、ワークフロー内のタスクはすべて保持されます。 テンプレートを別の Cisco UCS Director 環境にインポートして、ワークフローとして同様に使用することもできます。 テンプレートを使用して新しいワークフローを作成する場合、マッピングされたタスク内の入力は変更できません。 ただし、マッピングされていない入力は変更することができます。
ステップ 1 | メニュー バーで、 ウィンドウが表示されます。 を選択します。 [オーケストレーション] |
ステップ 2 | [ワークフロー] タブを選択します。 |
ステップ 3 | ワークフローを選択して、[テンプレートとしてエクスポート] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||||
ステップ 2 | [テンプレート] タブを選択します。 | ||||||||||||||||||
ステップ 3 |
テンプレートを選択して、[ワークフローの作成] をクリックします。 オーケストレータでは、定義済みテンプレートをインポートおよび使用することができます。 テンプレートは [ワークフローのテンプレート] タブから取得でき、新しいワークフローの作成に使用できます。 次のテンプレートを使用できます。
|
複合タスクは複数のタスクの集合です。 複合タスクでは、複雑なワークフローを実行できます。 複合タスクは、複数のワークフローを含む単一のワークフロー(組み込みワークフロー)で構成されています。 簡単なワークフローを定義して複合タスク(複合タスク A = ワークフロー A)として保存した後、もう 1 つのワークフローを定義し、この新しいワークフローの一部として、複合タスク A(別のワークフロー)を使用することができます。 このパターンを使用して、簡単なワークフローに基づいて複雑なワークフローを定義できます。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||
ステップ 2 | [ワークフロー] タブを選択します。 | ||||||||||||||
ステップ 3 | [新規ワークフローの追加] をクリックします。 | ||||||||||||||
ステップ 4 |
[ワークフローの詳細] 画面で、次のフィールドに入力します。
|
||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||
ステップ 6 |
[ユーザ入力の追加] 画面で、次のフィールドに入力します。
|
||||||||||||||
ステップ 7 | 追加のユーザ入力がある場合は、[ユーザ入力の追加] をクリックします。 | ||||||||||||||
ステップ 8 | [送信] をクリックします。 空のワークフローが作成されます。 |
カスタム承認タスクの機能を使用して、ワークフローをプロビジョニングし、承認を得ることができます。この機能では、インフラストラクチャの管理者(コンピューティング、ストレージ、およびネットワーク)またはあらゆるタイプのシステム ユーザが、ワークフローの実行に関する入力を指定することができます。
カスタム承認タスクでは、特定のユーザの承認が得られた後でワークフローを実行できます。 このタスクをワークフローに追加するときは、承認者の名前が要求されます。 また同じ個人が、以前にカスタム承認タスクで定義されていた入力を提供することもできます。 これらの承認タスクは、定義された後でワークフローに追加できます。 次に、タスク承認者名の入力を求めるプロンプトが表示されます。 ワークフローを実行すると、ワークフローは承認タスクで一時停止します。 承認者は、この承認の指定を [承認] タブで確認できます。 承認者は、設定済みの必要な入力を提供します(これらは以降のタスクにマッピングできます)。 ワークフローが承認されると、ワークフローの実行が再開します。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタム承認タスク] タブを選択します。 | ||||||||||||||||
ステップ 3 | [追加] をクリックします。 | ||||||||||||||||
ステップ 4 |
[入力の追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 5 | [送信] をクリックします。 |
カスタム承認タスクのワークフローへの追加は、他のタスクをワークフローに追加することと同じです。 タスク作成のユーザ入力マッピングのステージでは、承認者が実行時点でこのワークフローを承認する必要があるかどうかを決定できます。 実行時点で承認する必要がない場合は、プロセスのタスク入力のステージで、オーケストレータによって、承認者名の入力を要求するプロンプトが表示されます。
ステップ 1 | メニュー バーで、 を選択します。 |
ステップ 2 | [ワークフロー] タブを選択します。 |
ステップ 3 | [使用可能なタスク] ペインからカスタム承認タスクを追加するワークフローを選択します。 [ワークフローデザイナ] ページが表示されます。 |
ステップ 4 | [カスタム承認タスク] フォルダ内からカスタム承認タスクを [ワークフローデザイナ] ペインにドラッグします。 |
ステップ 5 | [カスタム承認タスク] フォルダから、タスクを [ワークフローデザイナ] ペインまでドラッグします。 |
ステップ 6 | ワークフローの実行時に承認者名を指定する必要がある場合は、[タスクの追加] 画面で [ユーザ入力にマッピング] チェックボックスをオンにします。 それ以外の場合は、ワークフローの実行時に承認者の名前を指定できます。 |
ステップ 7 | [次へ] をクリックします。 |
ステップ 8 | [ユーザID] を入力します。 |
ステップ 9 | [送信] をクリックします。 |
カスタム入力タイプを作成すると、これらをワークフロー入力として使用できます。 カスタム入力タイプは、新しい値のリスト(キーや値のタプルなど)を指定する方法、表示される値をフィルタで絞り込むフィルタ基準を指定する方法、または値の固有の選択肢(セット)を選択する方法で定義できます。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||||
ステップ 3 | [追加] をクリックします。 | ||||||||
ステップ 4 |
[カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||||
ステップ 5 | [追加] アイコン(+)をクリックします。 | ||||||||
ステップ 6 |
[カスタム ワークフローの入力値の追加] の [カスタム入力の詳細] ダイアログボックスで、次のフィールドに入力します。
|
||||||||
ステップ 7 | [追加] アイコン(+)をクリックします。 | ||||||||
ステップ 8 |
[LOVエントリへのエントリの追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||||
ステップ 9 | [送信] をクリックして、カスタム ワークフロー タイプに追加します。 | ||||||||
ステップ 10 | [OK] をクリックします。 | ||||||||
ステップ 11 | [送信] をクリックします。 | ||||||||
ステップ 12 | [OK] をクリックして、プロセスを完了します。 新しいカスタム ワークフロー入力が [カスタムワークフローの入力値] リストに表示されます。 |
次の例では、パスワードに基づいて値のリストを作成する方法について説明します。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||
ステップ 3 | [追加] アイコン(+)をクリックします。 | ||||||
ステップ 4 |
[カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||
ステップ 5 | [選択...] をクリックします。 [選択] ダイアログボックスが表示されます。 | ||||||
ステップ 6 | 検索フィールドにパスワードと入力します。 パスワードという単語を使用したチェックボックスが一覧表示されます。 | ||||||
ステップ 7 | [パスワード] チェックボックスをオンにします。 | ||||||
ステップ 8 | [選択] をクリックします。 [カスタム入力の詳細] 画面が表示されます。 | ||||||
ステップ 9 |
[追加] アイコン(+)をクリックします。 [LOVエントリへのエントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||
ステップ 10 | [ラベル] フィールドに admin と入力します。 | ||||||
ステップ 11 | [値] フィールドにパスワード テキストを入力します(表示されません)。 | ||||||
ステップ 12 | [送信] をクリックします。 | ||||||
ステップ 13 |
[OK] をクリックします。 [カスタム入力の詳細] 画面が表示されたら、次のフィールドに次のように入力します。
|
||||||
ステップ 14 | [ラベル] フィールドに root と入力します。 | ||||||
ステップ 15 | [値] フィールドにパスワード テキストを入力します(表示されません)。 | ||||||
ステップ 16 | [送信] をクリックします。 | ||||||
ステップ 17 | [OK] をクリックします。 このエントリが [LOVエントリ] テーブルに表示されます。 | ||||||
ステップ 18 |
[追加] アイコン(+)をクリックします。 [LOVエントリへのエントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||
ステップ 19 | [ラベル] フィールドに tech と入力します。 | ||||||
ステップ 20 | [値] フィールドにテキストを入力します(表示されません)。 | ||||||
ステップ 21 | [送信] をクリックします。 | ||||||
ステップ 22 | [OK] をクリックします。 このエントリが [LOVエントリ] テーブルに表示されます。 | ||||||
ステップ 23 | [送信] をクリックします。 | ||||||
ステップ 24 | [OK] をクリックします。 |
(注) |
次のステージでは、カスタム入力をワークフローに追加します。 「ワークフローへのカスタム入力の追加」のトピックを参照してください。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||
ステップ 2 | [ワークフローの追加] アイコンをクリックします。 | ||||||||||||||
ステップ 3 |
[ワークフローの追加] の [ワークフローの詳細] 画面で、次のフィールドに入力します。
|
||||||||||||||
ステップ 4 | [ワークフロー名] フィールドにデバイスの作成と入力します。 | ||||||||||||||
ステップ 5 | [新しいフォルダに配置] チェックボックスをオンにします。 | ||||||||||||||
ステップ 6 | [フォルダ名] フィールドに名前を入力します。 | ||||||||||||||
ステップ 7 | [次へ] をクリックします。 [ワークフローのユーザ入力] 画面が表示されます。 | ||||||||||||||
ステップ 8 | [追加] アイコン(+)をクリックします。 | ||||||||||||||
ステップ 9 |
表示される [エントリの追加先] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||
ステップ 10 | [選択...] をクリックします。[選択] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 11 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||
ステップ 12 | [選択] をクリックします。 [エントリの追加] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 13 | [値の制限] 領域で [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||
ステップ 14 | [管理者の入力値] ドロップダウン リストから root を選択します。 | ||||||||||||||
ステップ 15 | [送信] をクリックします。 | ||||||||||||||
ステップ 16 | [OK] をクリックします。 | ||||||||||||||
ステップ 17 | [ワークフローのユーザ入力] 画面で、[入力の追加] ボタン(+)をクリックします。 [エントリの追加先] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 18 | [入力ラベル] フィールドに tech privileges と入力します。 | ||||||||||||||
ステップ 19 | [選択] をクリックします。 | ||||||||||||||
ステップ 20 | [選択] ダイアログボックスで、[デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||
ステップ 21 | [選択] をクリックします。 [エントリの追加] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 22 | [値の制限] 領域で [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||
ステップ 23 | [管理者の入力値] ドロップダウン リストから tech を選択します。 | ||||||||||||||
ステップ 24 | [送信] をクリックします。 | ||||||||||||||
ステップ 25 | [OK] をクリックします。 | ||||||||||||||
ステップ 26 | [送信] をクリックします。 | ||||||||||||||
ステップ 27 | [OK] をクリックします。 |
次の例では、フィルタ基準に基づいて値のリストを作成する方法について説明します。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [追加] アイコン(+)をクリックします。 | ||||||||||||||||
ステップ 4 |
[カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 5 | [選択...] をクリックします。 | ||||||||||||||||
ステップ 6 |
[選択] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [入力ラベル] フィールドに root privileges と入力します。 | ||||||||||||||||
ステップ 8 | [選択...] をクリックします。 [選択] テーブルが表示されます。 | ||||||||||||||||
ステップ 9 | ログインに特有のエントリを識別するために、[検索] フィールドに log in と入力します。 | ||||||||||||||||
ステップ 10 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 11 | [選択] をクリックします。 | ||||||||||||||||
ステップ 12 |
[エントリの追加先] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 13 | [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 14 | [管理者の入力値] ドロップダウン リストをクリックして、以前の選択が表示されることを確認します(admin、root、および tech)。 | ||||||||||||||||
ステップ 15 | [管理者の入力値] ドロップダウン リストから root を選択します。 | ||||||||||||||||
ステップ 16 | [送信] をクリックします。 エントリが正常に追加されます。 [ワークフローのユーザ入力] 画面が表示されます。 | ||||||||||||||||
ステップ 17 | [追加] アイコン(+)をクリックします。 | ||||||||||||||||
ステップ 18 |
[エントリの追加先] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 19 | [入力ラベル] フィールドに tech privileges と入力します。 | ||||||||||||||||
ステップ 20 | [選択...] をクリックして入力タイプを選択します。 [選択] ダイアログボックスが表示されます。 | ||||||||||||||||
ステップ 21 | クレデンシャルに関連する入力タイプを識別するために、[検索] フィールドに cre と入力します。 | ||||||||||||||||
ステップ 22 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 23 | [選択] をクリックします。 | ||||||||||||||||
ステップ 24 |
[エントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 25 | [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 26 | [管理者の入力値] ドロップダウン リストから tech を選択します。 | ||||||||||||||||
ステップ 27 | [送信] をクリックします。 | ||||||||||||||||
ステップ 28 | [OK] をクリックします。 | ||||||||||||||||
ステップ 29 | [ワークフローのユーザ入力] 画面から、[送信] をクリックします。 | ||||||||||||||||
ステップ 30 | [OK] をクリックします。 |
次の例では、固有な選択(たとえば、複数の VM)に基づいて値のリストを作成する方法について説明します。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||||||||||||
ステップ 3 |
[VM 導入リスト] の入力を選択します。
|
||||||||||||||||
ステップ 4 | [カスタム入力タイプ] 画面で、[入力フィルタ] チェックボックスをオフにします。 | ||||||||||||||||
ステップ 5 |
[入力リスト] チェックボックスをオンにします。
|
||||||||||||||||
ステップ 6 | [表形式の値] ドロップダウン リストから、1 つ以上のクラウド エントリのチェックボックスをオンにします。 | ||||||||||||||||
ステップ 7 | [選択] をクリックします。 | ||||||||||||||||
ステップ 8 | [カスタム入力の詳細] 画面の [閉じる] をクリックします。 | ||||||||||||||||
ステップ 9 | [ワークフロー] タブを選択します。 | ||||||||||||||||
ステップ 10 | [ワークフローの追加] アイコン(+)をクリックします。 [ワークフローの詳細] 画面が表示されます。 | ||||||||||||||||
ステップ 11 |
[ワークフローの詳細] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 12 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 13 |
[エントリの追加] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 14 | [送信] をクリックします。 |
ステップ 1 | [ワークフローの編集] の [ワークフローのユーザ入力] 画面で、入力テーブルから入力を選択します。 |
ステップ 2 | 緑の上向き矢印または下向き矢印のアイコンをクリックして、入力の元の順序を変更します。 |
ステップ 3 | [送信] をクリックします。 |
ステップ 4 | [OK] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||
ステップ 2 | サービス リクエストをクリックします。 入出力のテーブルが表示されます。 | ||
ステップ 3 |
[入力/出力] タブをクリックします。 ワークフロー内の特定のタスクの値には、このタブからアクセスできます。 前述の入出力の 4 つのバリエーションが [入力/出力] 列に表示されます。
|
ワークフロー(たとえば、SSH タスク)内の前のタスクの出力にアクセスできます。 前のタスクの出力値を参照するには、次の例に示すように、完全なタスク出力変数名を参照する必要があります。
{Associate AP.OUTPUT_UCS_BLADE_MAC_ADDRESS}
次の形式は無効です。
{OUTPUT_UCS_BLADE_MAC_ADDRESS}
ステップ 1 | [ワークフローデザイナ] ペインから既存のワークフロー(たとえば、AddServiceConsolePortGroup_322)を開きます。 | ||||||||||||
ステップ 2 | タスク アイコンをクリックします。 | ||||||||||||
ステップ 3 | (必須およびオプションの入力が表示された)[タスクの編集] ダイアログボックスでは、入力を再選択できます。 | ||||||||||||
ステップ 4 |
[ワークフローのユーザ入力の管理] ボタンをクリックします。 [ワークフローのユーザ入力] ダイアログボックスが表示されます。
|
||||||||||||
ステップ 5 | [ワークフローのユーザ入力] ダイアログボックスで、[ワークフローのユーザ入力の追加] アイコン(+)をクリックして新しい入力を追加します。 | ||||||||||||
ステップ 6 | [送信] をクリックします。 |
(注) |
前提条件として、カスタム ワークフローに必要な TaskConfigIf および AbstractTask のコンポーネントを開発する必要があります。 |
独自の入力タイプを Cisco UCS Director で開発できます。 ただし、これらの入力タイプには、モジュール ID のプレフィックスを付ける必要があります。 次に例を示します。
public static final String NEXUX_DEVICE_LIST = "foo_nexus_device_l: @UserInputField(type = ModuleConstants.NEXUS_DEVICE_LIST)
この例の ModuleContrants.NEXUS_DEVICE_LIST は、foo_nexus_device_list に解決されます。
ステップ 1 | UCS Director で、 を選択します。 [ワークフロー] タブに、使用可能なワークフローをリストするテーブルが表示されます。 を選択してから、[ワークフロー] |
ステップ 2 | [ワークフローの追加] を選択して [ワークフローの追加] ダイアログボックスを開きます。 |
ステップ 3 | [ワークフローコンテキスト] ドロップダウン リストで、ワークフロー コンテキストを選択します。 選択したコンテンツでこのワークフローが使用されます。 |
ステップ 4 | [ワークフローコンテキスト] ドロップダウン リストで、ワークフロー コンテキストを選択します。 選択したコンテンツでこのワークフローが使用されます。 |
ステップ 5 | このワークフローを別のワークフローのタスクとして使用するために、[複合タスクとして保存] チェックボックスをオンにします。 |
ステップ 6 | このワークフローを配置する新しいフォルダを作成するために、[新しいフォルダに配置] チェックボックスをオンにします。 |
ステップ 7 | [フォルダの選択] ドロップダウン リストから、ワークフローを追加する必要があるフォルダを選択します。 |
ステップ 8 | [次へ] をクリックします。 [ワークフローのユーザ入力] 画面が表示されます。 |
ステップ 9 | [追加] アイコンをクリックします。 |
ステップ 10 | [エントリの追加先] ウィンドウで、ワークフローのユーザ入力に対する一意の名前と説明を入力します。 |
ステップ 11 | [選択] をクリックし、入力のタイプを選択します。 選択した入力タイプに基づいて、他のフィールドが表示されます。 |
ステップ 12 | [送信] をクリックします。 定義した入力がワークフローに追加されます。 |
ステップ 13 | [送信] をクリックします。 選択したフォルダ内にワークフローが作成されます。 |
ステップ 14 | 左上隅の [ユーザ入力の追加] を選択します。 |
ステップ 15 | ワークフローを作成したフォルダに移動します。 |
ステップ 16 | ワークフローをクリックします。 [ワークフローデザイナ] ウィンドウが開き、[使用可能なタスク] リストとワークフロー設計グラフィカル ビューが表示されます。 |
ステップ 17 | [使用可能なタスク] リストで必要なタスクをクリックし、選択したタスクを [ワークフローデザイナ] ウィンドウにドラッグ アンド ドロップします。 |
ステップ 18 | [次へ] をクリックします。 [ユーザ入力マッピング] 画面が表示されます。 |
ステップ 19 | ワークフローの入力フィールドの値を使用する属性を選択します。 |
ステップ 20 | [次へ] をクリックします。 |
ステップ 21 | ワークフロー入力にマッピングされていないタスク入力に対し、値を入力します。 |
ステップ 22 | [送信] をクリックします。 ワークフロー タスクが保存されます。 |
ステップ 23 | カーソルをタスクの左下隅に移動すると、[成功時] タスク アイコンが緑色で表示されます。 |
ステップ 24 | カーソルを緑色の領域に移動し、次のタスクまたは [完了(成功)タスク] アイコンにドラッグします。 |
ステップ 25 | カーソルをタスクの右下隅に移動すると、[失敗時] タスク アイコンが赤色で表示されます。 |
ステップ 26 | カーソルを赤色の領域に移動し、[完了(失敗)タスク] アイコンにドラッグします。 タスクがリンクされ、ワークフローが完成します。 |
ステップ 27 | [閉じる] をクリックします。 |
ステップ 28 | ワークフローを選択し、[今すぐ実行] をクリックします。 システムにより、送信されたワークフローにサービス リクエスト ID が指定されます。 |
ステップ 29 |
を選択します。 すべてのユーザ グループのサービス リクエストが表示されます。 |
ステップ 30 | [サービスリクエスト] タブをクリックします。 |
ステップ 31 | 送信済みのワークフローを選択します。 サービス リクエスト ID を使用してワークフローを検索できます。 [ワークフローのステータス] タブに、サービス リクエストの現在のステータスが表示されます。 |
ステップ 1 | メニュー バーで、 を選択します。 |
ステップ 2 | [ワークフロー] タブを選択します。 |
ステップ 3 | 左の列でワークフローを選択します。 |
ステップ 4 | [ワークフローデザイナ] で、[全画面表示] アイコンをクリックします。 |
ステップ 5 | [保存] をクリックします。 |
ステップ 6 | 画像ファイル(workflow_*.png)を保存するディレクトリを選択します。 |
ステップ 7 | [保存] をクリックします。 |
目次
この章は、次の内容で構成されています。
[ワークフロー] タブでは、次のアクションを実行できます。
名前 | 説明 |
---|---|
[更新] |
表示を更新します。 |
[お気に入り] |
現在のページをお気に入りに追加します。 |
[ワークフローの追加] |
新しいワークフローを追加します。 |
[インポート] |
ワークフローをインポートします。 |
[エクスポート] |
ワークフローをエクスポートします。 |
[タスクライブラリ] |
タスクのドキュメントにアクセスします。 |
[検索と置換] |
キーワードの検索と置換を実行します。 |
[ワークフローの編集] |
既存のワークフローを編集します。 |
[ワークフローの複製] |
既存のワークフローを複製します。 |
[ワークフローの削除] |
既存のワークフローを削除します(ロックされていない場合)。 |
[今すぐ実行] |
有効なワークフローを実行します。 |
[ワークフローの表示] |
現在選択されているワークフローを表示します。 |
[ワークフローデザイナ] |
[ワークフローデザイナ] ペインにアクセスします。 |
[テンプレートとしてエクスポート] |
選択されたワークフローをテンプレートとしてエクスポートします。 |
[スケジュール] |
ワークフロー(実行)をスケジュールします。 |
[ワークフローのロックまたはロック解除] | 現在選択されているワークフローをロックまたはロック解除します。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [ワークフロー] タブを選択します。 | ||||||||||||||||
ステップ 3 | [ワークフローの追加] をクリックします。 | ||||||||||||||||
ステップ 4 | [ワークフローの追加] 画面で、次のフィールドに入力します。 | ||||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 6 | [ワークフローの追加] の [ワークフローのユーザ入力] 画面で、次のフィールドに入力します。 | ||||||||||||||||
ステップ 7 | 追加のユーザ入力がある場合は、[追加] をクリックします。 | ||||||||||||||||
ステップ 8 | (オプション)現在の入力を管理(再編)する場合は、[ワークフローのユーザ入力の管理] ボタンをクリックします。 | ||||||||||||||||
ステップ 9 |
[エントリの追加先] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 10 | [送信] をクリックします。 | ||||||||||||||||
ステップ 11 | [送信] をクリックします。 |
新しいワークフローを作成する場合、または既存のワークフローを編集する場合は、ユーザ入力はデフォルトで必須です。 ただし、タスクがワークフローの実行時点でオプションとなるように設定できます。
(注) |
オプションのワークフロー入力は、必須のタスク入力(属性)にマッピングできません。 ユーザ入力マッピングのステージでは、不一致エラーが表示されます。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||
ステップ 2 | [ワークフロー] フォルダを開きます。 | ||
ステップ 3 | タスクをクリックします。 | ||
ステップ 4 | [ワークフローの編集] をクリックします。 [ワークフローの編集] 画面が表示されます。 | ||
ステップ 5 | [次へ] をクリックして [ユーザ入力の変更] 画面にアクセスします。 | ||
ステップ 6 | 入力テーブル内で、編集する入力をクリックします。 [エントリの編集] ダイアログボックスが表示されます。 | ||
ステップ 7 |
この入力が(実行時点で)オプションになるように、[オプション] チェックボックスをオンにします。
|
||
ステップ 8 | [送信] をクリックします。 | ||
ステップ 9 | [OK] をクリックします。 | ||
ステップ 10 | [送信] をクリックします。 | ||
ステップ 11 | [OK] をクリックします。 |
ワークフローの作成時に、さまざまなポイントでフィルタを使用して、データの選択肢を絞り込むことができます。 [管理入力フィルタ] パラメータを操作するときに [入力フィルタの基準] フィールドに値を入力して、ワークフロー開発をさらに強化できます。 フィルタ構文が最も役立つのは、入力が非常に多い場合です。 たとえば、特定の VM 上で動作するワークフロー タスクがあり、Cisco UCS Director 環境内に 1000 を超える VM が存在する場合に、このフィルタを使用することで、自分のワークフロー開発に該当する VM のみに絞り込むことができます。 [管理入力フィルタ] オプションを使用して、特定のクラウド アカウントに存在する VM にフィルタを適用し、その後、そのクラウド アカウントの(テーブルにリストされた)データをフィルタして、その特定のクラウド アカウントに属する VM のみを検索することができます。
別の例としては、ワークフローを作成するとき、[管理入力フィルタ] フィールドに情報を入力します。 このフィルタを使用すると、前述のように、特定のクラウド アカウントから必要な VM に絞り込むことができます。 実際には、このフィルタされた VM のリストが表示されるのは、ワークフローを実行するときのみです。 つまり、フィルタ基準をワークフロー設計の早いステージで定義しても、実際の VM リストが選択肢として表示されるのは、ワークフローが実行されるときのみです。
表形式のすべてのデータ タイプを対象とするフィルタリングの(一般的な)コマンド構文と例は、次のとおりです。
<column label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1> OR <simple match regex> OR <value n> AND <column label>EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS|IS_SUBSET|NOT_SUBSET<value1>OR<value2>OR<value n>
たとえば、VM の名前 testvm を検索する場合、有効な正規表現は test* または *vm のみです。 他の組み合わせは認められません。 この場合、マッチの規則は「欲張りなマッチ」になります(正規表現の前部または後部で使用される)。
(注) |
ワークフローで使用するコマンド構文は、標準的な UNIX の正規表現をサポートしません。 |
cloud CONTAINS vcenter OR vcenter98 AND power status EQUALS OFF OR "not determined"
「AND」結合条件は、すでにフィルタリングされた行にフィルタを適用します。 AND はカスケーディング フィルタとして動作します。 式の最初の部分では、VM セレクタ テーブル内のすべての行を対象として、cloud という名前の列が検索されます。 さらに、vcenter または vcenter98 という文字列の有無が確認されます。
式の 2 番目の部分では、前の部分の結果として取得された行が検索対象になります。 off または「not determined」という文字列の有無も確認されます。
条件 1 と 2 の間には AND 条件が指定されているため、条件 1 と 2 の両方に一致した場合に限り、対応するデータ行がワークフローのユーザに表示されます。 検索するキーワードを引用符で囲むと、大文字と小文字を区別して検索されます。
(注) |
条件 1 と条件 2 の間に OR 条件を指定することはできません。 列の間で条件を結合する場合は AND を使用する必要があり、列のデータにフィルタを適用する場合は OR 条件を使用する必要があります。 また、複数の単語で構成される列のラベルを検索する場合は、単語を二重引用符で囲む必要があります。 フィルタリングの条件では、大文字と小文字が区別されるため、正しく指定しないとフィルタリングの値が無視されます。 |
LOV タイプでは単一の値のみが使用されているため、値をフィルタリングするには条件を記述するだけで十分です。
すべての値のリスト(LOV)のデータ タイプを対象とするフィルタリングのコマンド構文は、次のとおりです。
EQUALS|NOT_EQUALS|CONTAINS|NOT_CONTAINS <value1> OR <simple match regex> OR <value n>
オーケストレータには一連の定義済みのタスクがあり、これを使用してワークフローを簡単に作成できます。 これらのタスクは、機能に基づいて分類されており、[ワークフローデザイナ] インターフェイスからアクセスできます。
ステップ 1 | [オーケストレータ] ウィンドウでワークフローを選択します。 |
ステップ 2 | [ワークフローデザイナ] をクリックします。 [ワークフローデザイナ] ウィンドウが表示されます。 |
ステップ 3 | [ワークフローデザイナ] の左側でカテゴリを選択して [使用可能なタスク] フォルダをクリックします。 |
ステップ 4 | 必要なタスクをクリックして、選択したタスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 |
ステップ 1 | メニュー バーで、[ポリシー] > [オーケストレーション] を選択します。 | ||||||||||||||||
ステップ 2 | [ワークフロー] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [ワークフローデザイナ] ウィンドウから、[VMスナップショットの作成] タスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 | ||||||||||||||||
ステップ 4 |
[ワークフローのタスクの基本情報] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 6 |
[タスク入力属性へのユーザ入力のマッピング] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 8 | 次のフィールドに入力します。 | ||||||||||||||||
ステップ 9 | [送信] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [ワークフロー] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [使用可能なタスク] ペインから、[VMディスクのサイズ変更] タスクを [ワークフローデザイナ] ウィンドウまでドラッグ アンド ドロップします。 | ||||||||||||||||
ステップ 4 |
[ワークフローのタスクの基本情報] 画面で、次の情報を入力します。
|
||||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 6 |
[タスク入力属性へのユーザ入力のマッピング] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 8 | [ユーザ入力マッピング] 画面で、次のフィールドに入力します。 | ||||||||||||||||
ステップ 9 | [送信] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 |
ステップ 2 | [ワークフロー] タブを選択します。 |
ステップ 3 | [新規ワークフローの追加] をクリックします。 |
ステップ 4 | [ワークフローの追加] 画面で、次のフィールドに入力します。 |
ステップ 5 | [次へ] をクリックします。 |
ステップ 6 | [ワークフローの編集] の [ユーザ入力の追加] 画面で、次のフィールドに入力します。 |
ステップ 7 | 追加のユーザ入力がある場合は、[ユーザ入力の追加] をクリックします。 |
ステップ 8 | [送信] をクリックします。 空のワークフローが作成されます。 |
ステップ 9 | [ワークフローデザイナ] ペインで、[タスクの開始] アイコンにカーソルを置きます。 タスク アイコンの一部が緑または赤で強調表示されます。 |
ステップ 10 | [使用可能なタスク] ペインから、タスク(CreateClusterServer_2177 task アイコン)を [ワークフローデザイナ] ページにドラッグ アンド ドロップします。 |
ステップ 11 | [使用可能なタスク] ペインから、CreateClusterLogicalInterface_2167 task アイコンを [ワークフローデザイナ] ページにドラッグ アンド ドロップします。 |
ステップ 12 | [タスクの開始] アイコンの緑の部分をクリックして、最初のタスク(たとえば、CreateClusterServer_2177 task アイコン)までカーソルをドラッグします。 リンクが確立されます。 このタスクが正常に完了すると、ワークフローの機能性が高まります。 ワークフローの全タスク(成功と失敗の両方)に対して、この手順を実行します。 |
ステップ 13 | [タスクの開始] アイコンの赤の部分をクリックして、[完了(失敗)タスク] アイコンまでカーソルをドラッグします。 |
ステップ 14 | CreateClusterLogicalInterface_2167 task アイコンで、カーソルを赤の領域(右側)に移動して、[完了(失敗)タスク] アイコンにドラッグします。 |
ステップ 15 | [ワークフローの検証] をクリックします。 |
よく使用するワークフローをテンプレートとしてエクスポートし、別の管理シナリオで使用することができます。 テンプレートをエクスポートする場合、ワークフロー内のタスクはすべて保持されます。 テンプレートを別の Cisco UCS Director 環境にインポートして、ワークフローとして同様に使用することもできます。 テンプレートを使用して新しいワークフローを作成する場合、マッピングされたタスク内の入力は変更できません。 ただし、マッピングされていない入力は変更することができます。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||||
ステップ 2 | [テンプレート] タブを選択します。 | ||||||||||||||||||
ステップ 3 |
テンプレートを選択して、[ワークフローの作成] をクリックします。 オーケストレータでは、定義済みテンプレートをインポートおよび使用することができます。 テンプレートは [ワークフローのテンプレート] タブから取得でき、新しいワークフローの作成に使用できます。 次のテンプレートを使用できます。
|
複合タスクは複数のタスクの集合です。 複合タスクでは、複雑なワークフローを実行できます。 複合タスクは、複数のワークフローを含む単一のワークフロー(組み込みワークフロー)で構成されています。 簡単なワークフローを定義して複合タスク(複合タスク A = ワークフロー A)として保存した後、もう 1 つのワークフローを定義し、この新しいワークフローの一部として、複合タスク A(別のワークフロー)を使用することができます。 このパターンを使用して、簡単なワークフローに基づいて複雑なワークフローを定義できます。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||
ステップ 2 | [ワークフロー] タブを選択します。 | ||||||||||||||
ステップ 3 | [新規ワークフローの追加] をクリックします。 | ||||||||||||||
ステップ 4 | [ワークフローの詳細] 画面で、次のフィールドに入力します。 | ||||||||||||||
ステップ 5 | [次へ] をクリックします。 | ||||||||||||||
ステップ 6 |
[ユーザ入力の追加] 画面で、次のフィールドに入力します。
|
||||||||||||||
ステップ 7 | 追加のユーザ入力がある場合は、[ユーザ入力の追加] をクリックします。 | ||||||||||||||
ステップ 8 | [送信] をクリックします。 空のワークフローが作成されます。 |
カスタム承認タスクの機能を使用して、ワークフローをプロビジョニングし、承認を得ることができます。この機能では、インフラストラクチャの管理者(コンピューティング、ストレージ、およびネットワーク)またはあらゆるタイプのシステム ユーザが、ワークフローの実行に関する入力を指定することができます。
カスタム承認タスクでは、特定のユーザの承認が得られた後でワークフローを実行できます。 このタスクをワークフローに追加するときは、承認者の名前が要求されます。 また同じ個人が、以前にカスタム承認タスクで定義されていた入力を提供することもできます。 これらの承認タスクは、定義された後でワークフローに追加できます。 次に、タスク承認者名の入力を求めるプロンプトが表示されます。 ワークフローを実行すると、ワークフローは承認タスクで一時停止します。 承認者は、この承認の指定を [承認] タブで確認できます。 承認者は、設定済みの必要な入力を提供します(これらは以降のタスクにマッピングできます)。 ワークフローが承認されると、ワークフローの実行が再開します。
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタム承認タスク] タブを選択します。 | ||||||||||||||||
ステップ 3 | [追加] をクリックします。 | ||||||||||||||||
ステップ 4 |
[入力の追加] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 5 | [送信] をクリックします。 |
カスタム承認タスクのワークフローへの追加は、他のタスクをワークフローに追加することと同じです。 タスク作成のユーザ入力マッピングのステージでは、承認者が実行時点でこのワークフローを承認する必要があるかどうかを決定できます。 実行時点で承認する必要がない場合は、プロセスのタスク入力のステージで、オーケストレータによって、承認者名の入力を要求するプロンプトが表示されます。
ステップ 1 | メニュー バーで、 を選択します。 |
ステップ 2 | [ワークフロー] タブを選択します。 |
ステップ 3 | [使用可能なタスク] ペインからカスタム承認タスクを追加するワークフローを選択します。 [ワークフローデザイナ] ページが表示されます。 |
ステップ 4 | [カスタム承認タスク] フォルダ内からカスタム承認タスクを [ワークフローデザイナ] ペインにドラッグします。 |
ステップ 5 | [カスタム承認タスク] フォルダから、タスクを [ワークフローデザイナ] ペインまでドラッグします。 |
ステップ 6 | ワークフローの実行時に承認者名を指定する必要がある場合は、[タスクの追加] 画面で [ユーザ入力にマッピング] チェックボックスをオンにします。 それ以外の場合は、ワークフローの実行時に承認者の名前を指定できます。 |
ステップ 7 | [次へ] をクリックします。 |
ステップ 8 | [ユーザID] を入力します。 |
ステップ 9 | [送信] をクリックします。 |
カスタム入力タイプを作成すると、これらをワークフロー入力として使用できます。 カスタム入力タイプは、新しい値のリスト(キーや値のタプルなど)を指定する方法、表示される値をフィルタで絞り込むフィルタ基準を指定する方法、または値の固有の選択肢(セット)を選択する方法で定義できます。
ステップ 1 | メニュー バーで、 を選択します。 | ||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||
ステップ 3 | [追加] をクリックします。 | ||
ステップ 4 | [カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。 | ||
ステップ 5 | [追加] アイコン(+)をクリックします。 | ||
ステップ 6 | [カスタム ワークフローの入力値の追加] の [カスタム入力の詳細] ダイアログボックスで、次のフィールドに入力します。 | ||
ステップ 7 | [追加] アイコン(+)をクリックします。 | ||
ステップ 8 |
[LOVエントリへのエントリの追加] ダイアログボックスで、次のフィールドに入力します。
|
||
ステップ 9 | [送信] をクリックして、カスタム ワークフロー タイプに追加します。 | ||
ステップ 10 | [OK] をクリックします。 | ||
ステップ 11 | [送信] をクリックします。 | ||
ステップ 12 | [OK] をクリックして、プロセスを完了します。 新しいカスタム ワークフロー入力が [カスタムワークフローの入力値] リストに表示されます。 |
ステップ 1 | メニュー バーで、 を選択します。 |
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 |
ステップ 3 | [追加] アイコン(+)をクリックします。 |
ステップ 4 | [カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。 |
ステップ 5 | [選択...] をクリックします。 [選択] ダイアログボックスが表示されます。 |
ステップ 6 | 検索フィールドにパスワードと入力します。 パスワードという単語を使用したチェックボックスが一覧表示されます。 |
ステップ 7 | [パスワード] チェックボックスをオンにします。 |
ステップ 8 | [選択] をクリックします。 [カスタム入力の詳細] 画面が表示されます。 |
ステップ 9 | [追加] アイコン(+)をクリックします。 [LOVエントリへのエントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。 |
ステップ 10 | [ラベル] フィールドに admin と入力します。 |
ステップ 11 | [値] フィールドにパスワード テキストを入力します(表示されません)。 |
ステップ 12 | [送信] をクリックします。 |
ステップ 13 | [OK] をクリックします。 [カスタム入力の詳細] 画面が表示されたら、次のフィールドに次のように入力します。 |
ステップ 14 | [ラベル] フィールドに root と入力します。 |
ステップ 15 | [値] フィールドにパスワード テキストを入力します(表示されません)。 |
ステップ 16 | [送信] をクリックします。 |
ステップ 17 | [OK] をクリックします。 このエントリが [LOVエントリ] テーブルに表示されます。 |
ステップ 18 | [追加] アイコン(+)をクリックします。 [LOVエントリへのエントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。 |
ステップ 19 | [ラベル] フィールドに tech と入力します。 |
ステップ 20 | [値] フィールドにテキストを入力します(表示されません)。 |
ステップ 21 | [送信] をクリックします。 |
ステップ 22 | [OK] をクリックします。 このエントリが [LOVエントリ] テーブルに表示されます。 |
ステップ 23 | [送信] をクリックします。 |
ステップ 24 | [OK] をクリックします。 |
(注) |
次のステージでは、カスタム入力をワークフローに追加します。 「ワークフローへのカスタム入力の追加」のトピックを参照してください。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||
ステップ 2 | [ワークフローの追加] アイコンをクリックします。 | ||||||||||||||
ステップ 3 | [ワークフローの追加] の [ワークフローの詳細] 画面で、次のフィールドに入力します。 | ||||||||||||||
ステップ 4 | [ワークフロー名] フィールドにデバイスの作成と入力します。 | ||||||||||||||
ステップ 5 | [新しいフォルダに配置] チェックボックスをオンにします。 | ||||||||||||||
ステップ 6 | [フォルダ名] フィールドに名前を入力します。 | ||||||||||||||
ステップ 7 | [次へ] をクリックします。 [ワークフローのユーザ入力] 画面が表示されます。 | ||||||||||||||
ステップ 8 | [追加] アイコン(+)をクリックします。 | ||||||||||||||
ステップ 9 |
表示される [エントリの追加先] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||
ステップ 10 | [選択...] をクリックします。[選択] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 11 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||
ステップ 12 | [選択] をクリックします。 [エントリの追加] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 13 | [値の制限] 領域で [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||
ステップ 14 | [管理者の入力値] ドロップダウン リストから root を選択します。 | ||||||||||||||
ステップ 15 | [送信] をクリックします。 | ||||||||||||||
ステップ 16 | [OK] をクリックします。 | ||||||||||||||
ステップ 17 | [ワークフローのユーザ入力] 画面で、[入力の追加] ボタン(+)をクリックします。 [エントリの追加先] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 18 | [入力ラベル] フィールドに tech privileges と入力します。 | ||||||||||||||
ステップ 19 | [選択] をクリックします。 | ||||||||||||||
ステップ 20 | [選択] ダイアログボックスで、[デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||
ステップ 21 | [選択] をクリックします。 [エントリの追加] ダイアログボックスが表示されます。 | ||||||||||||||
ステップ 22 | [値の制限] 領域で [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||
ステップ 23 | [管理者の入力値] ドロップダウン リストから tech を選択します。 | ||||||||||||||
ステップ 24 | [送信] をクリックします。 | ||||||||||||||
ステップ 25 | [OK] をクリックします。 | ||||||||||||||
ステップ 26 | [送信] をクリックします。 | ||||||||||||||
ステップ 27 | [OK] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||||||||||||
ステップ 3 | [追加] アイコン(+)をクリックします。 | ||||||||||||||||
ステップ 4 | [カスタム ワークフローの入力値の追加] ダイアログボックスで、次のフィールドに入力します。 | ||||||||||||||||
ステップ 5 | [選択...] をクリックします。 | ||||||||||||||||
ステップ 6 |
[選択] ダイアログボックスで、次のフィールドに入力します。
|
||||||||||||||||
ステップ 7 | [入力ラベル] フィールドに root privileges と入力します。 | ||||||||||||||||
ステップ 8 | [選択...] をクリックします。 [選択] テーブルが表示されます。 | ||||||||||||||||
ステップ 9 | ログインに特有のエントリを識別するために、[検索] フィールドに log in と入力します。 | ||||||||||||||||
ステップ 10 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 11 | [選択] をクリックします。 | ||||||||||||||||
ステップ 12 |
[エントリの追加先] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 13 | [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 14 | [管理者の入力値] ドロップダウン リストをクリックして、以前の選択が表示されることを確認します(admin、root、および tech)。 | ||||||||||||||||
ステップ 15 | [管理者の入力値] ドロップダウン リストから root を選択します。 | ||||||||||||||||
ステップ 16 | [送信] をクリックします。 エントリが正常に追加されます。 [ワークフローのユーザ入力] 画面が表示されます。 | ||||||||||||||||
ステップ 17 | [追加] アイコン(+)をクリックします。 | ||||||||||||||||
ステップ 18 |
[エントリの追加先] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 19 | [入力ラベル] フィールドに tech privileges と入力します。 | ||||||||||||||||
ステップ 20 | [選択...] をクリックして入力タイプを選択します。 [選択] ダイアログボックスが表示されます。 | ||||||||||||||||
ステップ 21 | クレデンシャルに関連する入力タイプを識別するために、[検索] フィールドに cre と入力します。 | ||||||||||||||||
ステップ 22 | [デバイスのログイン クレデンシャル] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 23 | [選択] をクリックします。 | ||||||||||||||||
ステップ 24 |
[エントリの追加] ダイアログボックスが表示されたら、次のフィールドに入力します。
|
||||||||||||||||
ステップ 25 | [管理者の入力値] チェックボックスをオンにします。 | ||||||||||||||||
ステップ 26 | [管理者の入力値] ドロップダウン リストから tech を選択します。 | ||||||||||||||||
ステップ 27 | [送信] をクリックします。 | ||||||||||||||||
ステップ 28 | [OK] をクリックします。 | ||||||||||||||||
ステップ 29 | [ワークフローのユーザ入力] 画面から、[送信] をクリックします。 | ||||||||||||||||
ステップ 30 | [OK] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||||||||||||||||
ステップ 2 | [カスタムワークフローの入力値] タブをクリックします。 | ||||||||||||||||
ステップ 3 |
[VM 導入リスト] の入力を選択します。
|
||||||||||||||||
ステップ 4 | [カスタム入力タイプ] 画面で、[入力フィルタ] チェックボックスをオフにします。 | ||||||||||||||||
ステップ 5 |
[入力リスト] チェックボックスをオンにします。
|
||||||||||||||||
ステップ 6 | [表形式の値] ドロップダウン リストから、1 つ以上のクラウド エントリのチェックボックスをオンにします。 | ||||||||||||||||
ステップ 7 | [選択] をクリックします。 | ||||||||||||||||
ステップ 8 | [カスタム入力の詳細] 画面の [閉じる] をクリックします。 | ||||||||||||||||
ステップ 9 | [ワークフロー] タブを選択します。 | ||||||||||||||||
ステップ 10 | [ワークフローの追加] アイコン(+)をクリックします。 [ワークフローの詳細] 画面が表示されます。 | ||||||||||||||||
ステップ 11 | [ワークフローの詳細] 画面で、次のフィールドに入力します。 | ||||||||||||||||
ステップ 12 | [次へ] をクリックします。 | ||||||||||||||||
ステップ 13 |
[エントリの追加] 画面で、次のフィールドに入力します。
|
||||||||||||||||
ステップ 14 | [送信] をクリックします。 |
ステップ 1 | メニュー バーで、 を選択します。 | ||
ステップ 2 | サービス リクエストをクリックします。 入出力のテーブルが表示されます。 | ||
ステップ 3 |
[入力/出力] タブをクリックします。 ワークフロー内の特定のタスクの値には、このタブからアクセスできます。 前述の入出力の 4 つのバリエーションが [入力/出力] 列に表示されます。
|
ワークフロー(たとえば、SSH タスク)内の前のタスクの出力にアクセスできます。 前のタスクの出力値を参照するには、次の例に示すように、完全なタスク出力変数名を参照する必要があります。
{Associate AP.OUTPUT_UCS_BLADE_MAC_ADDRESS}
次の形式は無効です。
{OUTPUT_UCS_BLADE_MAC_ADDRESS}
ステップ 1 | [ワークフローデザイナ] ペインから既存のワークフロー(たとえば、AddServiceConsolePortGroup_322)を開きます。 |
ステップ 2 | タスク アイコンをクリックします。 |
ステップ 3 | (必須およびオプションの入力が表示された)[タスクの編集] ダイアログボックスでは、入力を再選択できます。 |
ステップ 4 | [ワークフローのユーザ入力の管理] ボタンをクリックします。 [ワークフローのユーザ入力] ダイアログボックスが表示されます。 |
ステップ 5 | [ワークフローのユーザ入力] ダイアログボックスで、[ワークフローのユーザ入力の追加] アイコン(+)をクリックして新しい入力を追加します。 |
ステップ 6 | [送信] をクリックします。 |
(注) |
前提条件として、カスタム ワークフローに必要な TaskConfigIf および AbstractTask のコンポーネントを開発する必要があります。 |
独自の入力タイプを Cisco UCS Director で開発できます。 ただし、これらの入力タイプには、モジュール ID のプレフィックスを付ける必要があります。 次に例を示します。
public static final String NEXUX_DEVICE_LIST = "foo_nexus_device_l: @UserInputField(type = ModuleConstants.NEXUS_DEVICE_LIST)
この例の ModuleContrants.NEXUS_DEVICE_LIST は、foo_nexus_device_list に解決されます。
ステップ 1 | UCS Director で、 を選択します。 [ワークフロー] タブに、使用可能なワークフローをリストするテーブルが表示されます。 を選択してから、[ワークフロー] |
ステップ 2 | [ワークフローの追加] を選択して [ワークフローの追加] ダイアログボックスを開きます。 |
ステップ 3 | [ワークフローコンテキスト] ドロップダウン リストで、ワークフロー コンテキストを選択します。 選択したコンテンツでこのワークフローが使用されます。 |
ステップ 4 | [ワークフローコンテキスト] ドロップダウン リストで、ワークフロー コンテキストを選択します。 選択したコンテンツでこのワークフローが使用されます。 |
ステップ 5 | このワークフローを別のワークフローのタスクとして使用するために、[複合タスクとして保存] チェックボックスをオンにします。 |
ステップ 6 | このワークフローを配置する新しいフォルダを作成するために、[新しいフォルダに配置] チェックボックスをオンにします。 |
ステップ 7 | [フォルダの選択] ドロップダウン リストから、ワークフローを追加する必要があるフォルダを選択します。 |
ステップ 8 | [次へ] をクリックします。 [ワークフローのユーザ入力] 画面が表示されます。 |
ステップ 9 | [追加] アイコンをクリックします。 |
ステップ 10 | [エントリの追加先] ウィンドウで、ワークフローのユーザ入力に対する一意の名前と説明を入力します。 |
ステップ 11 | [選択] をクリックし、入力のタイプを選択します。 選択した入力タイプに基づいて、他のフィールドが表示されます。 |
ステップ 12 | [送信] をクリックします。 定義した入力がワークフローに追加されます。 |
ステップ 13 | [送信] をクリックします。 選択したフォルダ内にワークフローが作成されます。 |
ステップ 14 | 左上隅の [ユーザ入力の追加] を選択します。 |
ステップ 15 | ワークフローを作成したフォルダに移動します。 |
ステップ 16 | ワークフローをクリックします。 [ワークフローデザイナ] ウィンドウが開き、[使用可能なタスク] リストとワークフロー設計グラフィカル ビューが表示されます。 |
ステップ 17 | [使用可能なタスク] リストで必要なタスクをクリックし、選択したタスクを [ワークフローデザイナ] ウィンドウにドラッグ アンド ドロップします。 |
ステップ 18 | [次へ] をクリックします。 [ユーザ入力マッピング] 画面が表示されます。 |
ステップ 19 | ワークフローの入力フィールドの値を使用する属性を選択します。 |
ステップ 20 | [次へ] をクリックします。 |
ステップ 21 | ワークフロー入力にマッピングされていないタスク入力に対し、値を入力します。 |
ステップ 22 | [送信] をクリックします。 ワークフロー タスクが保存されます。 |
ステップ 23 | カーソルをタスクの左下隅に移動すると、[成功時] タスク アイコンが緑色で表示されます。 |
ステップ 24 | カーソルを緑色の領域に移動し、次のタスクまたは [完了(成功)タスク] アイコンにドラッグします。 |
ステップ 25 | カーソルをタスクの右下隅に移動すると、[失敗時] タスク アイコンが赤色で表示されます。 |
ステップ 26 | カーソルを赤色の領域に移動し、[完了(失敗)タスク] アイコンにドラッグします。 タスクがリンクされ、ワークフローが完成します。 |
ステップ 27 | [閉じる] をクリックします。 |
ステップ 28 | ワークフローを選択し、[今すぐ実行] をクリックします。 システムにより、送信されたワークフローにサービス リクエスト ID が指定されます。 |
ステップ 29 |
を選択します。 すべてのユーザ グループのサービス リクエストが表示されます。 |
ステップ 30 | [サービスリクエスト] タブをクリックします。 |
ステップ 31 | 送信済みのワークフローを選択します。 サービス リクエスト ID を使用してワークフローを検索できます。 [ワークフローのステータス] タブに、サービス リクエストの現在のステータスが表示されます。 |