cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
6518
Views
20
Helpful
15
Replies

Prime Infrastructure 2.2 can't delete file name too long

bkoch1
Level 1
Level 1

I'm trying to delete older application backups in the CLI, and it says I can't because the filepath is too many characters.

Ex. prime/admin# delete disk://defaultRepo/prime-150916-0330__VER2.2.0.0.158_BKSZ126G_CPU16_MEM4G_RAM15G_SWAP15G_APP_CK2774132844.tar.gpg
                    ^
% param string too long detected at '^' marker.

So, how do I delete these files?

15 Replies 15

terengg4nu
Level 1
Level 1

try use

pi310/admin# shell

Enter shell access password :

Starting bash shell ...

ade # pwd

/root

ade # cd /localdisk/defaultRepo

ade # ls

PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz

pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg

pi310-230529-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK4002878360.tar.gpg

ade # sudo su -

Last login: Mon May 29 20:01:02 +08 2023 on pts/0

[root@pi310 ~]#

[root@pi310 ~]# ls

rm pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg

rm: remove regular file ‘pi310-230528-0330__VER3.10.0.1003.27_BKSZ18G_CPU16_MEM4G_RAM23G_SWAP15G_APP_CK3107936205.tar.gpg’? yes

root@pi310 defaultRepo]# ls

[root@pi310 defaultRepo]# exit

logout

ade # exit

 

pi310/admin# application upgrade PI-Upgrade-3.10.x_to_3.10.2-0.0.90.tar.gz defaultRepo

This application Install or Upgrade requires reboot, rebooting now...

 

Review Cisco Networking for a $25 gift card