ONTAP Discussions

Any ways to list all clients are using a particular LIF?

heightsnj
3,452 Views

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?

 

 

Thanks!

2 REPLIES 2

GidonMarcus
3,357 Views

Hi

 

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-lif1
vserver    lif             curr-node  curr-port
---------- --------------- ---------- ---------
SVM        lif1               N1      a0b-1
C1::*> network port show -node N1 -port a0b-1 -fields mac
node       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:

https://community.netapp.com/t5/OnCommand-Storage-Management-Software-Discussions/nfsstat-l-equiv-in-CDOT/m-p/135534#M24570

 

for CIFS

cifs session show -lif-address

 

for iSCSI

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

 

Gidi Marcus (Linkedin) - Storage and Microsoft technologies consultant - Hydro IT LTD - UK

Florian
3,321 Views

Hi,

 

Form a client, you can identify established connections via the command netstat

 

C:\Users\Administrator>netstat -an
Active Connections
TCP 192.168.6.11:139 0.0.0.0:0 LISTENING
TCP 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

Florian

 

Public