S5720 clean file system

Created Dec 18, 2018 21:07:08Latest reply Dec 20, 2018 15:06:42 221 7 0 0
  Rewarded E coins: 0 (problem resolved)

Hi all,


Im looking for help regarding S5720.


After applying multiple patches on it, disk space become low.


As I have quite a few switches, and esigh Id like to know how to clean all these patches centrally as currently Im deleting each patches one by one on each switches.


Is there a way to clean it ?


Thanks !


Vincent,


  • x
  • convention:

Mark.hu  Adept   Created Dec 20, 2018 10:25:25 Helpful(0) Helpful(0)

This post was last edited by Mark.hu at 2018-12-20 10:27. First of all, we do not recommend batch deletion by script, because there are many files inside, we need to confirm whether we need to delete, if the deletion error will lead to unknown problems, the manual deletion is as follows:
1. delete [ /unreserved ] [ /quiet ] { filename | devicename } [ all ]

Parameters

Parameter

Description

Value

/unreserved

Deletes a specified file. The deleted file cannot be restored.

-

http://support.huawei.com/hedex/hdx.do?docid=EDOC1100037168&id=delete_user_view&text=%2525253Cb%2525253Edelete%2525253C%2525252Fb%2525253E%25252B%25252528user%25252Bview%25252529&lang=en


2. After deleting, empty the recycle bin to avoid still taking up space.The reset recycle-bin command 
  • x
  • convention:

Mysterious.color  Novice   Created Dec 18, 2018 23:56:25 Helpful(0) Helpful(0)

you want to make a clean for the whole system including the configuration ?
  • x
  • convention:

Best answer

find what you love and let it kill you.
ViktorG     Created Dec 19, 2018 14:23:42 Helpful(0) Helpful(0)

Hello Vincent!
To check the files on the flash you can use command DIR in user view.

For deleting useless files use delete flash:/FILENAME.
Also, do not forget after deleting to use reset recycle-bin flash:/FILENAME.

Take care!
  • x
  • convention:

Best answer

4am  Novice   Created Dec 19, 2018 17:32:16 Helpful(0) Helpful(0)

You can make a common script and paste the configuration on each.
  • x
  • convention:

Best answer

vmerilhou     Created Dec 19, 2018 21:31:58 Helpful(0) Helpful(0)

Thanks

Do you have sample script I could use for my customer ?

Cheers,

Vincent
  • x
  • convention:

chenhui  Admin   Created Dec 20, 2018 09:24:23 Helpful(0) Helpful(0)

@vmerilhou hello Vincent, first of all, you should find out which files you want to delete, and copy the files' name out, then create a text file to edit the script.
for example: I want to delete file A, B and C, I can edit my script like below
delete /force flash:/A
delete /force flash:/B
delete /force flash:/C
by pasting the script in the router, the router will delete the file A, B and C
by the way, before you delete the files, please be sure the file is useless, it's better to backup before deleting.
  • x
  • convention:

Best answer

vmerilhou     Created Dec 20, 2018 15:06:42 Helpful(0) Helpful(0)

Thanks all for your answer.

The issue is simple : my customer has more than 100 switches.

On each switches he has deployed patches and applied them.

Now all these patches takes disk space and he wants to clean these patches.

The problem is if you have 100 switches you need to specify for each switches the proper name of the patch to delete it.

What I dont get is when you have 100 switches do you have to look at each of them and check one by one the file names on it? this sounds really painfull no?

Ill go with the Dir to command to list then delete and recycle clean method for each switches,

Thanks for your help !

Vincent,


  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top