Wired

last person joined: 4 hours ago 

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

Automatically backup config to scp or tftp when “wr me”

  • 1.  Automatically backup config to scp or tftp when “wr me”

    Posted Aug 02, 2018 08:11 PM
     
    In Cisco, I can automatically backup config using scp or tftp to other location every time I issue “wr me”
    How to achieve the same in other brand?
     
    CISCO:
    archive
    path scp://root:eve@10.0.10.70/$h
    write-memory
     
    HP:
     
     


  • 2.  RE: Automatically backup config to scp or tftp when “wr me”

    Posted Aug 06, 2018 10:59 AM

    Hi,

     

    Not sure if this is possible. Until now I didn't saw this. there are multiple ways in manually making backup's and upload them via SFTP / FTP in single commands. There is also option to restore these backups without reboot. In order to achieve similar process like your I see a lot of organizations enable the following snmp trap:

    snmp-server enable traps startup-config-change

     

    when the management system than receives this trap it automatically makes backup. Maybe this will also work for you.

     

    Regard, Dobias



  • 3.  RE: Automatically backup config to scp or tftp when “wr me”

    Posted May 27, 2019 05:37 AM

    in Juniper I tried below commands to auto rollack of config.

     

    [edit system archival configuration]
    archive-sites {
    ftp://username<:password>@host-address<:port>/url-path;
    scp://username<:password>@host-address<:port>/url-path;
    }
    transfer-interval interval;
    transfer-on-commit;


  • 4.  RE: Automatically backup config to scp or tftp when “wr me”

    Posted May 27, 2019 07:06 AM

    There is also

     

    auto-tfp command too ?



  • 5.  RE: Automatically backup config to scp or tftp when “wr me”

    Posted May 27, 2019 10:08 AM

    switch(config)# crypto key generate ssh
    switch(config)# ip ssh filetransfer
    TFTP and auto-TFTP are now disabled because they cannot be secured with SSH. TFTP can be reenabled with the 'tftp' command.

     

    auto-tftp no longer enabled by default because not secure



  • 6.  RE: Automatically backup config to scp or tftp when “wr me”

    Posted May 28, 2019 04:48 AM

    Hello,

     

    you should try creating an alias with the commands you need.

     

    alias new-wrmem "wr mem

    copy running sftp lala@x.x.x.x

    password"

     

    I don't believe you can SCP directly from a switch though.

     

    Aarón