get_compliance_rule_violation_event
参照元の様々な標準全体にわたり指定したルールおよびターゲットのルート標準、実行時識別子、ルート・ターゲット、ターゲット、イベント・インスタンスID、およびコンテキスト情報(オプション)の一意の識別子のリストを返します。
書式
emcli get_compliance_rule_violation_event -rule_iname="<rule_internal_name>" -target_type="<target_type>" -target_name="<target_name>" [-attrs="<attribute_list>"] root_cs_guid rqs_guid root_target_guid target_guid event_instance_id [-separator="<separator>"] [-show_context] column_name column_type=<N | S> column_value [ ] indicates that the parameter is optional.
オプション
-
rule_iname
コンプライアンス標準ルールの内部名。ルール内部名は、MGMT$CS_RULE_ATTRSビューで参照できます。
-
target_type
コンプライアンス標準ルールに関連付けられているターゲット・タイプ。
-
target_name
ターゲットの名前。
-
attrs
属性のリスト。属性を指定しない場合、次の順序ですべての属性が返されます。
-
root_cs_guid: ルールが関連付けられているルート標準の一意の識別子。
-
rqs_guid: ルート標準で参照されるルールの一意の実行時識別子。
-
root_target_guid: ルート・ターゲットの一意の識別子。
-
target_guid: ターゲットの一意の識別子。
-
event_instance_id: event_instanceの一意の識別子。
-
-
separator
列エントリ間で使用されるセパレータ。セパレータを指定しない場合、カンマ「,」が使用されます。
-
show_context
show_contextを指定しない場合、コンテキストは返されません。show_contextを指定すると、次の順序で次の属性が返されます。
-
column_name: 違反イベントのコンテキスト属性名。
-
column_value: 違反イベントのコンテキスト属性値。
-
column_type: 違反イベントのコンテキスト属性タイプ(数値の場合はN、文字列の場合はS)。
-
例
emcli get_compliance_rule_violation_event -rule_iname="myrule" -target_type="host" -target_name="my_machine" -attrs="root_cs_guid,root_target_guid" -show_context If myrule is associated to the specified target through M root_targets, the output appears as:std_guid,root_tgt1_guid,[column_name1,column_value11,column_type1],[column_name2,...],...[column_nameN,...]std_guid,root_tgt2_guid,[column_name1,column_value1M,column_type1],[column_name2,...],...[column_nameN,...]