Home >

LunaSH Command Reference Guide > LunaSH Commands > sysconf > sysconf config factoryreset

sysconf config factoryreset

Reset the appliance to the settings created at the factory. This is the same action as running the sysconf config restore command on the 'factoryInit_local_host..." file. You can specify any individual service's configuration, or just reset all of them to the initial factory settings with the '-all' option. This reset is for the configurations of the indicated services and does not affect the HSM.

This command affects appliance settings external to the HSM. To reset the HSM, use hsm factoryReset (which can be run from a local serial console only).

Note:  To reset the configuration for the NTLS service, you must first stop this service (service stop ntls).

User Privileges

Users with the following privileges can perform this command:

Admin

Syntax

sysconf config factoryreset -service <service> [-force]

Option Shortcut Description
-force -f Force the action without prompting.
-service <service> -s

Specifies the service name.

Valid values: network,ssh,ntls,syslog,ntp,snmp,users,system,webserver,all


Example

lunash:>sysconf config factoryreset -service all
 
 
This command restores the initial factory configuration of service: all.
The HSM and Partition configurations are NOT included.
 
 
WARNING !! This command restores the configuration from the backup file: factoryInit_local_host_Config.tar.gz.
It first creates a backup of the current configuration before restoring: factoryInit_local_host_Config.tar.gz.
If you are sure that you wish to proceed, then type 'proceed', otherwise type 'quit'.
 
> proceed
Proceeding...
 
 
Created configuration backup file: local_host_Config_20170301_1228.tar.gz
 
 
Restore the ntls configuration: Succeeded.
 
Restore the network configuration: Succeeded.
 
Restore the syslog configuration: Succeeded.
 
Force option used. Proceed prompt bypassed.
All key and certificates files were deleted.
You must restart NTP for the changes to take effect.
Check NTP status after restarting it to make sure that the client is able to start and sync with the server.
 
Restore the ntp configuration: Succeeded.
 
Restore the snmp configuration: Succeeded.
 
Restore the ssh configuration: Succeeded.
 
Restore the users configuration: Succeeded.
 
Restore the system configuration: Succeeded.
 
You must either reboot the appliance or restart the service(s) for the changes to take effect.
Please check the new configurations BEFORE rebooting or restarting the services.
You can restore the previous configurations if the new settings are not acceptable.
 
 
Command Result : 0 (Success)

Note:  Sometimes individual items can show in the output as having failed to reset, but the overall command succeeds. This is not an error. It occurs simply because some of the configuration items might already be at factory default settings and had never been configured. For example, not everybody configures NTP or SNMP. Therefore, no file of configuration settings for the particular service was ever created, and there was nothing for the sysconf config factoryReset command to do in those cases. This sometimes happens in an integration laboratory environment.