问题1:让“OpenConnection”做什么?
问题2:“Open Connections”是文件的会话数吗?
谢谢你!
最佳答案JeremyJ
You\u2019d also like to verify if this tells you the number of open sessions for a Files server.
For day to day human-interactive operations, I\u2019d recommend\u00a0to use the MMC Snap-In for Nutanix Files, which includes the capability to list and manage SMB connections.
https:\/\/portal.nutanix.com\/#\/page\/docs\/details?targetId=Files-MMC-Plugin-v3:Files-MMC-Plugin-v3<\/a>\u00a0<\/p>
From your question though, it sounds like you\u2019re wanting something you could script.\u00a0I\u2019m not sure of your use case but maybe one of these options\u00a0will help.
1. Working from the CVM CLI, the command \u201cncli file-server list\u201d will list Files servers on the cluster in detail. Part of this output is the \u201cTotal SMB Connections\u201d stat.\u00a0
If you want details for just one Files server, you can use the \u2018get\u2019 command instead of list.
syntax: ncli file-server get uuid=<uuid>\u00a0
You can find this and other NCLI commands detailed in the Command Reference document for AOS.<\/p>
https:\/\/portal.nutanix.com\/#\/page\/docs\/details?targetId=Command-Ref-AOS-v510:acl-ncli-file-server-auto-r.html<\/a>\u00a0
2. If you\u2019re looking to pull this stat through the REST API, you\u2019ll probably want to use the REST API Explorer available in Prism. Access this from the dropdown menu that appears when you click on your username in the top right corner. That \u201cOpen Connections\u201d value in Prism is from the one of\u00a0the metrics collected with the V1 API call \u201cvfilers\/<uuid>\/stats\u201d. If I understand what you\u2019re asking for, the metric for this is \u201ctotal_smb_connections\u201d. You can try this out from the REST explorer available in Prism and get a formatted URL string you could reuse to get this information.
There\u2019s also a powershell commandlet you could use to get Files server stats and information, so that may be worth looking into as well.
reference:\u00a0https:\/\/portal.nutanix.com\/#\/page\/docs\/details?targetId==API-Ref-AOS-v510:API-Ref-AOS-v510<\/a>\u00a0
3. One more option I found,\u00a0from a knowledge base article on the Nutanix support portal about identifying and clearing a hung session:\u00a0https:\/\/portal.nutanix.com\/kb\/7491<\/a>\u00a0
If you have SSH access to the Files server, you can use the commands described there to use and manage the current SMB connections.\u00a0<\/p>","className":"post__content__best_answer"}">