Fortinet black logo

CLI Reference

device

device

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

Syntax

To replace a device’s password:

execute device replace pw <name> <pw>

To change a device’s serial number:

execute device replace sn <name> <SN>

Variable

Description

pw

Replace the device password.

sn

Replace the device serial number. Example: FWF40C3911000061

<name>

Enter the name of the device.

<pw>

Enter the new password for the new device.

<SN>

Enter the new serial number for the new device. Example: FWF40C3911000062

device

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

Syntax

To replace a device’s password:

execute device replace pw <name> <pw>

To change a device’s serial number:

execute device replace sn <name> <SN>

Variable

Description

pw

Replace the device password.

sn

Replace the device serial number. Example: FWF40C3911000061

<name>

Enter the name of the device.

<pw>

Enter the new password for the new device.

<SN>

Enter the new serial number for the new device. Example: FWF40C3911000062