Fortinet white logo
Fortinet white logo

CLI Reference

batch

batch

Use this command to execute commands in a group. If a command in the group fails or an operation cannot be completed, every command in the group can be rolled back, whether they were successful or not.

To use this command, your administrator account’s access control profile must have at least r permission to the sysgrp area. For details, see Permissions.

Syntax

execute batch start

execute batch status

execute batch lastlog

execute batch recover

execute batch end

Variable Description Default

start

Enter to initiate batch mode. Every subsequent command will be grouped until you enter the execute batch end command.

No default.

status

Enter to determine whether batch mode is running. If batch mode is running, you will see this message:

Batch mode is running...

If batch mode is not running, you will see this command:

Batch mode is stopped...

No default.

lastlog

Enter to view the executed commands in the current batch mode. No default.

recover

Enter to rollback every command that has been executed in the current batch mode. No default.

end

Enter to turn off batch mode. No default.

batch

batch

Use this command to execute commands in a group. If a command in the group fails or an operation cannot be completed, every command in the group can be rolled back, whether they were successful or not.

To use this command, your administrator account’s access control profile must have at least r permission to the sysgrp area. For details, see Permissions.

Syntax

execute batch start

execute batch status

execute batch lastlog

execute batch recover

execute batch end

Variable Description Default

start

Enter to initiate batch mode. Every subsequent command will be grouped until you enter the execute batch end command.

No default.

status

Enter to determine whether batch mode is running. If batch mode is running, you will see this message:

Batch mode is running...

If batch mode is not running, you will see this command:

Batch mode is stopped...

No default.

lastlog

Enter to view the executed commands in the current batch mode. No default.

recover

Enter to rollback every command that has been executed in the current batch mode. No default.

end

Enter to turn off batch mode. No default.