Management and Configuration Guide K/KA/KB.15.15

Copying a configuration file from a serially connected PC or UNIX workstation
To use this method, the switch must be connected via the serial port to a PC or UNIX workstation
on which is stored the configuration file you want to copy. To complete the copying, you need to
know the name of the file to copy and the drive and directory location of the file.
Syntax
copy xmodem startup-config [ pc | unix ]
copy xmodem config filename [ pc | unix ]
Copies a configuration file from a serially connected PC or UNIX workstation to a designated
configuration file on the switch.
Example
To copy a configuration file from a PC serially connected to the switch:
1. Execute the following command:
HP Switch# copy xmodem startup-config pc
Device will be rebooted, do you want to continue [y/n]? y
Press 'Enter' and start XMODEM on your host...
2. After you see the above prompt, press [Enter].
3. Execute the terminal emulator commands to begin the file transfer.
4. When the download finishes, you must reboot the switch to implement the newly downloaded
software. To do so, use one of the following commands:
Syntax
boot system flash [ primary | secondary ]
boot system flash [config filename ]
Switches boot from the designated configuration file.
Syntax
reload
Reboots from the flash image currently in use.
Copying a configuration file to a USB device
To use this method, a USB flash memory device must be connected to the switch's USB port.
Syntax
copy startup-config usb filename
copy running-config usb filename
Example
To copy the startup configuration file to a USB flash drive:
1. Insert a USB device into the switch's USB port.
2. Execute the following command:
HP Switch# copy startup-config usb HP Switch-config
where HP Switch-config is the name given to the configuration file that is copied from
the switch to the USB device.
Transferring switch configurations 281