← Back to Guides Homepage

Back Up and Restore Aruba 6000 Switch via PowerShell

In this guide, we will demonstrate how to create a simple LAN environment to back up and restore an Aruba 6000 switch configuration using PowerShell. Instead of using complex TFTP servers, we will utilize the copy-and-paste method via SSH.

Step 1: Network Setup and Connection

To begin, ensure the Aruba switch and your laptop are connected to the same network (LAN). In this example, a FortiGate firewall acts as the DHCP server, providing IP addresses to both the laptop and the switch.

1. Identify the Switch IP

Open PowerShell on your laptop. You do not need third-party tools like PuTTY because PowerShell has a built-in SSH client. Run the ARP command to discover devices on your network:

arp -a

Look for an IP address that matches your subnet (e.g., if your laptop is 192.168.1.110, the switch might be 192.168.1.11).

2. SSH into the Switch

Connect to the switch using the default admin account. If the switch is factory reset, the password will be blank (press Enter).

ssh admin@192.168.1.11

Upon the first login, you will be prompted to set and confirm a new password for the admin user.

Step 2: Backing Up the Configuration

Once logged in, we will grab the running configuration. To make copying easier, we must first disable the pagination that forces you to press "Space" or "Enter" to see more text.

1. Disable Pagination

Run the page command to increase the display limit to 1000 lines.

page 1000

2. Copy the Configuration

Display the current configuration:

show running-config

Highlight the text starting from "Current configuration" down to the command prompt. Press Ctrl + C to copy it. Open Notepad and paste the configuration. You can save this text file as your backup.

Step 3: Restoring the Configuration

If the switch configuration becomes corrupted or modified incorrectly (e.g., adding an unwanted VLAN), you can restore the backup easily using the text file you created.

1. Enter Configuration Mode

In the PowerShell SSH session, enter the configuration terminal:

configure terminal

2. Paste the Backup

Copy the contents of your backup text file. In the PowerShell window, simply right-click to paste. The terminal will execute the configuration line by line, effectively restoring the settings.

3. Clean Up and Save

Note that restoring a backup this way adds the "good" configuration back, but it might not delete new, unwanted items created since the backup (like a rogue VLAN). You may need to manually remove those (e.g., no vlan 666). Finally, save your work:

write memory

← Back to Guides Homepage