Inputting or restoring the configuration – HP 3Gb SAS Switch for HP BladeSystem c-Class User Manual

Page 78

Advertising
background image

Inputting or restoring the configuration

To restore a previously saved configuration of a switch, use the following command description:

NOTE:

A configuration can be installed on a switch directly from an FTP server or by using a

secure copy tool to temporarily save the configuration to the switch and then install it. Example
secure copy tools include pscp.exe for Windows and scp for Linux.

Syntax

<target> input

[

file=<filename.txt>

] [

ftp

] [

ipaddr=<xxx.xxx.xxx.xxx>

]

[

user=<ftp_username>

] [

password=<ftp_password>

]

Example 1: This example demonstrates inputting a configuration that was previously captured on
an FTP server.

=> sw local input file=config.txt ftp ipaddr=111.222.333.444

Example 2: This example demonstrates inputting a configuration that was previously captured and
saved to the server.

1.

Enter the following to copy the configuration file

config.txt

from the server to the

/var/

tmp

directory on the switch:

In Windows environments, enter a command similar to the following:

pscp -scp c:\backup\config.txt [email protected]:/var/tmp/config.txt

In Linux environments, enter a command similar to the following:

scp /home/userXXX/config.txt [email protected]:/var/tmp/.

2.

From the VSM CLI prompt, enter the following to install the configuration on the switch.

=> sw local input file=/var/tmp/config.txt

78

Performing common tasks

Advertising