Solved

Can I see actual ID of users after use "quota.report [ShareFile]"

  • 4 February 2020
  • 1 reply
  • 1082 views

Hello there!

I would like to confirm that after command “<afs>quota.report <Share Folder$>” then I got result as below

Point is [uid] is not actual user. Now I can get actual user name one-by-one

<afs>ad.uname_from_uid <uid> SMB

What should I do, If I need uid convert listed to actual user ?

I have over 2000 users, I don’t want to run overthere command 2000 times 

 

+---------+-------------+---------------+----------------+----------------------+-------------+------------------+
|   uid   |   fs_quota  |      used     | principal_type |    principal_name    |  quota_size | enforcement_type |
+---------+-------------+---------------+----------------+----------------------+-------------+------------------+
| 1100500 |      0      | 1398094120448 |     kUser      |       _default       |      0      |      kSoft       |
| 1101108 |  4294967296 |    93868544   |     kGroup     |  MTL-A-900_Manager   |  4294967296 |      kHard       |
| 1101110 |  4294967296 |   338030080   |     kGroup     |  MTL-A-900_Manager   |  4294967296 |      kHard       |
| 1101111 |      0      |   261950976   |     kUser      |       _default       |      0      |      kSoft       |

| 1101117 |      0      |   2071973888  |     kUser      |       _default       |      0      |      kSoft       |

icon

Best answer by HITESH0801 6 March 2020, 08:54

View original

This topic has been closed for comments

1 reply

Userlevel 4
Badge +5

Hello @Pawarit  

I checked in files version 3.6.1.3 (latest as of now)

The following command will give you the expected output 

<afs> quota.report <share-name> resolve_uid_to_name=true


resolve_uid_to_name flag adds a user_name field in the report. 

The output will be something like this 

+-----------+-----+----------+------+----------------+----------------+------------+------------------+
| user_name | uid | fs_quota | used | principal_type | principal_name | quota_size | enforcement_type |
+-----------+-----+----------+------+----------------+----------------+------------+------------------+
+-----------+-----+----------+------+----------------+----------------+------------+------------------+