05-18-2023 10:19 PM
Hey there,
I'm trying to make a playbook which will send commands to Cisco WLC to send backup config to tftp server.
While i'm performing manual commands to the WLC the config backup are uploading to my tftp server without any case.
Here is my set of commands which i perform manually:
(Cisco Controller) >transfer upload mode tftp
(Cisco Controller) >transfer upload datatype config
(Cisco Controller) >transfer upload filename backup_config.cfg
(Cisco Controller) >transfer upload path /
(Cisco Controller) >transfer upload serverip 99.99.99.99
(Cisco Controller) >transfer upload start
(Cisco Controller) >y
Here is the output from the Cisco WLC:
(Cisco Controller) >transfer upload start
Mode............................................. TFTP
TFTP Server IP................................... 99.99.99.99
TFTP Path........................................ /
TFTP Filename.................................... backup_config.cfg
Data Type........................................ Config File
Encryption....................................... Disabled
**************************************************
*** WARNING: Config File Encryption Disabled ***
**************************************************
Are you sure you want to start? (y/N) y
TFTP Config transfer starting.
File transfer operation completed successfully.
As you see "File transfer operation completed successfully."
So i try to perform the same logig and the same set of commands using ansible playbook:
Solved! Go to Solution.
05-19-2023 01:24 AM
Found a missconfig on my Playbook:
I use: transfer download start command instead of transfer upload start
Now my PB works fine and task lokks like that:
05-19-2023 01:24 AM
Found a missconfig on my Playbook:
I use: transfer download start command instead of transfer upload start
Now my PB works fine and task lokks like that:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide