10-01-2014 04:45 AM
Hi I'm running PI 2.1 with all the latest patches and packs but I can't get SCP Image transfers to work.
When I check the suggested logs from the Jobs Dashboard (and jump into the CLI root) I see the following:
[SWITCH-DEVICE]=Switch Hostname
[SWITCH-ADMIN-LOGIN]=Level 15 username login to Switch, same username the is used in the Device Work Centre
[PRIME-INF-IP]=Prime Infrastructure Server
[SWITCH-DEVICE]#archive download-sw ............... archive download-sw /allow-feature-upgrade
/overwrite scp://[SWITCH-ADMIN-LOGIN]@[PRIME-INF-IP]//localdisk/tftp/c3560-ipbaselmk9-tar.122-55.SE9.tar
Password:
Password:
% Authentication failed.
Could not buffer tarfile...using multiple downloads
examining image...
Password:
Password:
% Authentication failed.
%Error opening scp://[SWITCH-ADMIN-LOGIN]@[PRIME-INF-IP]//localdisk/tftp/c3560-ipbaselmk9-tar.122-55.SE9.tar (Permission denied)
%Error opening flash:update/info (No such file or directory)
ERROR: Image is not a valid IOS image archive.
[SWITCH-DEVICE]#
It looks like the switch is trying to log into the PI server and download the software as opposed to PI sending the software to the switch.
I've used WinSCP to open up the URL, but none of the passwords I know or created work.
Do I need to SSH into the PI box and create a new CLI account (or Root CLI account) that matches up to the switch [SWITCH-ADMIN-LOGIN]?
Regards,
Solved! Go to Solution.
10-13-2014 08:21 AM
Hi rowansakul,
I didn't set specific permissions but put a 14 character password for the new user in root cli.
useradd [new user]
passwd [new user]
Then applied the new user and password in the GUI as listed above.
10-09-2014 01:50 PM
Hi rowansakul,
The work around for this particular issue involves having a user set up in the root cli and then from the the GUI navigate to Administration > System Settings > Image Management and set up the SSH Username with your new user account that you created under root cli. That is the credentials that Prime is looking for when it is attempting to access its own image repository.
Regards,
Brandon
10-09-2014 06:28 PM
Hi Brandon, thanks for the reply.
Just to confirm your interpretation of "root cli"...
Thanks
10-10-2014 06:33 AM
Hi rowansakul,
Yes that is in the OS itself that you create that user, essentially Prime Infrastructure has to authenticate to its OS to gain access to the image repository. To date I've only had it be an issue with switches that use the "archive" command for SWIM distribution. Hope this helps.
Regards,
Brandon
10-12-2014 02:41 PM
Hi Brandon,
That's exactly the problem I'm trying to solve. Does the new user need to have any special OS permissions. I don't speak Linux too well!
Regards,
10-12-2014 08:03 PM
Hi Brandon,
Would the following work?
# useradd -ou 0 -g 0 [USER-NAME]
# passwd [USER-NAME] [USER-PASS]
10-13-2014 08:21 AM
Hi rowansakul,
I didn't set specific permissions but put a 14 character password for the new user in root cli.
useradd [new user]
passwd [new user]
Then applied the new user and password in the GUI as listed above.
10-14-2014 08:43 PM
Thanks Brandon, it's now all working as intended.
Love those undocumented procedures...
Cheers,
Rowan
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: