Wired Intelligent Edge

 View Only
last person joined: 11 hours ago 

Bring performance and reliability to your network with the HPE Aruba Networking Core, Aggregation, and Access layer switches. Discuss the latest features and functionality of your switching devices, and find ways to improve security across your network to bring together a mobile-first solution
Expand all | Collapse all

Using SCP in ArubaOS-Switch

This thread has been viewed 59 times
  • 1.  Using SCP in ArubaOS-Switch

    EMPLOYEE
    Posted Oct 08, 2018 03:05 PM

    Did you know ArubaOS-Switch supports SCP?  Using an external SCP client, config files and firmware can be copied to and from the switch.

     

    Here's how it works:

     

    To begin you'll need an external SCP client, for this example I used pscp, which is a putty-based windows client.  As pscp is windows-based, it needs to be run from the windows command line.  First, you will need to enable the following commands on the switch:

     

    Switch(config)# ip ssh
    Switch(config)# ip ssh filetransfer

    After enabling the previous commands, you are then able to copy config files from the switch like so:

     

    c:\pscp>pscp admin@10.5.8.4:/cfg/testcfg.cfg <directory to copy files>
    Using keyboard-interactive authentication.
    admin@10.5.8.4's password:
    testcfg.cfg               | 1 kB |   1.6 kB/s | ETA: 00:00:00 | 100%

    You can copy files to the switch (default-config, startup-config, running-config only):

     

    c:\pscp>pscp -scp <file to copy in pscp directory> admin@10.5.8.4:/cfg/default-config
    Using keyboard-interactive authentication.
    admin@10.5.8.4's password:
    testcfg2.cfg              | 1 kB |   1.6 kB/s | ETA: 00:00:00 | 100%

    Finally, you can update the firmware on the switch:

     

    c:\pscp>pscp -scp KB_16_07_0002.swi admin@10.5.8.4:/os/secondary
    Using keyboard-interactive authentication.
    admin@10.5.8.4's password:
    KB_16_07_0002.swi         | 32969 kB | 578.4 kB/s | ETA: 00:00:00 | 100%

    Justin

     

     

     



  • 2.  RE: Using SCP in ArubaOS-Switch

    Posted Oct 09, 2018 08:59 PM

    More information about SCP you can find it in the "Files Transfer" chapter of the Management and Configuration Guide for your ArubaOS-Switch.

    e.g. look at chapter 16 page 350 of this guide:

    https://support.hpe.com/hpsc/doc/public/display?docId=a00050273en_us

    Regards

    Pedro

     



  • 3.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 01, 2020 10:12 AM

    ArubaOS-CX seems not to have the possibility to backup with

    scp manager@10.10.10.10:/cfg/startup-config .

    Why was scp removed? (not implemented)



  • 4.  RE: Using SCP in ArubaOS-Switch

    EMPLOYEE
    Posted Mar 01, 2020 10:21 PM

    Good day!

    Hello,

    Yes you are correct. 

    • As per today, Aruba ArubaOS-CX (AOS-CX) doesn’t support SCP(client/server). 
    • TFTP/SFTP Client is supported on AOS-CX.  Does this help?

    Thanks,

    Yash



  • 5.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 02, 2020 04:00 AM

    Hello,

     

    in a PVOS / Comware environment built on iMC using scp that is an inconvenient exception. 

     

    Thanks

     

    Winfried



  • 6.  RE: Using SCP in ArubaOS-Switch

    EMPLOYEE
    Posted Mar 02, 2020 05:07 AM

    Thank you for that feedback.

    Please talk to account team, will also send this request to our switching PLM. If I hear more update, will keep you posted.

     

    Due to this are you seeing any impact on current customer deal? 

    or is this a must support feature for RFP?

     

    Please share, that will help me while sending request.

     

    Thanks,

    Yash



  • 7.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 02, 2020 05:13 AM

    Sure. We stop buying further ArubaOS-CX switches and look for other solutions so long.



  • 8.  RE: Using SCP in ArubaOS-Switch

    MVP GURU
    Posted Mar 02, 2020 07:33 AM

    it is for backup the config ? (or restore a config ?)



  • 9.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 02, 2020 07:47 AM
    It is mainly backup, but also restore. A manual way is to do a copy running-config sftpurl from the CLI of the switch. iMC support case is already running for some time. CX is the only switch we use not supporting scp. I assume this is still the most common way. Am I wrong?


  • 10.  RE: Using SCP in ArubaOS-Switch

    EMPLOYEE
    Posted Mar 02, 2020 08:59 AM

    Hello,

    Alternatively we have scp supported on shell, does that help for now?

     

    CX6300#start-shell
    CX6300:/home/admin# scp vsrmsgs chandjol@10.0.15.237:/users/chandjol/supportfile/varmsgs
    chandjol@10.0.15.237's password:
    vsrmsgs 100% 859KB 60.3MB/s 00:00
    CX6300:/home/admin#

     

    btw, I am sharing your feature request to PLM. Will keep you posted on update asap.

     

    Have a good day!

     

    Thank you,

    Yash



  • 11.  RE: Using SCP in ArubaOS-Switch

    MVP GURU
    Posted Mar 02, 2020 09:53 AM

    Hi,

     

    There is also API for download (or upload) config and it is possible to call SCP destination (or source)



  • 12.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 02, 2020 10:05 AM

    Hi,

     

    I am aware of scp in the root shell. This is a good way to work around other bugs. 

     

    I was not aware of the API approach to export a configuration. Will iMC be capable of using the API? 

    Cheers

    Winfried



  • 13.  RE: Using SCP in ArubaOS-Switch

    MVP GURU
    Posted Mar 06, 2020 01:22 AM

    No for IMC



  • 14.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 06, 2020 06:11 AM

    If I understand the indication from support correctly there is no known solution at all to backup ArubaOS-CX with iMC. 

    Has anybody managed? 



  • 15.  RE: Using SCP in ArubaOS-Switch

    MVP GURU
    Posted Mar 06, 2020 08:17 AM

    Hello Winfried, on the contrary...I'm currently able to backup both of our Aruba 8320 switches (ArubaOS-CX) into HPE IMC...don't know if that is "on-topic" or "off-topic" considering your were discussing about using SCP on ArubaOS-Switch based switches...in any case have a look at the thread How to backup Aruba 8400 series switch with IMC 7.3 E0703 on HPE Networking Community forum (ArubaOS-CX backup via TFTP in HPE IMC).



  • 16.  RE: Using SCP in ArubaOS-Switch

    Posted Mar 06, 2020 08:27 AM

    Hello Parnassus,

     

    thanks for the hint with the other tftp base discussion thread concerning ArubaOS-CX iMC backup. 

     

    Sorry for hijacking this thread on from ArubaOS-Switch to ArubaOS-CX.

     

    Cheers

    Winfried