Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox

Sys-reset Script

From NetworkCommands


Image:F5-logo-large.png

A command available on F5 BigIP platforms; used to restore a device to it's factory default configuration. Be aware that it's probably safer to simply perform a fresh installation of software on the partition in question.

Contents

Image:Vm-power-on-medium.png Usage Syntax

sys-reset [-s | -p | -u]

  • -s - Do not remove files from the /shared partition (log files etc.)
  • -p - Ignore any hotfix patches applied to the system
  • -u - Ignore unrecoverable file errors

Image:Vm-power-on-medium.png Usage Examples

init 1 - you must run this command first to enter runlevel 1 - single user mode. Do not use the standard method (using the GRUB menu) to enter single user mode as this may render the system inoperable after this script is run

sys-reset

reboot - you must reboot the system to complete the default configuration restore

Image:accessories-text-editor-v2-medium.png Usage Notes

This command must be run from the console.

Always backup the system license file: /config/bigip.license

This command will only reset the configuration for the current active system partition.

If a non-local authentication system has been configured, re-configure the system for local authentication before running this script. If you can't or wont, see below;

The script may fail if a non-local user authorisation system has been configured. If this is the case, remove the relevant configuration file. For Radius, the file is; /config/bigip/auth/pam.d/radius/system-auth.conf

Image:utilities-terminal-medium.png Typical Output

init 1;

INIT: Sending processes the TERM signal
.....
...................... 
INIT: Sending processes the KILL signal
sh-3.00# 

sys-reset;

sh-3.00# sys-reset
WARNING: This utility will return this system to an unconfigured state.
         !!All configuration will be lost!!
         It is highly recommended that you back up this system
         configuration to another file-store.
Are you sure you want to continue?
(you must type 'yes' to continue)yes
Checking system integrity...
--- System integrity check complete; no errors found.
Checking for hotfixes...

I've omitted the rest as the output is considerable (the full output is here,) the last two lines read;

**** System reset complete. ****
You must reboot before system will be operational.

Image:icemon-medium.png Related Commands

The bigpipe config command can be used to create a backup of the current LTM configuration.

The bigpipe base command can be used to create a backup of the current base configuration (management interface etc.)

The bigpipe export command can be used to create a combined flat text file of the base and LTM configuration.

The snapshot command could be used to create a backup of the entire system image.

Image:vm-restart-medium.png Availability

F5 claim from v9.4.0 but the script exists on v9.3.0 systems.

Image:icemon-medium.png Related Articles

For v9.0 to 9.3.x systems the bigpipe reset and bigpipe save commands are used to remove a device's high level configuration. The bigpipe base reset and bigpipe base save commands are used to remove a device's base, low level configuration

Troubleshooting, F5 BigIP


Image:internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)



Site Toolbox:

Personal tools
This page was last modified on 3 July 2008, at 16:22. - This page has been accessed 14 times. - Disclaimers - About NetworkCommands
Powered by MediaWiki