class-of-service テンプレートの操作
共有属性の値が変更された場合は、それらを設定ファイルで更新できます。したがって、ロールバックできるようにソース コード制御システムに設定ファイルを必ず格納します。
cad140jp
共有属性の値が変更された場合は、それらを設定ファイルで更新できます。したがって、ロールバックできるようにソース コード制御システムに設定ファイルを必ず格納します。
class-of-service テンプレートの配布は実行可能ですが、DSA 設定を手動ですべてのノードにコピーする必要があります。
この記事では、以下のトピックについて説明します。
class-of-service テンプレートを使用できるように DSA を設定
現在キャッシュされているテンプレート情報もクリアするには、ローカル DSA 設定に以下の行を追加します。
clear class-of-service;
このステップにより、DSA がまだ実行されている間に、コマンド
dxserver init
を使用して属性を変更できます。スキーマのソーシング後に必ずテンプレート設定ファイルをソーシングします。テンプレートでは、スキーマ設定で定義されている属性を使用します。
エントリへの class-of-service テンプレートの追加
エントリで class-of-service テンプレートを使用するには、エントリに
cos-attr
属性を追加します。class-of-service テンプレートの作成
テンプレートは任意のディレクトリに格納できます。ただし、多くのテンプレートがある場合は、
DXHOME/config/settings directory
ディレクトリを使用して、個別のファイルにそれらを格納します。class-of-service テンプレートでは、以下の構文を使用します。
<cosTemplate> ::= set class-of-service <cosLabel> = { <operCos> }; <cosLabel> ::= <string> <operCos> ::= object-class = <attrOid> cos-attr = <attrOid> cos-value = <value> attribute-values = { <cosTemplateList> } <cosTemplateList> ::= <cosTemplate> | <cosTemplate>, <cosTemplateList> <cosTemplate> ::= ( type = <attrOid> value = <cosValueList> disposition = <cosDisposition> ) <cosValueList> ::= value | value, <cosValueList> <cosDisposition> ::= default | override
注:
class-of-service テンプレートで使用する cos-attr
は、単一値属性にする必要があります。class-of-service テンプレートの表示
DSA で使用されているテンプレートを表示するには、DSA コンソールから以下のコマンドを使用します。
get class-of-service;
これにより、先頭のテンプレート ラベルと共に、使用中の各 class-of-service テンプレートのリストが生成されます。
例:
get class-of-service
コマンドによる出力Excellent ISP での標準的な class of service のテンプレートは、以下のように表示されます。
************** standard ************** class-of-service = target object class : excellentISPUser target attribute : excellentISPPackage target value : "Standard" attribute list = attribute : excellentISPmailQuotaMB value/s : "20" disposition : default attribute : excellentISPwebSpaceMB value/s : "20" disposition : default attribute : excellentISPaccessHours value/s : "15" disposition : override attribute : excellentISPprice value/s : "19.95" disposition : default attribute : excellentISPextraHoursPrice value/s : "1.00" disposition : default