This week on the podcast, Dwayne chats with Marc Trouard-Riolle, about Nutanix Cloud Clusters (NC2) on Azure and how to get started. Nutanix Cloud Clusters (NC2) on Microsoft Azure enables your applications to be run where you want them, on-premises or in the public cloud, all operated as a single cloud.<\/p>

<\/oembed><\/p>

解决了

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

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

你好呀!

我想确认命令“ 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"}">
查看原件