Fortinet black logo

CLI Reference

batch

batch

Execute a series of CLI commands. execute batch commands are controlled by the Maintenance (mntgrp) access control group.

Syntax

execute batch start  Batch mode start.

execute batch end  Batch mode end.

execute batch lastlog  Read the result of last batch commands.

execute batch status  Batch mode status.

end — exit session and run the batch commands

lastlog — read the result of the last batch commands

start — start batch mode

status — batch mode status reporting if batch mode is running or stopped

Example

To start batch mode:

execute batch start

Enter batch mode...

To enter commands to run in batch mode:

config system global

set refresh 5

end

To execute the batch commands:

execute batch end

Exit and run batch commands...

batch

Execute a series of CLI commands. execute batch commands are controlled by the Maintenance (mntgrp) access control group.

Syntax

execute batch start  Batch mode start.

execute batch end  Batch mode end.

execute batch lastlog  Read the result of last batch commands.

execute batch status  Batch mode status.

end — exit session and run the batch commands

lastlog — read the result of the last batch commands

start — start batch mode

status — batch mode status reporting if batch mode is running or stopped

Example

To start batch mode:

execute batch start

Enter batch mode...

To enter commands to run in batch mode:

config system global

set refresh 5

end

To execute the batch commands:

execute batch end

Exit and run batch commands...