Wired Intelligent Edge

 View Only
  • 1.  ArubaOS-CX

    Posted Oct 11, 2022 09:06 AM
    Just starting out with ArubaOS-CX on 6000 series switches.  In ArubaOS switches I was able to schedule a job to automatically copy the config to a tftp server.

    I cannot determine a way to accomplish this in ArubaOS-CX.  

    Any suggestions?

    Thanks,

    Steve


  • 2.  RE: ArubaOS-CX

    Posted Oct 11, 2022 09:16 AM
    Hi Steve, have a look here (and read the attached PDF especially if the command requires interactions with CLI - like answering Yes/No or providing a Password). Probably a request similar to your one was already asked in the Community...eventually try to search it.


  • 3.  RE: ArubaOS-CX

    Posted Oct 12, 2022 06:19 AM
    Thanks Parnassus,  I reviewed the post and the associated PDF.  It seems the copy command is not supported in jobs, so I am back to square one.
    Steve


  • 4.  RE: ArubaOS-CX

    Posted Oct 13, 2022 01:44 AM
    I think there are two problems leading to the doc stating you can't do a copy. First is a hard 5 min limit to the execution. Copy of a large file could be longer. They might be protecting against strange experiences.

    But more likely is the code doesn't handle the SCP password prompt. It can paste CLI commands but not the interaction inside the SSH session. This is the case for some network automation which relies heavily on seeing specific prompts before sending commands. There are ways to code around that of course.

    If you use tftp on your network you could try and be sneaky and see if an alias would work. This might work if they only prevent specific key words in CLI commands.

    https://www.arubanetworks.com/techdocs/AOS-CX/AOSCX-CLI-Bank/cli_6200/Content/cli_ses_cmds/alias.htm


    If that doesn't work then you need something external like IMC or python script on an automation platform.


  • 5.  RE: ArubaOS-CX

    Posted Oct 13, 2022 03:20 AM
    There is an NAE script which TFTP's the config whenever a change is made.  It is on ase  and is called configuration_change_tftp here's a link but I am not sure whether it will work, so you can just go to ase.arubanetworks,com, click on "Solutions" and serach fror the script by name.

    Solutions - ASE (arubanetworks.com)

    It does work, but I found the trigger meant it generated quite a lot of versions and I have other ways to backup my configs.