Fortinet white logo
Fortinet white logo

CLI Reference

execute batch

execute batch

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

execute batch {end | lastlog | start | 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

Examples

To start batch mode and to specify which commands to run in batch mode:

execute batch start

Enter batch mode...

config system global

set refresh 5

end

To execute the batch commands:

execute batch end

Exit and run batch commands...

execute batch

execute batch

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

execute batch {end | lastlog | start | 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

Examples

To start batch mode and to specify which commands to run in batch mode:

execute batch start

Enter batch mode...

config system global

set refresh 5

end

To execute the batch commands:

execute batch end

Exit and run batch commands...