banner



How To Copy Config From Cisco Switch Using Putty

Transferring switch configurations

Using the CLI commands described in the section starting time with TFTP: Copying a configuration file to a remote host (CLI), you can copy switch configurations to and from a switch, or copy a software image to configure or replace an ACL in the switch configuration.


[NOTE: ]

Note: For greater security, you lot can perform all TFTP operations using SFTP, every bit described in the section Using SCP and SFTP.

Y'all tin can as well employ the include-credentials control to relieve passwords, clandestine keys, and other security credentials in the running config file. For more information, see the section on "Saving Security Credentials in a Config File" in the Access Security Guide for your switch.


TFTP: Copying a configuration file to a remote host (CLI)

Syntax:

copy <startup-config | running-config> tftp < ip-addr > < remote-file > [ pc | unix ]

re-create config < filename > tftp < ip-addr > < remote-file > [ pc | unix ]

This command can copy a designated config file in the switch to a TFTP server. For more information, meet "Multiple Configuration Files" in the Basic Functioning Guide for your switch.

Example:

To upload the current startup configuration to a file named sw8200 in the configs directory on drive "d" in a TFTP server having an IP address of x.28.227.105:

ProCurve# copy startup-config tftp 10.28.227.105    d:\configs\sw8200          

TFTP: Copying a configuration file from a remote host (CLI)

Syntax:

re-create tftp <startup-config | running-config> < ip-address > < remote-file > [ pc | unix ]

copy tftp config < filename > < ip-address > < remote-file > [ pc | unix ]

This command can copy a configuration from a remote host to a designated config file in the switch. For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.

For more data on wink image use, see "Using Principal and Secondary Flash Image Options" in the Basic Operation Guide for your switch.

Example:

To download a configuration file named sw8200 in the configs directory on drive "d" in a remote host having an IP address of 10.28.227.105:

HP Switch# copy tftp startup-config 10.28.227.105    d:\configs\sw8200          

TFTP: Copying a customized command file to a switch (CLI)

Using the copy tftp control with the evidence-tech option provides the ability to copy a customized command file to the switch. When the show tech custom command is executed, the commands in the custom file are executed instead of the hard-coded list of commands. If no custom file is found, the current hard-coded list is executed. This list contains commands to display information, such as the image stamp, running configuration, boot history, port settings, and so on.

Syntax:

Using the copy tftp show-tech command to upload a customized command file

HP Switch(config)# re-create tftp show-tech 10.10.ten.3 commandfile1            

Syntax:

show tech custom

Executes the commands found in a custom file instead of the difficult-coded list.


[NOTE: ]

NOTE: Exit the global config way (if needed) earlier executing show tech commands.


Y'all can include show tech commands in the custom file, with the exception of prove tech custom. For example, you tin can include the control bear witness tech all.

If no custom file is found, a message displays stating "No Show-TECH file found." (No custom file was uploaded with the copy tftp evidence-tech command.)

The prove tech custom command

HP Switch# show tech custom No SHOW-TECH file establish.            

Xmodem: Copying a configuration file to a serially continued PC or UNIX workstation (CLI)

To use this method, the switch must exist connected via the serial port to a PC or UNIX workstation. You will need to:

  • Determine a filename to use.

  • Know the directory path you lot volition use to store the configuration file.

Syntax:

copy <startup-config | running-config> xmodem <pc | unix>

copy config < filename > xmodem <pc | unix>

Uses Xmodem to copy a designated configuration file from the switch to a PC or UNIX workstation. For more than information, see "Multiple Configuration Files" in the Bones Operation Guide for your switch.

Example:

To copy a configuration file to a PC serially continued to the switch:

  1. Make up one's mind the file proper name and directory location on the PC.

  2. Execute the following control:

    HP Switch# copy startup-config xmodem pc Printing 'Enter' and commencement XMODEM on your host...                
  3. After you run across the higher up prompt, printing [Enter] .

  4. Execute the terminal emulator commands to begin the file transfer.

Xmodem: Copying a configuration file from a serially connected PC or UNIX workstation (CLI)

To employ this method, the switch must be connected via the serial port to a PC or UNIX workstation on which is stored the configuration file y'all 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.

For more information, see "Multiple Configuration Files" in the Bones Operation Guide for your switch.

Example:

To re-create a configuration file from a PC serially connected to the switch:

  1. Execute the following command:

    HP Switch# copy xmodem startup-config pc Device volition exist rebooted, do you want to continue [y/n]? y Press 'Enter' and kickoff XMODEM on your host...                
  2. Afterward you come across the above prompt, printing [Enter] .

  3. Execute the final emulator commands to begin the file transfer.

  4. When the download finishes, you lot must reboot the switch to implement the newly downloaded software. To practise and then, use one of the following commands:

    Syntax:

    boot system flash [ master | secondary ]

    boot system flash [config < filename >]

    Switches kick from the designated configuration file. For more data, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.

    Syntax:

    reload

    Reboots from the flash image currently in utilise.

    (For more on these commands, come across "Rebooting the Switch" in the Basic Operation Guide for your switch.)

USB: Copying a configuration file to a USB device (CLI)

To use this method, a USB flash retention device must be connected to the switch's USB port.

Syntax:

copy startup-config usb < filename >

copy running-config usb < filename >

Uses the USB port to re-create a designated configuration file from the switch to a USB flash memory device. For more data, meet "Multiple Configuration Files" in the Basic Functioning Guide.

Instance:

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.

USB: Copying a configuration file from a USB device (CLI)

To utilise this method, the switch must be connected via the USB port to a USB flash drive on which is stored the configuration file you want to copy. To execute the command, y'all will need to know the name of the file to copy.

Syntax:

copy usb startup-config < filename >

Copies a configuration file from a USB device to the startup configuration file on the switch.

Instance:

To re-create a configuration file from a USB device to the switch:

  1. Insert a USB device into the switch's USB port.

  2. Execute the following command:

    HP Switch# copy usb startup-config HP Switch-config                    

    where HP Switch-config is the proper noun of the file to copy.

  3. At the prompt, press [Enter] to reboot the switch and implement the newly downloaded software.

How To Copy Config From Cisco Switch Using Putty,

Source: https://techhub.hpe.com/eginfolib/networking/docs/switches/WB/15-18/5998-8162_wb_2920_mcg/content/ch09s04.html

Posted by: shellenbargerjuplage.blogspot.com

0 Response to "How To Copy Config From Cisco Switch Using Putty"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel