Search Engine: Elastic

Article ID: 3262, created on Nov 30, 2007, last review on May 7, 2014

  • Applies to:
  • H-Sphere


To recover Winbox quota:

  1. Download Recreation scripts in a zip archive and unpack them to a separate directory on the Winbox, for example recreation_scripts.
  2. Log into the system database and run the following DB query to select the users and their space limit: select unix_user.login, quotas.size_mb from unix_user, parent_child, quotas where hostid=??? and and and parent_child.child_type=4001; replacing ??? with the ID of the logical server you are recovering.
  3. Copy results of the query into a text file in the recreation_scripts directory and name it, for instance, quotat.txt.
  4. Enter the recreation_scripts directory and run the following command:
    Rquota.bat %1 %2 %3 %4 > quota.txt
    rem %1 - file name, e.g. quota.txt
    rem %2 - Winbox IP
    rem %3 - H-Sphere login used at Winbox installation
    rem %4 - H-Sphere password used at Winbox installation
  5. Open quota.txt and remove the first part leaving only the list of links.
  6. Run the following command:
    WGET.EXE -i quota.txt
    This will recreate quota resource on the Winbox.

f213b9fa8759d57bee5d547445806fe7 3ef1f5f998c0dc182718a7fe4376f875

Email subscription for changes to this article
Save as PDF