FibeAir IP-20C/S/E
User Guide
Ceragon Proprietary and Confidential
Page 384 of 597
15.5.5
Editing CLI Scripts (CLI)
The configuration file package includes a text file that enables you to write CLI
scripts in a backed-up configuration that are executed after restoring the
configuration.
To edit a CLI script:
1 Back up the current configuration to one of the restore points. See Backing
up and Exporting a Configuration File (CLI).
2 Export the configuration from the restore point to a PC or laptop.
See Backing up and Exporting a Configuration File (CLI).
3 On the PC or laptop, unzip the file Configuration_files.zip.
4 Edit the cli_script.txt file using clish commands, one per line.
5 Save and close the cli_script.txt file, and add it back into
the Configuration_files.zip file.
6 Import the updated Configuration_files.zip file back into the unit.
See Importing and Restoring a Configuration File (CLI).
7 Restore the imported configuration file. See Importing and Restoring a
Configuration File (CLI). The unit is automatically reset. During
initialization, the CLI script is executed, line by line.
Note:
If any specific command in the CLI script requires reset, the
unit is reset when that command is executed. During
initialization following the reset, execution of the CLI script
continues from the following command.
15.6
Setting the Unit to the Factory Default Configuration
(CLI)
To restore the unit to its factory default configuration, while retaining the
unit’s IP address settings and logs, enter the following commands in root view:
root> platform management set-to-default
The following prompt appears:
WARNING: All database and configuration will be lost, unit will
be restart.
Are you sure? (yes/no):yes
At the prompt, type
yes
.
Note:
This does not change the unit’s IP address or FIPS
configuration.
15.7
Performing a Hard (Cold) Reset (CLI)
To initiate a hard (cold) reset on the unit, enter the following command in root
view:
root> platform management chassis reset
The following prompt appears:
You are about to reset the shelf
Are you sure? :(yes/no):