Sie sind auf Seite 1von 2

execute set-next-reboot

To specify virtual domain


execute set system session filter vd <vdom_index>
Variable Description

<duration_range> The start and end times, separated by a space.

<expire_range> The start and end times, separated by a space.

<ip_range> The start and end IP addresses, separated by a space.

<policy_range> The start and end policy numbers, separated by a space.

<port_range> The start and end port numbers, separated by a space.

<protocol_range> The start and end protocol numbers, separated by a space.

<vdom_index> The VDOM index number. -1 means all VDOMs.

set-next-reboot

Use this command to start the FortiGate unit with primary or secondary firmware after the next reboot. Available
on models that can store two firmware images. By default, the FortiGate unit loads the firmware from the primary
partition.

VDOM administrators do not have permission to run this command. It must be executed by a super administrator.

Syntax
execute set-next-reboot {primary | secondary}

sfp-mode-sgmii

Change the SFP mode for an NP2 card to SGMII. By default when an AMC card is inserted the SFP mode is set
to SERDES mode by default.

If a configured NP2 card is removed and re-inserted, the SFP mode goes back to the default.

In these situations, the sfpmode-sgmii command will change the SFP mode from SERDES to SGMII for the
interface specified.

Syntax
execute sfpmode-sgmii <interface>
<interface> is the NP2 interface where you are changing the SFP mode.

shutdown

Shut down the FortiGate unit now. You will be prompted to confirm this command.

CLI Reference for FortiOS 5.4 918


Fortinet Technologies Inc.
ssh execute

Abruptly powering off your FortiGate unit may corrupt its configuration.
Using the reboot and shutdown options here or in the web-based manager
ensure proper shutdown procedures are followed to prevent any loss of
configuration.

Syntax
execute shutdown [comment <comment_string>]
comment is optional but you can use it to add a message that will appear in the event log message that records
the shutdown. The comment message of the does not appear on the Alert Message console. If the message is
more than one word it must be enclosed in quotes.

Example
This example shows the reboot command with a message included.
execute shutdown comment “emergency facility shutdown”
An event log message similar to the following is recorded:
2009-09-08 11:12:31 critical admin 41986 ssh(172.20.120.11) shutdown User admin shutdown
the device from ssh(172.20.120.11). The reason is 'emergency facility shutdown'

ssh

Use this command to establish an ssh session with another system.

Syntax
execute ssh <destination> [<port>]
<destination> - the destination in the form user@ip or user@host.

[<port>] - optional TCP port number

Example
execute ssh admin@172.20.120.122
To end an ssh session, type exit:
FGT-6028030112 # exit
Connection to 172.20.120.122 closed.
FGT-8002805000 #

sync-session

Use this command to force a session synchronization.

Syntax
execute sync-session

CLI Reference for FortiOS 5.4 919


Fortinet Technologies Inc.

Das könnte Ihnen auch gefallen