List connection for iscsi, nfs and smb

marcellinus

Cadet
Joined
Jul 13, 2023
Messages
8
Hi

I installed a new TrueNAS SCALE 22.12.4.1.
Can someone point me how to list/show/view current connection for iSCSI, NFS and SMB?

Maybe there is something in the Gui? Maybe strategy is differnte for different protocols?

Kr M.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
There are currently private API endpoints for getting SMB / NFS clients. Since they are private there is no guarantee of stability (e.g. not changing between minor releases), but in practice they don't change frequently.

Code:
midclt call smb.status
midclt call nfs.get_nfs3_clients
midclt call nfs.get_nfs4_clients

You can use jq to parse results. Note that for NFSv3 case, it's really just best-effort for all the normal NFSv3 reasons.
 
Top