Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.6
Download PDF
Copy Link

firewall schedule group

This command is used to configure schedule groups.

config firewall schedule group
    edit {name}
    # Schedule group configuration.
        set name {string}   Schedule group name. size[31]
        config member
            edit {name}
            # Schedules added to the schedule group.
                set name {string}   Schedule name. size[64] - datasource(s): firewall.schedule.onetime.name,firewall.schedule.recurring.name
            next
        set color {integer}   Color of icon on the GUI. range[0-32]
    next
end

Additional information

The following section is for those options that require additional explanation.

Syntax
config firewall schedule group {edit|delete|purge|rename|get|show}

Managing schedule group objects

The configuration of specific schedule group objects is the most common activity when using the config firewall schedule group command but some commands affect the address objects as a whole.

edit

Used to select which individual schedule group to configure or edit values.

edit <schedule group>

To get a list of all of the existing schedule group objects, type the command:

Command Prompt (group) # edit ?

If you are creating a new schedule group object, just type the name you wish to used after the edit command. If there are spaces in the name, use quotation marks.

delete

Used to delete an existing schedule object

delete

The can be a string of up to 64 characters.

purge

Used delete all of the existing schedule group objects. It deletes all of the values within the table that holds the information about schedule group objects within the VDOM.

purge

There are no options, parameters or qualifiers. Just use the enter key after entering the command This command has a serious impact. Use cautiously.

rename

Used to change the name of the schedule group object.

rename <schedule group> to <schedule group>

Options and settings within a Schedule Group

name

This field is a unique name given to represent the schedule group object. This setting is first defined when using the edit command to edit a category that does not currently exist. The name field of a schedule group object cannot be changed from within the object. It can be changed by using the rename command in the config firewall schedule group context.

member

Defines the schedule objects that are members of the schedule group. The value is a that should be the name of one of the existing schedule objects configured on the device. A group cannot contain other groups Separate multiple interfaces with spaces.

Syntax:
{set|append} members <schedule group>[ ...]
Example:
config firewall schedule group
	edit example_group
	set member example_schedule1
	or ...
	set member example_schedule1 example_schedule2
	or ...
	append example_schedule3
end

color

This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set the color to default which is color number 1.

Syntax:
set color <integer>

Default value: 0

Example:
config firewall schedule group
	edit generic-schedule group-name
	set color 15
end

firewall schedule group

This command is used to configure schedule groups.

config firewall schedule group
    edit {name}
    # Schedule group configuration.
        set name {string}   Schedule group name. size[31]
        config member
            edit {name}
            # Schedules added to the schedule group.
                set name {string}   Schedule name. size[64] - datasource(s): firewall.schedule.onetime.name,firewall.schedule.recurring.name
            next
        set color {integer}   Color of icon on the GUI. range[0-32]
    next
end

Additional information

The following section is for those options that require additional explanation.

Syntax
config firewall schedule group {edit|delete|purge|rename|get|show}

Managing schedule group objects

The configuration of specific schedule group objects is the most common activity when using the config firewall schedule group command but some commands affect the address objects as a whole.

edit

Used to select which individual schedule group to configure or edit values.

edit <schedule group>

To get a list of all of the existing schedule group objects, type the command:

Command Prompt (group) # edit ?

If you are creating a new schedule group object, just type the name you wish to used after the edit command. If there are spaces in the name, use quotation marks.

delete

Used to delete an existing schedule object

delete

The can be a string of up to 64 characters.

purge

Used delete all of the existing schedule group objects. It deletes all of the values within the table that holds the information about schedule group objects within the VDOM.

purge

There are no options, parameters or qualifiers. Just use the enter key after entering the command This command has a serious impact. Use cautiously.

rename

Used to change the name of the schedule group object.

rename <schedule group> to <schedule group>

Options and settings within a Schedule Group

name

This field is a unique name given to represent the schedule group object. This setting is first defined when using the edit command to edit a category that does not currently exist. The name field of a schedule group object cannot be changed from within the object. It can be changed by using the rename command in the config firewall schedule group context.

member

Defines the schedule objects that are members of the schedule group. The value is a that should be the name of one of the existing schedule objects configured on the device. A group cannot contain other groups Separate multiple interfaces with spaces.

Syntax:
{set|append} members <schedule group>[ ...]
Example:
config firewall schedule group
	edit example_group
	set member example_schedule1
	or ...
	set member example_schedule1 example_schedule2
	or ...
	append example_schedule3
end

color

This setting determines the color of the icon in the GUI. There are 32 defined colors numbered 1 to 32. 0 will set the color to default which is color number 1.

Syntax:
set color <integer>

Default value: 0

Example:
config firewall schedule group
	edit generic-schedule group-name
	set color 15
end