I am seeking a way to list clients who are using a particular LIF though which these clients get connected to access the cluster?
secondly, any way to list MAC address associating with a LIF?
A MAC is associated with a port. you need to first fund the current port in order to find the MAC
C1:*> network interface show -fields curr-port,curr-node -lif SVMGMT01BK-lif1vserver lif curr-node curr-port---------- --------------- ---------- ---------SVM lif1 N1 a0b-1C1::*> network port show -node N1 -port a0b-1 -fields macnode port mac---------- ------- -----------------N1 a0b-1 00:00:00:00:00:01
As for clients....
you didn't specify the protocol - for NFS on pre 9.3 - not so easy:
cifs session show -lif-address
iscsi tpgroup show
iscsi session show -tpgroup <from above>
you can also try to get something from netstat. but some protocols also availble to the client in UDP or stateless TCP... so it will not be there....
node run * netstat -a
Form a client, you can identify established connections via the command netstat
C:\Users\Administrator>netstat -an Active ConnectionsTCP 192.168.6.11:139 0.0.0.0:0 LISTENINGTCP 192.168.6.11:3389 192.168.6.254:49441 ESTABLISHED
TCP 192.168.6.11:52870 192.168.6.117:445 ESTABLISHED
For example, the bold entry identifies that we have a CIFS connection (port 445) from client 192168.6.11 to a LIF with the IP 192.168.6.117
A similar command is available on the Netapp: network connections active show. You can filter for cifs-srv, nfs, etc with the -service cifs-srv switch .
Next, you can identify the LIF and the SVM on the storage controller which is using that IP 192.168.6.117 address via
::> network interface show -address 192.168.6.117
As mentioned in the other reply, you can identify the MAC address and the port used via net port show
Hope that helps