Basic Operation Guide 2014/02

Example 31 Using SFTP
C:\PuTTY> psftp 10.1.243.209
We'd like to keep you up to date about:
* Software feature updates
* New product announcements
* Special events
Please register your product at: www.register.hp.com
Remote working directory is /
psftp> ls
Listing directory /
drwxr-xr-x 2 J9145A J9145A 0 Jan 01 00:01 cfg
drwxr-xr-x 2 J9145A J9145A 0 Jan 01 00:01 core
drwxr-xr-x 2 J9145A J9145A 0 Jan 01 00:01 log
drwxrwxrwx 2 J9145A J9145A 0 Jan 01 00:01 os
drwxrwxrwx 3 J9145A J9145A 0 Jan 01 00:01 ssh
psftp> ls /cfg
Listing directory /cfg
-rwxrw-r-- 1 J9145A J9145A 1749 Jan 01 00:01 default-config
-rw-r--r-- 1 J9145A J9145A 745 Jan 01 01:19 running-config
-rwxrw-r-- 1 J9145A J9145A 360 Jan 01 01:19 startup-config
psftp>
Erasing a configuration file
If a custom default configuration file exists and the erase startup-config command is executed, the
current active configuration is erased and the switch is booted with the custom default configuration.
Example 32 Erasing the startup config file when a default custom config file exists
HP Switch(config)# erase startup-config
Configuration will be deleted, and existing login passwords
removed, and device rebooted (using the custom default
configuration), continue [y/n]?
If a custom default configuration file does not exist and the erase startup-config command is
executed, the current active configuration is erased and the switch is booted with the system default
configuration.
Example 33 Erasing the startup config file when a default custom config file does not exist
HP Switch(config)# erase startup-config
Configuration will be deleted, and existing login passwords removed,
and device rebooted, continue [y/n]?
To erase the custom default configuration file, execute the erase default-config command.
Creating a custom default configuration 55