Chapter 35 File Manager

When you change the configuration, the NXC creates a startup-config.conffile of the current configuration.

The NXC checks the startup-config.conffile for errors when it restarts. If there is an error in the startup-config.conffile, the NXC copies the startup-config.confconfiguration file to the startup-config-bad.confconfiguration file and tries the existing lastgood.conf configuration file.

When the NXC reboots, if the startup-config.conffile passes the error check, the NXC keeps a copy of the startup-config.conffile as the lastgood.conf configuration file for you as a back up file. If you upload and apply a configuration file with an error, you can apply lastgood.conf to return to a valid configuration.

35.2.4Configuration File Flow at Restart

If there is not a startup-config.confwhen you restart the NXC (whether through a management interface or by physically turning the power off and back on), the NXC uses the system-default.confconfiguration file with the NXC’s default settings.

If there is a startup-config.conf, the NXC checks it for errors and applies it. If there are no errors, the NXC uses it and copies it to the lastgood.conf configuration file. If there is an error, the NXC generates a log and copies the startup-config.confconfiguration file to the startup- config-bad.confconfiguration file and tries the existing lastgood.conf configuration file. If there isn’t a lastgood.conf configuration file or it also has an error, the NXC applies the system-default.confconfiguration file.

You can change the way the startup-config.conffile is applied. Include the setenv- startup stop-on-error off command. The NXC ignores any errors in the startup- config.conf file and applies all of the valid commands. The NXC still generates a log for any errors.

35.3 File Manager Commands Input Values

The following table explains the values you can input with the file manager commands.

Table 135 File Manager Command Input Values

LABEL

DESCRIPTION

file_name

The name of a file. Use up to 25 characters (including a-zA-Z0-

 

9;‘~!@#$%^&()_+[]{}’,.=-).

 

 

226

 

NXC CLI Reference Guide