write

This command saves the device's current configuration to flash memory or optional, restores the device to factory defaults.

Syntax

# write 

Command

Description

(Carriage Return)

Saves configuration to flash memory .

factory [clear-keys-and-certs|keep-network-and-users-configuration]

Restores the device's configuration to factory defaults.

You can also use the following options:

clear-keys-and-certs: Restores configuration to factory defaults and deletes all TLS-related files (TLS certificates, root certificates and public keys) used by the TLS Contexts.
keep-network-and-users-configuration: Restores configuration to factory defaults, except network settings, which ensures that the device’s management interfaces can be accessed using the current OAMP network interface address after the device is restored to default.

Command Mode

Privileged User

Note

The write command does not restart the device. For parameters that require a restart for their settings to take effect, use the reload now command instead, or use it after the write command.
The write factory command (without keep-network-and-users-configuration) erases all current network configuration and thus, remote connectivity to the device (Telnet/SSH) may fail immediately after you run this command.
The write factory command also erases the Auxiliary files.

Related Commands

reload now

Example

Saving the configuration to flash memory:

# write
Writing configuration…done