Kategorien

How to download the configuration of an HP Procurve switch via SSH/SFTP

By default, a Procurve switch will support TFTP backups. Without a running TFTP server, it can be difficult to backup the config of a Procurve switch.
To backup the switch via SFTP, first confirm that SSH is enabled on the switch, then issue the following command via the switch CLI:

ProCurve Switch(config)# ip ssh filetransfer

From a remote system, download the currently running config using the following command (replace 1.2.3.4 with the IP of the switch):
sftp root@1.2.3.4:cfg/runningconfig
Alternatively, download the startup config using the following command:
sftp root@1.2.3.4:cfg/startupconfig
Or, download them both at the same time:
sftp root@1.2.3.4:cfg/*

To download the log files:
sftp root@1.2.3.4:log/*