Subscribe

Is there a way to pull quota info out of Operations Manager?

Our Tech Support would like to be able to add user quota information to our web portal. Is there anyway to pull that info so it can be put in the user's portal page?

Thanks,

Lorraine

Re: Is there a way to pull quota info out of Operations Manager?

Hi Lorraine,

     You can get the user quota of all using the dfm report view user-quotas.

This report can also be scheduled.If you wish that these reports are web accessible you can change the reportsArchiveDir

to some web location.

[root@lnx186-35 ~]# dfm options list reportsArchiveDir
Option            Value
----------------- ------------------------------
reportsArchiveDir /opt/NTAPdfm/reports/
[root@lnx186-35 ~]#

the default locaiton is the install directory.

A snapshot of the report.

[root@lnx186-35 ~]# dfm report view -f text  user-quotas sh-vf:/nas_ded/dedu
Quota ID User Name File System         Status Disk Space Used Disk Space Threshold Disk Space Soft Limit Disk Space Hard Limit Disk Space Used (%) Files Used Files Soft Limit Files Hard Limit Files Used (%)
-------- --------- ------------------- ------ --------------- -------------------- --------------------- --------------------- ------------------- ---------- ---------------- ---------------- --------------
21       root      sh-vf:/nas_ded/dedu Normal           86152                    0                     0                     0                             27              0.0              0.0
22       0         sh-vf:/nas_ded/dedu Normal           86152                    0                     0                     0                             27              0.0              0.0
19       *         sh-vf:/nas_ded/dedu Normal               0                    0                     0                204800                 0.0          0              0.0              0.0
20       *         sh-vf:/nas_ded/dedu Normal               0                    0                     0                204800                 0.0          0              0.0              0.0
Totals                                                 172304                    0                     0                409600                 0.0         54              0.0              0.0
[root@lnx186-35 ~]#

Regards

adai

Re: Is there a way to pull quota info out of Operations Manager?

It's a little late, but you can also do an XML export and have your webmin import the XML data.  That may be easier to import that text data.

the command is

dfm report view –F xml <report_name>

<report_name> is the unique name of the report you wish export the data.

I run this command every 24 hours and then copy the XML file to a share available to our developers.