ja:documentation:pandorafms:technical_reference:03_anexo_cli

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ja:documentation:pandorafms:technical_reference:03_anexo_cli [2025/05/17 01:52] – [--create_policy_data_module] junichija:documentation:pandorafms:technical_reference:03_anexo_cli [2025/05/17 02:35] (現在) – [--start_snmptrapd] junichi
行 4160: 行 4160:
  
 ==== --create_policy_web_module ==== ==== --create_policy_web_module ====
-(バージョン 7.0 以上) 
  
-**オプションパラメーター:** <ポリシー名> <モジュール名> <モジュールタイプ> [<説明> <モジュールグループ> <最小> <最大> <倍率> <間隔> <警告最小値> <警告最大値> <障害最小値> <障害最大値> <データ保存> <再実行> <リクエスト> <エージェントブラウザID> <認証サーバ> <認証レルム> <設定データ> <プロキシURL> <プロキシ認証ログイン> <プロキシ認証パスワード> <警告文字列> <障害文字列> <不明イベントの有効化> <連続抑制回数> <個別状態変化の利用> <正常移行時連続抑制回数> <警告移行時連続抑制回数> <障害移行時連続抑制回数> <連続抑制タイムアウト> <警告反転> <障害反転> <障害手順> <警告手順> <不明手順>]+**Required parameters**:
  
-**説明:** ポリシーウェブモジュールを作成します。デフォルト値は、--create_web_module と同じです。+**必須パラメータ**:
  
-**実行例:**+  < policy_name > 
 +  < module_name > 
 +  < module_type >  ''web_data'', ''web_proc'', ''web_content_data'', ''web_content_string''.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_policy_web_module 'policy_name' 'module_name' web_data 'module_description' 'General' 0 100 0 300 0 0 0 0 1 0 1 'Pandora FMS' auto public "module_begin\nmodule_name modname\nmodule_end'http://proxy.url' 'proxy_login' 'proxy_password' 1 10 10 10 10 10 10 10 10 1 1 'critical_instructions' 'warninng_instructions' 'unknown_instructions'+  * < ポリシー名 > 
 +  * < モジュール名 > 
 +  * < モジュールタイプ > ''web_data'', ''web_proc'', ''web_content_data'', ''web_content_string''. 
 + 
 +**Optional parameters**: 
 + 
 +**オプションパラメータ**: 
 + 
 +  * < description > 
 +  * < module_group > 
 +  * < min > 
 +  * < max > 
 +  * < post_process > 
 +  * < interval > 
 +  * < warning_min > 
 +  * < warning_max > 
 +  * < critical_min > 
 +  * < critical_max > 
 +  * < history_data > 
 +  * < retries > 
 +  * < requests > 
 +  * < agent_browser_id > 
 +  * < auth_server > 
 +  * < auth_realm > 
 +  * < configuration_data > 
 +  * < proxy_url > 
 +  * < proxy_auth_login > 
 +  * < proxy_auth_password > 
 +  * < warning_str > 
 +  * < critical_str > 
 +  * < enable_unknown_events > 
 +  * < ff_threshold > 
 +  * < each_ff > 
 +  * < ff_threshold_normal > 
 +  * < ff_threshold_warning > 
 +  * < ff_threshold_critical > 
 +  * < ff_timeout > 
 +  * < warning_inverse > 
 +  * < critical_inverse > 
 +  * < critical_instructions > 
 +  * < warning_instructions > 
 +  * < unknown_instructions > 
 +  * ''ignore_unknown'' Discards the unknown state calculation, so that the module will never change to that state and will always keep the last known state. 
 + 
 +  * <説明> 
 +  * <モジュールグループ> 
 +  * <最小> 
 +  * <最大> 
 +  * <倍率> 
 +  * <間隔> 
 +  * <警告最小値> 
 +  * <警告最大値> 
 +  * <障害最小値> 
 +  * <障害最大値> 
 +  * <データ保存> 
 +  * <再実行> 
 +  * <リクエスト> 
 +  * <エージェントブラウザID> 
 +  * <認証サーバ> 
 +  * <認証レルム> 
 +  * <設定データ> 
 +  * <プロキシURL> 
 +  * <プロキシ認証ログイン> 
 +  * <プロキシ認証パスワード> 
 +  * <警告文字列> 
 +  * <障害文字列> 
 +  * <不明イベントの有効化> 
 +  * <連続抑制回数> 
 +  * <個別状態変化の利用> 
 +  * <正常移行時連続抑制回数> 
 +  * <警告移行時連続抑制回数> 
 +  * <障害移行時連続抑制回数> 
 +  * <連続抑制タイムアウト> 
 +  * <警告反転> 
 +  * <障害反転> 
 +  * <障害手順> 
 +  * <警告手順> 
 +  * <不明手順> 
 +  * ''ignore_unknown'' 不明状態の計算を破棄します。これにより、モジュールはその状態に変化せず、常に最後の既知の状態が維持されます。 
 + 
 +**Description**: A web module will be created in a policy. The default values [[#create_web_module|are the same as for the --create_web_module]] option. 
 + 
 +**説明**: ポリシー内にウェブモジュールが作成されます。デフォルト値は[[#create_web_module|--create_web_module]]オプションと同じです。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_policy_web_module 'Policy name' 'Module name' web_data 'Module description' 'General' 0 100 0 300 0 0 0 0 1 0 1 'Pandora FMS' auto public 'module_begin\nmodule_name modname\nmodule_end'http://proxy.url' 'proxy_login' 'proxy_password' 1 10 10 10 10 10 10 10 10 1 1 'critical_instructions' 'warning_instructions' 'unknown_instructions' 
 + 
 +</code>
  
 ==== --create_policy_network_module ==== ==== --create_policy_network_module ====
-(バージョン 5.0 以上) 
  
-**オプションパラメーター:** <ポリシー名> <モジュール名> <モジュールタイプ> [<モジュールポート> <説明> <モジュールグループ> <最小> <最大> <ポストプロセス> <間隔> <警告の最小値> <警告の最大値> <障害の最小値> <障害の最大値> <データ保存> <連続抑制回数> <警告文字列> <障害文字列> <不明イベントの有効化> <個別状態変化の利用> <正常移行時連続抑制回数> <警告移行時連続抑制回数> <障害移行時連続抑制回数> <障害手順> <警告手順> <不明手順>+**Required parameters**: 
 + 
 +**必須パラメータ*
 + 
 +  * < policy_name > 
 +  * < module_name > 
 +  * < module_type > 
 + 
 +  * < ポリシー名 > 
 +  * < モジュール名 > 
 +  * < モジュールタイプ > 
 + 
 +**Optional parameters**:
  
-**説明:** ポリシーネットワークモジュールを作成します。デフォルトの値は、--create_network_module オプションと同じです。+**オプションパラメータ**
  
-**注意:**+  < module_port > numerical value between 1 and 65535. 
 +  < description > 
 +  < module_group > 
 +  < min > 
 +  * < max > 
 +  * < post_process > 
 +  * < interval > 
 +  * < warning_min > 
 +  * < warning_max > 
 +  * < critical_min > 
 +  * < critical_max > 
 +  * < history_data > 
 +  * < ff_threshold > 
 +  * < warning_str > 
 +  * < critical_str > 
 +  * < enable_unknown_events > 
 +  * < each_ff > 
 +  * < ff_threshold_normal > 
 +  * < ff_threshold_warning > 
 +  * < ff_threshold_critical > 
 +  * < critical_instructions > 
 +  * < warning_instructions > 
 +  * < unknown_instructions > 
 +  * ''ignore_unknown'' Discards the unknown state calculation, so that the module will never change to that state and will always keep the last known state.
  
-以下のパラメタは、Pandora バジョン 5.およびそれ以降みです+  * <モジュルポト> と 65535 間の数値 
 +  * <説明> 
 +  * <モジュールグループ> 
 +  * <最小> 
 +  * <最大> 
 +  * <ポストプロセス> 
 +  * <間隔> 
 +  * <警告の最小値> 
 +  * <警告の最大値> 
 +  * <障害の最小値> 
 +  * <障害の最大値> 
 +  * <データ保存> 
 +  * <連続抑制回数> 
 +  * <警告文字列> 
 +  * <障害文字列> 
 +  * <不明イベントの有効化>
   * <個別状態変化の利用>   * <個別状態変化の利用>
   * <正常移行時連続抑制回数>   * <正常移行時連続抑制回数>
   * <警告移行時連続抑制回数>   * <警告移行時連続抑制回数>
   * <障害移行時連続抑制回数>   * <障害移行時連続抑制回数>
 +  * <障害手順>
 +  * <警告手順>
 +  * <不明手順>
 +  * ''ignore_unknown'' 不明状態の計算を破棄します。これにより、モジュールはその状態に変化せず、常に最後の既知の状態が維持されます。
  
-**実行例:**+**Description**A network module will be created in a policy. The default values [[#create_network_module|are the same as for the --create_network_module]] option. 
 + 
 +**説明**: ポリシー内にネットワークモジュールが作成されます。デフォルト値は[[#create_network_module|--create_network_module]]オプションと同じです。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_policy_network_module 'Policy name' 'Module name' remote_icmp_proc 22 'Module description' 'Name group' 0 100 0 300 30 60 61 100 0 0 'Warning string' 'Critical string' 
 + 
 +</code>
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_policy_network_module 'policy name' 'module name' remote_icmp_proc 22 'module description' 'group name' 0 100 0 300 30 60 61 100 0 0 'string for warning' 'string for critical' 
  
 ==== --create_policy_snmp_module ==== ==== --create_policy_snmp_module ====
-(バージョン 5.0 以上) 
  
-**オプションパラメータ:** <ポリシー名> <モジュール名> <モジュールタイプ> <モジュールポート> <バージョン> [<コミュニティ> <OID> <説明> <モジュールグループ> <最小> <最大> <ポストプロセス> <間隔> <警告の最小値> <警告の最大値> <障害の最小値> <障害の最大値> <データの保存> <snmp3_priv_method> <snmp3_priv_pass> <snmp3_sec_level> <snmp3認証手法> <snmp3認証ユーザ> <snmp3_priv_pass> <連続抑制回数> <警告文字列> <障害文字列> <不明イベントの有効化> <個別状態変化の利用> <正常移行時連続抑制回数> <警告移行時連続抑制回数> <障害移行時連続抑制回数> <障害手順> <警告手順> <不明手順>]+**Required parameters**: 
 + 
 +**必須パラメータ**: 
 + 
 +  < policy_name > 
 +  * < module_name > 
 +  * < module_type > 
 +  * < module_port > 
 +  * < version > 
 + 
 +  * <ポリシー名> 
 +  * <モジュール名> 
 +  * <モジュールタイプ> 
 +  * <モジュールポート> 
 +  * <バージョン> 
 + 
 +**Optional parameters**:
  
-**説明:** ポリシー SNMP モジュールを作成します。デフォルトの値は、--create_snmp_module オプションと同じです。+**オプションパラメータ**:
  
-**注意:**+  < community > 
 +  < oid > 
 +  < description > 
 +  < module_group > 
 +  * < min > 
 +  * < max > 
 +  * < post_process > 
 +  * < interval > 
 +  * < warning_min > 
 +  * < warning_max > 
 +  * < critical_min > 
 +  * < critical_max > 
 +  * < history_data > 
 +  * < snmp3_priv_method > 
 +  * < snmp3_priv_pass > 
 +  * < snmp3_sec_level > 
 +  * < snmp3_auth_method > 
 +  * < snmp3_auth_user > 
 +  * < snmp3_priv_pass > 
 +  * < ff_threshold > 
 +  * < warning_str > 
 +  * < critical_str > 
 +  * < enable_unknown_events > 
 +  * < each_ff > 
 +  * < ff_threshold_normal > 
 +  * < ff_threshold_warning > 
 +  * < ff_threshold_critical > 
 +  * < critical_instructions > 
 +  * < warning_instructions > 
 +  * < unknown_instructions > 
 +  * ''ignore_unknown'' Discards the unknown state calculation, so that the module will never change to that state and will always keep the last known state.
  
-以下パラメータは、Pandora バジョン 5.1 およびそれ以降みです。+  * <コミュニティ> <OID> 
 +  * <説明> 
 +  * <モジュールグループ> 
 +  * <最小> 
 +  * <最大> 
 +  * <保存倍率> 
 +  * <間隔> 
 +  * <警告最小値> 
 +  * <警告の最大値> 
 +  * <障害の最小値> 
 +  * <障害の最大値> 
 +  * <データの保存> 
 +  * <snmp3_priv_method> 
 +  * <snmp3_priv_pass> 
 +  * <snmp3_sec_level> 
 +  * <snmp3認証手法> 
 +  * <snmp3認証ユザ> 
 +  * <snmp3_priv_pass> 
 +  * <連続抑制回数> 
 +  * <警告文字列> 
 +  * <障害文字列> 
 +  * <不明イベ有効化>
   * <個別状態変化の利用>   * <個別状態変化の利用>
   * <正常移行時連続抑制回数>   * <正常移行時連続抑制回数>
   * <警告移行時連続抑制回数>   * <警告移行時連続抑制回数>
   * <障害移行時連続抑制回数>   * <障害移行時連続抑制回数>
 +  * <障害手順>
 +  * <警告手順>
 +  * <不明手順>
 +  * ''ignore_unknown'' 不明状態の計算を破棄します。これにより、モジュールはその状態に変化せず、常に最後の既知の状態が維持されます。
  
-**実行例:**+**Description**: An SNMP module will be created in a policy. The default values [[#create_snmp_module|are the same as for the --create_snmp_module]] option.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_policy_snmp_module 'policy name' 'module name' remote_snmp_inc 8080 1 mycommunity myoid 'Module description'+**説明**: ポリシー内にSNMPモジュールが作成されます。デフォルト値は[[#create_snmp_module|--create_snmp_module]]オプションと同じです。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_policy_snmp_module 'Policy name' 'Module name' remote_snmp_inc 8080 1 mycommunity myoid 'Module description' 
 + 
 +</code>
  
 ==== --create_policy_plugin_module ==== ==== --create_policy_plugin_module ====
-(バージョン 5.0 以上) 
  
-**オプションパラメータ:** <ポリシー名> <モジュール名> <モジュールの種類> <モジュールポート> <プラグイン名> <ユーザ> <パスワード> <パラメータ> [<説明> <モジュールグループ> <最小> <最大> <ポストプロセス> <間隔> <警告の最小値> <警告の最大値> <障害の最小値> <障害の最大値> <データの保存> <警告文字列> <障害文字列> <不明イベントの有効化> <個別状態変化の利用> <正常移行時連続抑制回数> <警告移行時連続抑制回数> <障害移行時連続抑制回数> <障害手順> <警告手順> <不明手順>]+**Required parameters**: 
 + 
 +**必須パラメータ**: 
 + 
 +  < policy_name > 
 +  * < module_name > 
 +  * < module_kind > 
 +  * < module_port > numerical value between 1 and 65535. 
 +  * < plugin_name > 
 +  * < user > 
 +  * < password > 
 +  * < parameters > 
 + 
 +  * <ポリシー名> 
 +  * <モジュール名> 
 +  * <モジュールの種類> 
 +  * <モジュールポート> 1 と 65535 の間の数値。 
 +  * <プラグイン名> 
 +  * <ユーザ> 
 +  * <パスワード> 
 +  * <パラメータ> 
 + 
 +**Optional parameters**:
  
-**説明:** ポリシープラグインモジュールを作成します。デフォルトの値は、--create_plugin_module オプションと同じです。+**オプションパラメータ**:
  
-**注意:**+  < description > 
 +  < module_group > 
 +  < min > 
 +  < max > 
 +  * < post_process > 
 +  * < interval > 
 +  * < warning_min > 
 +  * < warning_max > 
 +  * < critical_min > 
 +  * < critical_max > 
 +  * < history_data > 
 +  * < warning_str > 
 +  * < critical_str > 
 +  * < enable_unknown_events > 
 +  * < each_ff > 
 +  * < ff_threshold_normal > 
 +  * < ff_threshold_warning > 
 +  * < ff_threshold_critical > 
 +  * < critical_instructions > 
 +  * < warning_instructions > 
 +  * < unknown_instructions> 
 +  * ''ignore_unknown'' Discards the unknown state calculation, so that the module will never change to that state and will always keep the last known state.
  
-以下パラメータは、Pandora バージョン 5.1 およびそれ以降みです。+  * <説明> 
 +  * <モジュールグループ> 
 +  * <最小> 
 +  * <最大> 
 +  * <ポストプロセス> 
 +  * <間隔> 
 +  * <警告最小値> 
 +  * <警告の最大値> 
 +  * <障害の最小値> 
 +  * <障害の最大値> 
 +  * <データの保存> 
 +  * <警告文字列> 
 +  * <障害文字列> 
 +  * <不明イベ有効化>
   * <個別状態変化の利用>   * <個別状態変化の利用>
   * <正常移行時連続抑制回数>   * <正常移行時連続抑制回数>
   * <警告移行時連続抑制回数>   * <警告移行時連続抑制回数>
   * <障害移行時連続抑制回数>   * <障害移行時連続抑制回数>
 +  * <障害手順>
 +  * <警告手順>
 +  * <不明手順>
 +  * ''ignore_unknown'' 不明状態の計算を破棄します。これにより、モジュールはその状態に変化せず、常に最後の既知の状態が維持されます。
  
-**実行例:**+**Description**: A module of type //plugin// will be created in a policy. The default values [[#create_plugin_module|are the same as for the --create_plugin_module]] option.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_policy_plugin_module 'policy name' 'module name' generic_data 22 myplugin myuser mypass 'param1 param2 param3' 'Module description' 'General' 1 3 0 300 0 0 0 0 1 'string for warning' 'string for critical'+**説明**: ポリシー内に //プラグイン// タイプのモジュールが作成されます。デフォルト値は [[#create_plugin_module|--create_plugin_module]] オプションと同じです。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_policy_plugin_module 'Policy name' 'Module name' generic_data 22 myplugin myuser mypass 'param1 param2 param3' 'Module description' 'General' 1 3 0 300 0 0 0 0 1 'Warning string' 'Critical string' 
 + 
 +</code>
  
 ==== --validate_policy_alerts ==== ==== --validate_policy_alerts ====
-(バージョン 5.0 以上) 
  
-**オプションパラメーター:** <ポリシー名>+**Required parameter**policy_name >
  
-**説明:** 指定したポリシーの全アラートを承諾します。+**必須パラメータ**: < ポリシー名 >
  
-**実行例:**+**Optional parameters**None. 
 + 
 +**オプションパラメータ**: なし 
 + 
 +**Description**: Validates all alerts for a given [[en:documentation:pandorafms:technical_annexes:28_pfms_file_collections|policy]]. 
 + 
 +**説明**: 指定された [[ja:documentation:pandorafms:technical_annexes:28_pfms_file_collections|ポリシー]] のすべてのアラートを承諾します。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --validate_policy_alerts "Basic Linux Monitoring" 
 + 
 +</code>
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --validate_policy_alerts 'Policy name' 
  
 ==== --get_policy_modules ==== ==== --get_policy_modules ====
-(バージョン 5.0 以上) 
  
-**オプションパラメーター:** <ポリシー名>+**Required parameter**policy_name >
  
-**説明:** 指定したポリシーのモジュールリスト(id と前)を取得します。+**必須パラメータ**: < ポリシー名 >
  
-**実行例:**+**Optional parameters**: None.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --get_policy_modules 'Policy name'+**オプションパラメータ**: なし 
 + 
 +**Description**: Gets the list of modules (numeric identifier and name) of a given [[en:documentation:pandorafms:technical_annexes:28_pfms_file_collections|policy]]. 
 + 
 +**説明**: 指定された [[ja:documentation:pandorafms:technical_annexes:28_pfms_file_collections|ポリシー]] のモジュールのリスト (数値識別子と名前) を取得します。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --get_policy_modules "Basic Linux Monitoring" 
 + 
 +</code>
  
 ==== --get_policies ==== ==== --get_policies ====
-(バージョン 5.0 以上) 
  
-**オプションパラメーター:**  [<エージェント名> <エージェントの別名の利用>+**Required parameters**: None.
  
-**説明:** 全てのポリシー(パラメータ無しの場合)または、指定したエージェントのポリシーを取得します(パラメータにエージェントを指定ます)。+**必須パラメータ**: な
  
-**実行例:**+**Optional parameters**:
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --get_policies 'Agent name'+**オプションパラメータ**: 
 + 
 +  * < agent_name > 
 +  * ''use_alias'' to search by agent alias. 
 + 
 +  * < エージェント名 > 
 +  * ''use_alias'' エージェントの別名で検索する場合 
 + 
 +**Description**: 
 + 
 +**説明**: 
 + 
 +  * Without parameters: Obtains all policies (numeric identifier and name). 
 +  * Agent name: Gets the policies of an agent (list agent name, numeric policy identifier and policy name). 
 + 
 +  * パラメータなし: すべてのポリシー (数値識別子と名前) を取得します。 
 +  * エージェント名: エージェントのポリシー (エージェント名、数値ポリシー識別子、ポリシー名の一覧) を取得します。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --get_policies "pandorafms agent" use_alias 
 + 
 +</code> 
 + 
 +<wrap #ks8 />
  
 ===== Netflow ===== ===== Netflow =====
 ==== --create_netflow_filter ==== ==== --create_netflow_filter ====
-(>= 5.0) 
  
-**オプションパラメーター:** <ファイル名> <グループ名> <フィルター> <集約方法> <出力フォーマット>+**Required parameters**:
  
-**説明:** Netflow フィルタを作成します。+**必須パラメータ**:
  
-集約方法に指定可能なパラメータ: dstip,dstport,none,proto,srcip,srcport +  * < new_filter_name > 
-出力フォーマットに指定可能なパラメータ: kilobytes,kilobytespersecond,megabytes,megabytespersecond+  * < agent_group_name > 
 +  * < filter_as_such > 
 +  * < aggregated_by > One of the following values''none'', ''dstip''''dstport''''proto''''srcip''''srcport''. 
 +  * < formato_de_salida > ''kilobytes''''kilobytespersecond''''megabytes''''megabytespersecond''.
  
-**実行例:**+  < 新規フィルタ名 > 
 +  < エージェントグループ名 > 
 +  < フィルタ > 
 +  * < 集約 > 次のいずれか: ''none'', ''dstip'', ''dstport'', ''proto'', ''srcip'', ''srcport'' 
 +  < 出力フォーマット > ''kilobytes'', ''kilobytespersecond'', ''megabytes'', ''megabytespersecond''
  
-Netflow フィルタを作成するには、次のコマンドを実行します。+**Optional parameters**: None. 
 + 
 +**オプションパラメータ**: なし 
 + 
 +**Description**: Create a new filter to monitor via NetFlow®. 
 + 
 +**説明**: NetFlow® 経由で監視する新しいフィルタを作成します。 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_netflow_filter "New filter" "Network" "host 192.168.50.3 OR host 192.168.50.4 or HOST 192.168.50.6" dstport kilobytes 
 + 
 +</code>
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_netflow_filter "Filter name" Network "host 192.168.50.3 OR host 192.168.50.4 or HOST 192.168.50.6" dstport kilobytes+<wrap #ks9 />
  
 ===== ツール ===== ===== ツール =====
 ==== --exec_from_file ==== ==== --exec_from_file ====
-(バージョン 5.0 以上) 
  
-**オプションパラメーター:** <ファイルパス> <実行オプション> <オプションパラメータ>+**Required parameters** (see case study):
  
-**説明:** このオプションで、CSV ファイルから読み込んだマクロで CLI 実行ます。マクロの数は、CSV ファイルのカラム数になります。それぞれのマクロは、__FIELD1__ , __FIELD2__ , __FIELD3__ とった形式になります。+**必須パラメータ** (ケーススタディ参照てくださ):
  
-**実行例:** +   < command_to_execute > 
-CSV ファイルから、ユーザを作成します。 +   < parameters_of_the_command_to_execute >
  
-次のような CSV ファイルが必要で+  * < 実行るコマンド > 
 +  * < 実行するコマンドのパラメータ >
  
-<code> +**Description**: With this option it is possible to execute any CLI PFMS command with macros from a CSV file. The number of macros will correspond to the number of columns in the CSV file. Each macro will be called ''<nowiki>__FIELD1__</nowiki>''''<nowiki>__FIELD2__</nowiki>''''<nowiki>__FIELD3__</nowiki>''… ''<nowiki>__FIELDn__</nowiki>''.
- User 1,Password 1,+
- User 2,Password 2,+
- User 3,Password 3,0 +
- User Admin,Password Admin,1 +
-</code>+
  
-ファイルは、'/tmp/users_csvす。+**説明**: このオプションを使用すると、CSVファイルからマクロを使用して任意の PFMS CLI コマンドを実行できます。マクロの数は CSV ファイルの列数に対応します。各マクロは ''<nowiki>__FIELD1__</nowiki>''、''<nowiki>__FIELD2__</nowiki>''、''<nowiki>__FIELD3__</nowiki>''、…、''<nowiki>__FIELDn__</nowiki>'' という名前になります。
  
---create_user を次のオプションをつけて実行します。<ユーザ名> <ユーザパスワード> <管理者フラグ> <コメント>+<WRAP center round info 90%>
  
-次のように実行します。+Commas in CSV columns are not yet supported.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --exec_from_file /tmp/users_csv create_user __FIELD1__ __FIELD2__ __FIELD3__ 'User created with exec_from_file option from CLI'+</WRAP>
  
-注意: CSV カラムカンマを含める操作に対応していません。+<WRAP center round info 90%> 
 + 
 +CSV カンマはまだサポートされていません。 
 + 
 +</WRAP> 
 + 
 +**Case study**: 
 + 
 +**ケーススタディ**: 
 + 
 +Register users with the command [[#create_user|create_user]] from CSV file ''/tmp/users_csv'': 
 + 
 +CSV ファイル ''/tmp/users_csv'' からコマンド [[#create_user|create_user]] を使用してユーザを登録します。 
 + 
 +<file> 
 +User 1,Password 1,0 
 +User 2,Password 2,0 
 +User 3,Password 3,0 
 +User Admin,Password Admin,1 
 + 
 +</file> 
 + 
 +Sentence to be executed (line connectors are included for didactic purposes): 
 + 
 +実行される内容 (わかりやすいように複数行で書いています): 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --exec_from_file \ 
 +  /tmp/users_csv \ 
 +  create_user \ 
 +  __FIELD1__ \ 
 +  __FIELD2__ \ 
 +  __FIELD3__ \ 
 +  'Created by exec_from_file CLI PFMS command' 
 + 
 +</code>
  
 ==== --create_snmp_trap ==== ==== --create_snmp_trap ====
  
-**オプションパラメーター:** <ファイルパス> <名前> <OID> <説明> <重要度>+**Required parameters**:
  
-**名前**: snmp トラップコンソールで表示されます。+**必須パラメータ**:
  
-**OID**: SNMP トラップのメイン OID。+  < snmp_trap_name > As will be seen in the [[[:en:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMP traps console]]. 
 +  OID 
 +  < description > 
 +  < severity > Numeric value, one of the following values''0'' (<wrap :en>**Maintenance**</wrap>), ''1'' (<wrap :en>**Info**</wrap>) , ''2'' (<wrap :en>**Normal**</wrap>), ''3'' (<wrap :en>**Warning**</wrap>), ''4'' (<wrap :en>**Critical**</wrap>), ''5'' (<wrap :en>**Minor**</wrap>), ''6'' (<wrap :en>**Major**</wrap>).
  
-**重要度**: 次の値: 0(メンテナンス)、1(情報)、2(正常)、3(警告)、4(障害)、5(マイナー)、6(メジャー)+  < SNMPトラップ名 > [[:ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMP トラップコンソール]] で確認できます。 
 +  < OID > 
 +  * < 説明 > 
 +  * < 重要度 > 数値。次のいずれかのになります''0'' (<wrap :ja>**メンテナンス**</wrap>)、''1'' (<wrap :ja>**情報**</wrap>)、''2'' (<wrap :ja>**正常**</wrap>)、''3'' (<wrap :ja>**警告**</wrap>)、''4'' (<wrap :ja>**障害**</wrap>)、''5'' (<wrap :ja>**マイナー**</wrap>)、''6'' (<wrap :ja>**メジャー**</wrap>)
  
-**実行例:**+**Description**Creates a new SNMP trap definition. **A name must be entered, if an OID is repeated, the trap will not be created**.
  
-  perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_snmp_trap Cisco_FAN_Crash 1.3.3.3.2.12.3.3.4.1 "Something happen with the FAN inside the CISCO device, probably a failure" 3+**説明**: 新しいSNMPトラップ定義を作成します。**名前を入力する必要があります。OIDが重複している場合、トラップは作成されません。** 
 + 
 +**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: 
 + 
 +**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**: 
 + 
 +<code bash> 
 +pandora_manage /etc/pandora/pandora_server.conf --create_snmp_trap "Cisco_FAN_Crash" "1.3.3.3.2.12.3.3.4.1"Something happen with the FAN inside the CISCO device, probably a failure"3
 + 
 +</code>
  
 ==== --start_snmptrapd ==== ==== --start_snmptrapd ====
  
-**Parameters:** Nothing.+**Parameters**None. 
 + 
 +**パラメータ**: なし 
 + 
 +Starts the ''snmptrapd'' process in the [[:en:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMP traps server]]]In case it is already started, it terminates this service (**kill** command) and executes it again, deleting all the traps located in the exchange log located by default in:
  
-**オプションパ:** +[[:ja:documentation:pandorafms:monitoring:08_snmp_traps_monitoring|SNMPトップサバ]]] 内の ''snmptrapd'' プロセスを起動します。既に起動している場合は、このサビスを終了(**kill** コマンド)、再度実行します。これにより、デフォルトで以下の場所にあるログ内のすべてのトラップが削除されます。
  
-Starts the ''snmptrapd'' process on the traps server. In case it is already started, it terminates the service (**kill** command) and runs it again, deleting all the traps located in the exchange log (by default ''/var/log/pandora/pandora_snmptrapd.log'').+<file> 
 +/var/log/pandora/pandora_snmptrapd.log
  
-トラップサーバで ''snmptrapd'' プロセスを開始します。すでに起動している場合は、サービス停止(**kill** コマンド)後に再実行し、ログ(デフォルトは ''/var/log/pandora/pandora_snmptrapd.log'')にあるすべてのトラップを削除します。+</file>
  
-**Example:**+**Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**:
  
-**実行:**+**例([[#ks1|呼び出し]]と[[#ks1_1|書式]]を参照)**
  
-<code>+<code bash>
 pandora_manage /etc/pandora/pandora_server.conf --start_snmptrapd pandora_manage /etc/pandora/pandora_server.conf --start_snmptrapd
  
  • ja/documentation/pandorafms/technical_reference/03_anexo_cli.1747446735.txt.gz
  • 最終更新: 2025/05/17 01:52
  • by junichi