Join us for a virtual Nutanix User Group meeting with Jarian Gibson as he covers Nutanix Cloud Clusters (NC2) on Azure and AWS with Citrix. <\/span><\/p>

Jarian will take a deep dive into NC2 on Azure architecture and Citrix on NC2 on Azure\u00a0that helps you strengthen your business continuity and disaster recovery position. He\u2019ll also provide the latest updates for NC2 on AWS.<\/span><\/p>

Plus, we're\u00a0giving away a Nutanix suitcase to one lucky winner!\u00a0Opt-in when you register\u00a0to be entered to win.\u00a0<\/p>","author":{"id":113632,"url":"\/members\/karlie-beil-113632","name":"Karlie Beil","avatar":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/icon\/200x200\/1581aab3-bcf6-49f4-b2fb-3d11e8c010dc.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"name":"Community Manager","color":"#0873ba"},"userLevel":4},"type":"Webinar","url":"https:\/\/next.nutanix.com\/events\/global-nug-nc2-on-azure-and-aws-with-citrix-151","image":"https:\/\/uploads-us-west-2.insided.com\/nutanix-us\/attachment\/f9693b5b-436b-427a-9b98-531b4040ff24_thumb.png","location":"","startsAt":1678298400,"endsAt":1678302000,"contentType":"event","attendees":[],"attendeeCount":0,"isLoggedInUserAttendee":false,"createdAt":"1675974969"},"phrases":{"Forum":{"{n} year|{n} years":"{n} year|{n} years","{n} month|{n} months":"{n} month|{n} months","{n} day|{n} days":"{n} day|{n} days","{n} hour|{n} hours":"{n} hour|{n} hours","{n} minute|{n} minutes":"{n} minute|{n} minutes","just":"just now","{plural} ago":"{plural} ago"}}}">

解决了

使用“ Quota.Report [sharefile]”之后,我可以看到用户的实际ID

  • 2020年2月4日
  • 1回复
  • 1065意见

你好呀!

我想确认命令“ Quota.Report <共享文件夹$>”然后我得到了下面的结果

点是[uid]不是实际用户。现在我可以一对一地获取实际的用户名

ad.uname_from_uid smb

如果我需要将UID转换为实际用户,该怎么办?

我有2000多个用户,我不想运行2000次命令

+----------+--------------------------------------------+----------------------------------------------------------+-------+-----------------------------+---------------------------+-----------------------------+
|uid |fs_quota |使用|principal_type |principal_name |METCA_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 |

图标

最好的答案hitesh08012020年3月6日,08:54

Hello @Pawarit<\/user-mention>\u00a0\u00a0

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

The following command will give you the expected output\u00a0

<afs> quota.report <share-name>\u00a0resolve_uid_to_name=true


resolve_uid_to_name flag adds a user_name field in the report.\u00a0

The output will be something like this\u00a0

+-----------+-----+----------+------+----------------+----------------+------------+------------------+
| user_name <\/strong>| uid | fs_quota | used | principal_type | principal_name | quota_size | enforcement_type |
+-----------+-----+----------+------+----------------+----------------+------------+------------------+
+-----------+-----+----------+------+----------------+----------------+------------+------------------+<\/p>","className":"post__content__best_answer"}">
查看原件