| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| ja:documentation:pandorafms:technical_reference:03_anexo_cli [2025/12/17 08:47] – [--create_plugin_module] junichi | ja:documentation:pandorafms:technical_reference:03_anexo_cli [2026/05/02 02:19] (現在) – [--update_special_day] junichi |
|---|
| |
| ==== --create_special_day ==== | ==== --create_special_day ==== |
| (バージョン 5.1 以上) | |
| |
| **オプションパラメーター:** <特別日> <同一日> <説明> <グループ名> | **Required fields**: |
| |
| **説明:** 特別日を設定します。same_day に設定可能なのは、monday, tuesday, wednesday, thursday, friday, saturday と sunday です。 | **必須フィールド**: |
| |
| **実行例:** | - ''<special_day>'': Date in the format ''YYYY-MM-DD''. |
| | - ''<calendar_name>'': Calendar name, PFMS created the ''Default'' calendar by default. //**The calendar name cannot contain spaces or special characters**//. |
| | - ''<same_day>'': The day of the week to be emulated must be specified in English; it is not case-sensitive. |
| | - ''<description>'': This can be omitted by placing the quotation marks close together, ''<nowiki>""</nowiki>'' or ''<nowiki>''</nowiki>''. |
| | - ''<group_name>'': The name of the agent group; PFMS created the group ''All'' by default. //**The group name cannot contain spaces or special characters**//. |
| |
| perl pandora_manage.pl /etc/pandora/pandora_server.conf --create_special_day 2014-05-03 sunday Desc All | - ''<special_day>'': 日付を ''YYYY-MM-DD'' 形式で指定します。 |
| | - ''<calendar_name>'': カレンダー名を指定します。PFMS はデフォルトで ''Default'' カレンダーを作成します。//**カレンダー名にはスペースや特殊文字を含めることはできません**//。 |
| | - ''<same_day>'': エミュレートする曜日を英語で指定します。大文字と小文字は区別されません。 |
| | - ''<description>'': 引用符を近接させることで省略できます。''<nowiki>""</nowiki>'' または ''<nowiki>''</nowiki>''。 |
| | - ''<group_name>'': エージェントグループ名を指定します。PFMS はデフォルトで ''All'' グループを作成します。//**グループ名にはスペースや特殊文字を含めることはできません**//。 |
| | |
| | **Description**: Create a [[:en:documentation:pandorafms:technical_annexes:24_pfms_scheduled_downtimes|special day]]. |
| | |
| | **説明**: [[:ja:documentation:pandorafms:technical_annexes:24_pfms_scheduled_downtimes|特別日]]を作成します。 |
| | |
| | **Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: |
| | |
| | **例([[#ks1|呼び出し]]および[[#ks1_1|書式]]を参照)**: |
| | |
| | <code bash> |
| | pandora_manage /etc/pandora/pandora_server.conf \ |
| | --create_special_day \ |
| | "2026-05-05" 'Default' "sunday" 'my description' "All" |
| | </code> |
| |
| ==== --delete_special_day ==== | ==== --delete_special_day ==== |
| (バージョン 5.1 以上) | |
| |
| **オプションパラメーター:** <特別日> | **Parameters**: < special_day > |
| |
| **説明:** 指定した特別日を削除します。 | **パラメータ**: < special_day > |
| |
| **実行例:** | **Description**: Delete specified special day. |
| | |
| | **説明**: 特別日を削除します。 |
| | |
| | **Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: |
| | |
| | **例([[#ks1|呼び出し]]および[[#ks1_1|書式]]を参照)**: |
| | |
| | <code bash> |
| | pandora_manage /etc/pandora/pandora_server.conf --delete_special_day "2014-05-03" |
| | |
| | </code> |
| |
| perl pandora_manage.pl /etc/pandora/pandora_server.conf --delete_special_day 2014-05-03 | |
| |
| ==== --update_special_day ==== | ==== --update_special_day ==== |
| (バージョン 5.1 以上) | |
| |
| **オプションパラメーター:** <特別日> <変更するフィールド> <新しい値> | **Parameters**: |
| | |
| | **パラメータ**: |
| | |
| | * < special_day > |
| | * < field_to_change > |
| | * < new_value > |
| | |
| | * < 特別日 > |
| | * < 変更するフィールド > |
| | * < 新たな値 > |
| | |
| | **Description**: Modify a specific field of a special day. The fields that can be updated are: ''same_day'', ''description'' y ''group_name''. |
| | |
| | **説明**: 特別日の特定のフィールドを変更します。更新可能なフィールドは、''same_day''、''description''、''group_name'' です。 |
| | |
| | **Example (see [[#ks1|call]] and [[#ks1_1|syntax]])**: |
| |
| **説明:** 指定した特別日の指定したフィールドの値を更新します。フィールドに指定できる値は、same_day, description と group_name です。same_day を指定した場合、新しい値に設定できるのは、monday, tuesday, wednesday, thursday, friday, saturday と sunday です。 | **例([[#ks1|呼び出し]]および[[#ks1_1|書式]]を参照)**: |
| |
| **実行例:** | <code bash> |
| | pandora_manage /etc/pandora/pandora_server.conf --update_special_day "2014-05-03" "same_day" "monday" |
| |
| perl pandora_manage.pl /etc/pandora/pandora_server.conf --update_special_day 2014-05-03 same_day monday | </code> |
| |
| ==== --set_event_storm_protection ==== | ==== --set_event_storm_protection ==== |