Saving and Loading Configuration Files
The Pica8 PicOS provides several commands to save, load, and execute PicOS configuration files, as detailed in this document.
The save command saves configuration files in the /home/admin directory for admin user, and /home/test directory for test user. The load and execute commands look for configuration files in the same directory.
You can use the save command in L2/L3 configuration mode to save the running configuration to a file. The following example demonstrates how to save the running configuration to a file named myconfig.conf.
admin@Spine1# save ? Possible completions: <file name> Save running configuration to specified file admin@Spine1# save myconfig.conf Save done.
The configuration saved earlier in a file can be loaded or applied using the load merge or load override command in L2/L3 mode.
admin@Spine1# load ? Possible completions: merge Merge the loaded configuration to the current running configuration override Override the current running configuration with the loaded configuration
The load override command completely replaces the running configuration with the configuration in a file (saved earlier). The following example replaces the running configuration with the configuration in a file named myconfig.conf.
admin@Spine1# load override ? Possible completions: <text> Local file name myconfig.conf Size: 16643, Last changed: Wed Sep 9 21:33:21 2015 admin@Spine1# load override myconfig.conf Loading config file... Config file was loaded successfully.
NOTE: When you fail to load configuration file by using the load override command, you can try using load merge command to load the configuration file. |
The load merge command merges the configuration in a file (saved earlier) with the running configuration. The following example merges the configuration in a file named myconfig.conf with the running configuration.
admin@Spine1# load merge ? Possible completions: <text> Local file name myconfig.conf Size: 16643, Last changed: Wed Sep 9 21:33:21 2015 admin@Spine1# load merge myconfig.conf Loading config file... Config file was applied successfully.
Copyright © 2024 Pica8 Inc. All Rights Reserved.