[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]


Rolling Back Configuration Changes

This section shows how to use the rollback command to return to the most recently committed configuration. This command is useful if you make configuration changes, and then decide not to keep the changes.

This example shows how to view the default configuration for redirect server when the component is running, make configuration changes for redirect server, then return to the most recently committed configuration that does not include the changes. Redirect server redirects HTTP requests to a captive portal page.

  1. Enter configuration mode.
  2. user@host> configure 
    
    Entering configuration mode.
    
    [edit]
    
    user@host# 
    
    
    
  3. View the current configuration (if any) for redirect server.
  4. [edit]
    
    user@host# show redirect-server
    
    tcp-port 8800;
    
    destination-url;
    
    refresh;
    
    refresh-document etc/refresh.html;
    
    request-rate 12000;
    
    request-burst-size 18000;
    
    client-rate 25;
    
    client-burst-size 50;
    
    
    

The statements in the output show the default configuration for redirect server.

  1. Configure the destination URL for redirect server.
  2. [edit]
    
    user@host# set redirect-server destination-url 
    http://www.mycompany.com/default.html 
    
    
    
  3. View the updated configuration.
  4. [edit]
    
    user@host# show redirect-server
    
    tcp-port 8800;
    
    destination-url http://www.mycompany.com/default.html;
    
    refresh;
    
    refresh-document etc/refresh.html;
    
    request-rate 12000;
    
    request-burst-size 18000;
    
    client-rate 25;
    
    client-burst-size 50;
    
    
    

The destination-url statement shows the new URL.

  1. Use the rollback configuration mode command to return to the most recently committed configuration.
  2. [edit]
    
    user@host# rollback 
    
    rollback complete.
    
    
    
  3. View the configuration again to make sure that your change is no longer present.
  4. [edit]
    
    user@host# show redirect-server 
    
    tcp-port 8800;
    
    destination-url;
    
    refresh;
    
    refresh-document etc/refresh.html;
    
    request-rate 12000;
    
    request-burst-size 18000;
    
    client-rate 25;
    
    client-burst-size 50;
    
    
    

The destination-url statement shows there is no URL.

  1. Exit configuration mode.
  2. [edit]
    
    user@host# exit 
    
    Exiting configuration mode.
    
    
    


[Contents] [Prev] [Next] [Index] [Report an Error] [No Frames]