Fortinet black logo

CLI Reference

device

device

Use this command to change a device password or serial number when changing devices due to a hardware issue.

Syntax

execute device replace pw <device_name> <password>

execute device replace sn <device_name> <serial_number>

execute device replace user <device_name> <user>

Variable

Description

pw

Replace the device password.

sn

Replace the device serial number.

user

Replace the device user.

<device_name>

The name of the device.

<password>

The new password for the new device.

<serial_number>

The new serial number for the new device, for example: FWF40C391XXX0062.

<user>

The new user for the new device.

Example

execute device replace pw FGT600C2805030002

This operation will clear the password of the device.

Do you want to continue? (y/n)y

device

Use this command to change a device password or serial number when changing devices due to a hardware issue.

Syntax

execute device replace pw <device_name> <password>

execute device replace sn <device_name> <serial_number>

execute device replace user <device_name> <user>

Variable

Description

pw

Replace the device password.

sn

Replace the device serial number.

user

Replace the device user.

<device_name>

The name of the device.

<password>

The new password for the new device.

<serial_number>

The new serial number for the new device, for example: FWF40C391XXX0062.

<user>

The new user for the new device.

Example

execute device replace pw FGT600C2805030002

This operation will clear the password of the device.

Do you want to continue? (y/n)y