S5720 clean file system

Created: Dec 18, 2018 13:07:08Latest reply: Dec 20, 2018 07:06:42 404 7 0 0
  Rewarded Hi-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:

Featured Answers
Mark.hu
Created Dec 20, 2018 02:25:25 Helpful(0) Helpful(0)

This post was last edited by Mark.hu at 2018-12-20 02: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:

All Answers
Mysterious.color
Mysterious.color MVE Created Dec 18, 2018 15:56:25 Helpful(0) Helpful(0)

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

Core%20Engineer%2C%20Technical%20Department.%20High%20experience%20in%20Networking
ViktorG
ViktorG Created Dec 19, 2018 06: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:

Take care and have a great day!
Viktor
4am
4am Created Dec 19, 2018 09:32:16 Helpful(0) Helpful(0)

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

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

Thanks

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

Cheers,

Vincent
  • x
  • convention:

chenhui
chenhui Admin Created Dec 20, 2018 01: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:

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

This post was last edited by Mark.hu at 2018-12-20 02: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:

vmerilhou
vmerilhou Created Dec 20, 2018 07: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:

Reply

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

Notice Notice: To protect 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 are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including 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."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login