This sample procedure 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.
- user@host> configure
- Entering configuration mode.
- [edit]
- user@host#
[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.
- [edit]
- user@host# set redirect-server destination-url http://www.mycompany.com/default.html
[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.
- [edit]
- user@host# rollback
- rollback complete.
[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.
- [edit]
- user@host# exit
- Exiting configuration mode.