Capturing the configuration – HP 3Gb SAS Switch for HP BladeSystem c-Class User Manual

Page 77

Advertising
background image

Capturing the configuration

After initially configuring the switch or after making changes to an existing configuration, HP
strongly recommends backing up the configuration for safekeeping.

NOTE:

The configuration can be backed up to an FTP server or temporarily saved to the switch

and then transferred to a different location using a secure copy tool. Example secure copy tools
include pscp.exe for Windows and scp for Linux.

Syntax

<target> capture

[

file=<filename.txt>

] [

ftp

]

[

ipaddr=<xxx.xxx.xxx.xxx>

] [

user=<ftp_username>

]

[

password=<ftp_password>

]

Example 1: This example demonstrates backing up the configuration to an FTP server.

=> sw local capture file=commands.txt ftp ipaddr=111.222.333.444

Example 2: This example demonstrates capturing the configuration to a temporary location on the
switch and then copying to a Windows system.

1.

Enter the following to create a file named

config.txt

and save it in the

/var/tmp

directory

on the switch:

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

2.

Enter the following to copy the

config.txt

file from the temporary directory on the switch

to a folder on the server:

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

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

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

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

Capturing the configuration

77

Advertising