-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail Copy_To_Device cleaner via FTP on iOS XR #152
Comments
Copy of : CiscoTestAutomation/genieparser#819 |
Hello @widadzakaria, Kindly provide the complete output of
|
``Hi @SohanTirpude and @ParimiNeeraja Thanks for taking car of my issue ! Here is the output of the copy_to_device, step 6, with debug on:
Have a great day ! |
Hi widadzakaria, Thanks for sharing the debug log, will check and update you. |
Hi @widadzakaria , I checked in repo, in there it just passing username and password, there it was not changing the command. Thanks. |
Hi @widadzakaria , Kindly let me know is there any update on this issue. |
Hi @widadzakaria , Is any update on this issue. Kindly let us know. |
Hi @ParimiNeeraja, I tried to use the copy_to_device() API to make thing a bit easier but still I have the same error when I'm using FTP. No issue using TFTP. Check the file for more info (Unicon Debug ON). Here is my testbed-file :
And here a example of my python script:
|
An information that might help, to copy a file from a server to a router iOSXR version 6.x and lower (32 bits), we can use this command : |
Hi @widadzakaria , Please do the above steps in manually to replicate this exactly steps, kindly do not run in any script. |
Hi @ParimiNeeraja, Hope that help !
|
Hi @widadzakaria , Thanks for the detailed information. As mentioned by you that in router version 6 this issue is not seen and the command it generated correctly by Unicon. But for router version 7 this command needs to be changed. I will need to check with the team on how to handle such scenario because this is due to version mismatch this issue is seeing. Kindly give me some time. If needed any more help, I will let you know. Thank you. |
Hello @widadzakaria , As you mentioned earlier this command , |
Hello @widadzakaria , Kindly let me know the update router versions. |
Hi @Neeraja1bala, |
Hello @widadzakaria , |
Hi,
When I try to copy a file from a Server to an iOS XR router (ASR9K) using the copy_to_device cleaner and the FTP protocole, the command executed in the CLI has this format : copy ftp://[Username]:[Password]@[Server-IP]//[File_Directory] [Destination_Directory_on_Router] .
The problem is that the router ask again the : Address or name of remote host, Source Username, Source password, Destination FIlename... so the new format 'generated' by the router add again the username and the password...
So the command become : ftp://[Username]:*@[Server-IP]/%2F[Username]:[Password]@[Server-IP]//[File_Directory] [Destination_Directory_on_Router]. So the copy fails with this error :
%GENIE-ERROR: ('Command execution failed', SubCommandFailure('sub_command failure, patterns matched in the output:'.....
Actually, the command that has to be executed on an iOS XR router has to be :
copy ftp://[Server-IP]//[File_Directory] [Destination_Directory_on_Router]
, so when the router ask for the username and password, the command that it generates is the good one .Here is an example of the clean.yaml:
Thanks for the help :)
The text was updated successfully, but these errors were encountered: