Backup PacketShaper configuration, perform a factory reset, and restore the configuration
search cancel

Backup PacketShaper configuration, perform a factory reset, and restore the configuration

book

Article ID: 165858

calendar_today

Updated On:

Products

PacketShaper S-Series PacketShaper

Issue/Introduction

In some situations when you may be recommended by Support to perform a factory reset and reload the configuration. However, depending on the issue, you may use different methods to backup/restore configuration or sometimes not even use the backup configuration.

1. In some situation, you need backup the PacketShaper configuration, perform a factory reset, and restore the configuration. 

2. If the configuration is corrupt, you may not want to backup the configuration and load the corrupted configuration back.

3. It may be recommended to use config.cmd file instead of config.ldi to restore the configuration. 'config.cmd' file has a list of commands to rebuild the configuration so if some part of the config.cmd or some commands don't work are is in conflict with others then that part of the configuration will be omitted (this could help clear any configuration issues).

Resolution

A. Using config.cmd file (this option is preferred unless your configuration is too big with several thousand classes and lots of policies and partitions - it could take some time to reload the configuration).

Back up the current PacketShaper configuration

  1. To back up the current configuration, issue the command: setup capture complete backup.cmd  In the PacketShaper CLI.
  2. In the PacketShaper legacy UI, click the Info tab.
  3. Click the file browser button.
  4. Navigate to the 9.256/CMD/ directory.
  5. Right click the backup.cmd file and save the file to your desktop.

Steps to perform a Factory Reset of your PacketShaper

  1. Have a console access to PacketShaper. Note: You must connect to PacketShaper via console because clearing the configuration will reset the IP address setting as well.
  2. Issue the command setup reset all to reset the PacketShaper configuration to factory default.
  3. Type Yes to confirm.
    Note:  The PacketShaper will auto reboot.

Restore PacketShaper configuration

After PacketShaper has rebooted, answer "NO" for Guided Setup as below:

PacketShaper not yet configured.  Do you wish to be
guided through initial setup of the PacketShaper? (yes): no

  1. Issue the command setup ipaddress x.x.x.x y.y.y.y to configure the IP address and subnet mask. (x.x.x.x=IP, y.y.y.y=Subnet Mask)
  2. Issue the command setup gateway g.g.g.g to configure the gateway IP (g.g.g.g=Gateway IP Address)
  3. After IP address setup, log in to the PacketShaper Legacy UI.
  4. Click the Info tab.
  5. Click the file browser button.
  6. Navigate to the 9.256/CMD/ directory.
  7. Click the upload button.
  8. Click Browse and select the backup.cmd location that you saved during configuration backup.
  9. Click Upload.
  10. Telnet / Console connect to PacketShaper.
  11. Issue the command cd cmd to access the 9.256/cmd/ directory on PacketShaper.
  12. Issue the command pwd to make sure you are in 9.256/cmd/ directory.
  13. Issue the command ls, and verify the backup.cmd file is listed.
  14. Issue the command run backup.cmd to restore the configuration.

B. Using config.ldi file (this method may be faster as it does not have to run one command at a time as in config.cmd method but if there is some issue with the configuration, it will carry over to the restored configuration whereas config.cmd method will omit errored or conflicting configuration).

Back up the current PacketShaper configuration

  1. To back up the current configuration, issue the command: config save backup.ldi  In the PacketShaper CLI.
  2. In the PacketShaper legacy UI, click the Info tab.
  3. Click the file browser button.
  4. Navigate to the 9.256/CMD/ directory.
  5. Right click the backup.ldi file and save the files to your desktop.

Steps to perform a Factory Reset of your PacketShaper

  1. Have a console access to PacketShaper. Note: You must connect to PacketShaper via console because clearing the configuration will reset the IP address setting as well.
  2. Issue the command setup reset all to reset the PacketShaper configuration to factory default.
  3. Type Yes to confirm.
    Note:  The PacketShaper will auto reboot.

Restore PacketShaper configuration

After PacketShaper has rebooted, answer "NO" for Guided Setup as below:

PacketShaper not yet configured.  Do you wish to be
guided through initial setup of the PacketShaper? (yes): no

  1. Issue the command setup ipaddress x.x.x.x y.y.y.y to configure the IP address and subnet mask. (x.x.x.x=IP, y.y.y.y=Subnet Mask)
  2. Issue the command setup gateway g.g.g.g to configure the gateway IP (g.g.g.g=Gateway IP Address)
  3. After IP address setup, log in to the PacketShaper Legacy UI.
  4. Click the Info tab.
  5. Click the file browser button.
  6. Navigate to the 9.256/cfg/ directory.
  7. Click the upload button.
  8. Click Browse and select the backup.ldi location that you saved during configuration backup.
  9. Click Upload.
  10. Telnet / Console connect to PacketShaper.
  11. Issue the command cd cmd to access the 9.256/cfg/ directory on PacketShaper.
  12. Issue the command pwd to make sure you are in 9.256/cfg/ directory.
  13. Issue the command ls, and verify the backup.ldi file is listed.
  14. Issue the command config load backup.ldi to restore the configuration.