Posted on September 4, 2018 3:25 pm
 |  Asked by Nilesh Bhadane
 |  957 views
RESOLVED
0
0
Print Friendly, PDF & Email

I am able to scp extension to /mnt/flash folder

LM-SJC-11002779:SPECS jayesh$ scp /Users/nbhadane/rpmbuild/RPMS/x86_64/test-1.0.0-1.x86_64.rpm admin@10.224.55.38:/mnt/flash
test-1.0.0-1.x86_64.rpm 100% 6983 5.9MB/s 00:00

But, scp to extensions: folder is failing (Permission denied)

LM-SJC-11002779:SPECS nbhadane$ scp /Users/nbhadane/rpmbuild/RPMS/x86_64/test-1.0.0-1.x86_64.rpm admin@10.224.55.38:/extensions
scp: /extensions: Permission denied

Similarly, when running copy command on switch, it is failing with Permission denied (publickey,keyboard-interactive).)

localhost(config)#copy scp://nbhadane@10.224.55.38/Users/nbhadane/rpmbuild/RPMS/x86_64/test-1.0.0-1.x86_64.rpm extension:
Password:
% Error copying scp://nbhadane@10.224.55.38/Users/nbhadane/rpmbuild/RPMS/x86_64/test-1.0.0-1.x86_64.rpm to extension: (Warning: Permanently added ‘10.224.55.38’ (ECDSA) to the list of known hosts.
Permission denied (publickey,keyboard-interactive).)

Please help me to solve this Permission denied issue.

2
Posted by Tamas Plugor
Answered on September 4, 2018 3:45 pm

You won’t be able to install extensions by copying them to the extension folder from bash, you’ll need to do it from the CLI as it’s not just a pure copy of the rpm/swix (other actions are done in the background as well)

Steps to install extensions:
0. copy the file to /mnt/flash with scp
scp APP.rpm admin@10.224.55.38://mnt/flash

Copy the RPM to the extension partition using the CLI command
1.#copy flash:APP.rpm extension:

Install extension
2.#extension APP.rpm

Check if it’s installed
3.#show extensions

4.Installed extensions will not survive a reboot by default. To make them permanent, you’ll
need to issue the copy installed-extensions boot-extensions command:
Arista#copy installed-extensions boot-extensions

To make sure your extensions will survive a reboot, use the show boot-extensions
command:
Arista#show boot-extensions

How to remove it from extensions?

del extension:APP.rpm

How to uninstall the extension?

no extension APP.rpm

Post your Answer

You must be logged in to post an answer.