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.htmIf that doesn't work then you need something external like IMC or python script on an automation platform.
Original Message:
Sent: Oct 12, 2022 06:19 AM
From: Steven Brown
Subject: ArubaOS-CX
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
Original Message:
Sent: Oct 11, 2022 09:16 AM
From: Davide Poletto
Subject: ArubaOS-CX
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.
Original Message:
Sent: Oct 11, 2022 09:05 AM
From: Steven Brown
Subject: ArubaOS-CX
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