Network Management

 View Only
last person joined: yesterday 

Keep an informative eye on your network with HPE Aruba Networking network management solutions
Expand all | Collapse all

hpe-aruba 2530-48g config export to another 2530-48g switch

This thread has been viewed 29 times
  • 1.  hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 08, 2022 06:52 AM
    dear all, 
    Is there command to export hpe-aruba 2530-48g to another hpe-aruba 2530 switch? Thanks a lot.


  • 2.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    MVP GURU
    Posted Nov 08, 2022 08:19 AM
    Hi, are you referring to (Switch) current running configuration? if so the configuration is a text file that can be copied and pasted into the new Switch provided that source and destination share the same OS and the same number of ports (exact the same hardware configuration): given that you're asking for transferring the configuration from one 2530 to another...If I were you I would copy the running configuration of the source Switch and adapt (removing/changing/adapting unnecessary configuration lines) to cope with the destination Switch (especially if the destination Switch has a different - lower - number of ports).


  • 3.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 08, 2022 08:25 AM
    Does it support the command as below:
    ProCurve# copy startup-config tftp 10.28.227.105
       d:\configs\sw8200

    And how to find switch mac information?
    Thanks a lot


  • 4.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    MVP GURU
    Posted Nov 08, 2022 08:44 AM
    Hi, yes.

    The HP/HPE/Aruba 2530 switch series currently uses ArubaOS-Switch operating system if it's running recent versions (the AOS-S operating system is the successor of the HP ProVision operating system used on older HP ProCurve switch series). The AOS-S supports the copy of running/startup configurations to a TFTP Server with the command:


    copy running-config tftp <a.b.c.d> <filename> add-ignore-tag pc (or instead of pc you can use the unix option)

    Where the add-ignore-tag option adds the tag "IGNORE" in the header of the uploaded configuration file.

    With regard to the Switch's base MAC Address try with the show system command.



  • 5.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 08, 2022 08:51 AM
    I try command as below, but it did not show mac information.
    display current-configuration
    display vlan
    display vlan all


  • 6.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    MVP GURU
    Posted Nov 08, 2022 08:54 AM
    show system


  • 7.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 10, 2022 07:20 AM
    Thanks, but I run command as below, it failed to work.
    copy running-config tftp 192.168.1.230 d:\test add-ignore-tag PC
    TFTP download in progress
    Error in sending rq message.Exceed 5
    retransmits
    000M Peer unreachable





  • 8.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    MVP GURU
    Posted Nov 10, 2022 07:37 AM
    "Peer unreacheable" speaks for itself, is the Switch able to reach your TFTP Server 192.168.1.230? Is the TFTP Server able to reach the IP address assigned to your Switch? ...and I believe you shouldn't specify any path (do not use d:\test but use just test if test is the file name you want to use by saving the running configuration into the TFTP Root directory).


  • 9.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 10, 2022 07:51 AM
    I don't install TFTP server in 192.168.1.230, my condition is as below, 
    1. I use putty to access switch, and it connect switch successfully.
    2. I would like to backup config to the same computer(192.168.1.230), so I use RJ45 cable to connect  switch, and change ip to make computer can ping switch(192.168.1.234).
    How can I backup switch setting to the computer (192.168.1.230) when I don't install TFTP SERVER?
    Thanks a lot.





  • 10.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    MVP GURU
    Posted Nov 10, 2022 12:17 PM
    OK.

    You *need* a TFTP Server installed and properly configured on your Computer (192.168.1.230) and you need that Computer's Firewall doesn't drop incoming TFTP messages.

    You then need to ensure that Switch (192.168.1.234) can ping the Computer and vice-versa.

    Once the above conditions are all met you can try to transfer a copy of the Switch's running configuration via TFTP to your Computer (which is acting as a TFTP Server) with the provided command.





  • 11.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 28, 2022 09:56 AM
    If you use PuTTY then use the console log to copy the config. So do a 
    show config
    for a listing of the startup-config and then save the screen output.
    On the other switch log on with PuTTY and do
    config
    to get into config mode.
    Then copy the saved startup-config to the screen. But start at the first real command which should be the hostname.
    Have a look at any errors, other than the default errors you probably get with vlan 1 trying to release ports to another vlan that is not defined yet.
    This may not be the "official" way to do it but it works for me for the past 10+ years when resoring to another clean switch. :-)
    Do an
    erase startup-config
    to create a blank config first if needed.

    Of course the tftp server way is better but then you run into other problems when trying to restore a config to another switch. The first few lines identify the switch the config belongs to. Restoring it to another switch will generate an error. They may look like:
    ; J9576A Configuration Editor; Created on release #KA.16.04.0023
    ; Ver #10:19.03.9f.f8.92.34.59.3c.6b.fb.ff.fd.ff.ff.3f.ef:ec
    The second line identifies the switch and you need to remove it, and probably the first line too, to restore it on another switch.


  • 12.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 10, 2022 06:14 PM
    Can I use ftp server of win10, because it did not need to find another software to install? Thanks.





  • 13.  RE: hpe-aruba 2530-48g config export to another 2530-48g switch

    Posted Nov 11, 2022 08:17 AM
    Have you looked at the manual for the switch?

    https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=c03594944



    As with all Aruba Switches, you can use the local help to see what commands are available using the "?" after the command

    HP# copy
    command-output Specify the CLI command to be executed on the switch.
    config Copy the named configuration file.
    core-dump Copy coredump file from flash.
    crash-data Copy the switch crash data file.
    crash-files Copy the core dump, crash-data, crash-log, fdr-log and event-log.
    crash-log Copy the switch log file.
    default-config Copy the custom default configuration.
    event-log Copy the event log file.
    fdr-log Copy FDR logs from the switch to a TFTP server, USB or xmodem terminal.
    flash Copy the switch system image file.
    running-config Copy the running configuration file.
    security-log Copy the security log file.
    sftp Copy data from an SFTP server.
    ssh-client-known-h... Copy the known hosts file.
    ssh-server-pub-key Copy the server public key of the switch.
    startup-config Copy the start up configuration file from the switch flash.
    support-log Copy the switch support log file.
    tftp Copy data from a TFTP server.
    usb Copy the data from a USB flash drive.
    xmodem Use xmodem on the terminal as the data source.
    #